In: Operations Management
Problem #1
You ask your graduate student to roll a die 5000 times and record the results.
a) Give the expected mean and standard deviation of the outcome.
P= 1/6 , Q= 5/6
NP= 5,000
NP X P= 5,000 *1/6 =
5,000/6
SD: Square root(5,000 * 1/6 * 5/6) = Square Root
b) The die roll experiment is repeated (though with a different graduate student – for some reason your previous student went to work with a different advisor). However in this case, the die is weighted so that a 6 shows up 11% of the time, a 1 shows up 21% of the time, and all remaining numbers show up 68% of the time (17% each). Now what is the expected mean and sd of 5000 rolls?
Problem #2
Part a: A product manager is evaluating production and inventory. In looking over the data, she decides that a product should be continued if it sold 23,000 over the previous year. In addition, the product is considered “popular” if it receives 50 mentions by the local press over the past year.
In selecting a product at random from the catalog, let C be the likelihood that this particular product sold 23,000 products the past year. Let P be the likelihood that the product received the 50 or more mentions by the local press.
The analyst determines that P(C) = 0.297, P(P) = 0.162, and the probability that a product has sold 8000 items, and was ‘popular’ is 0.083. What is the probability that a randomly selected product either sold the requisite 23,000 items, or that it is ‘popular’?
Part b: Where would the analyst have come up with the probaility values for P(C) andP(P)?
Problem #3
You are playing a game of backgammon, and realize that if either of the two dice on your next roll is a 4, you will win the game. (It’s also fine for both dice to be a 4, but you only need one). However, if you don’t get a 4 on either die, your opponent will win on their next move.
Just to restate: As long as you see a 4 on either of the dice, you will win, otherwise you lose. What is the probability that you will win the game?
Problem #4
You are a coach of a basketball team, and the final game of the season is on the line. Here are the current season’s data for your two best shooters, Lisa and Maggie. The {0, 1, 2, 3} represents the number of baskets they made out of the 3 throws. For example, Lisa makes all 3 baskets 10% of the time, and makes 0 (ie misses all 3) 16% of the time.
|
Lisa |
0 |
1 |
2 |
3 |
|
Prob. |
.16 |
.45 |
.29 |
.1 |
|
Maggie |
0 |
1 |
2 |
3 |
|
Prob. |
.17 |
.45 |
.25 |
.13 |
a) You must pick one of the following two players to make 3 free-throw attempts. Which one is most likely to give you your best result? Be sure to explain why.
b) Suppose you needed to make all 3 baskets in order to win, otherwise you would lose. Who would you pick? B
In: Statistics and Probability
I need assistance on what I am doing wrong, I've been trying to declare "getRandomLetter" as a scope, but haven't found how to all day. It's been about 3+ hours and I still have nothing. Please help fix these and let me know what I am doing wrong (There may be more simple ways of coding all this, but I just need help fixing the errors with current code, thank you). I am trying to have buildAcronym() hold the position of going from A-Z , & as well as getRandomLetter() choose a letter from A-Z using the ASCII character set. This is a bit of the prompt where it asks to set these up. If I am off, I do apologize.
Define and overload two void-typed functions named buildAcronym that assign a (pseudo)-random uppercase letter to two (2) or three (3) character parameters, depending on the version called. Each character in an acronym must be a unique uppercase letter. Two arguments (or three, depending on the version called) will be assigned a random character literal, which can then be printed out in main.
These are my errors.
Acronyms.cpp: In function 'void buildAcronym(char, char,
char)':
Acronyms.cpp:13:35: error: 'getRandomLetter' was not declared in
this scope
getRandomLetter(a , b , c)
^
Acronyms.cpp: In function 'void buildAcronym(char, char)':
Acronyms.cpp:25:24: error: 'getRandomLetter' was not declared in
this scope
getRandomLetter(a,b)
^
Acronyms.cpp: In function 'int main()':
Acronyms.cpp:50:39: error: 'getRandomLetter' was not declared in
this scope
cout << getRandomLetter(a,b) ;
^
Acronyms.cpp:56:42: error: 'getRandomletter' was not declared in
this scope
cout << getRandomletter(a,b,c);
^
Acronyms.cpp:60:9: error: expected ';' before '{' token
{
^
Acronyms.cpp:67:1: error: expected 'while' at end of input
}
^
Acronyms.cpp:67:1: error: expected '(' at end of input
Acronyms.cpp:67:1: error: expected primary-expression at end of
input
Acronyms.cpp:67:1: error: expected ')' at end of input
Acronyms.cpp:67:1: error: expected ';' at end of input
Acronyms.cpp:67:1: error: expected '}' at end of input
------------------------------------------------------------------------------------------------------------------------------------
--
--------------------------------------
(there are 3 lines above include Name: Date: Filename: apologies that it is missing)
#include
using namespace std;
void buildAcronym(char a ,char b , char c)
{
if('A'<= b && 'A' <= b && 'A' <= c
&& a <= 'Z' && b <= 'Z' && c <=
'Z')
{
getRandomLetter(a , b , c)
{
cout << a + rand() % 65 + 90 << "." ;
cout << b + rand() % 65 + 90 << "." ;
cout << c + rand() % 65 + 90 << "." ;
}
}
return ;
}
void buildAcronym(char a , char b)
{
getRandomLetter(a,b)
{
cout << a + rand() % 65 + 90 << "." ;
cout << b + rand() % 65 + 90 << "." ;
}
return ;
}
int main()
{
char a , b , c ;
int choice ;
do
{
cout << "Press 1 for a two letter acronym, and 2 for a three
letter acronym. " ;
cin >> choice ;
switch(choice)
{
case 1 :
if (choice == 1)
{
cout << getRandomLetter(a,b) ;
break ;
}
case 2 :
if (choice == 2)
{
cout << getRandomletter(a,b,c);
break;
}
else (choice != 1 && choice != 2)
{
cout << "Press 1 for a two letter acronym, and 2 for a three
letter acronym. ";
}
}while(choice!=1 && choice != 2);
return 0;
}
In: Computer Science
An October 25, 2012 article in the New England Journal of Medicine reports the results of a study examining aspirin and survival among patients with colorectal cancer. The following pieces of text are taken directly from the article abstract: (my edits are in italics) “METHODS We obtained data on 964 patients with rectal or colon cancer from the Nurses’ Health Study and the Health Professionals Follow-up Study, including data on aspirin use after diagnosis and the presence or absence of PIK3CA mutation…… RESULTS Among patients with mutated-PIK3CA colorectal cancers, regular use of aspirin after diagnosis was associated with superior colorectal cancer–specific survival (adjusted relative risk for cancer-related death, 0.18; 95% confidence interval [CI], 0.06 to 0.61; P<0.001 by the log-rank test) and overall survival (adjusted relative risk for death from any cause, 0.54; 95% CI, 0.31 to 0.94; P = 0.01 by the log-rank test). In contrast, among patients with wild-type PIK3CA, regular use of aspirin after diagnosis was not associated with colorectal cancer–specific survival (adjusted relative risk, 0.96; 95% CI, 0.69 to 1.32; P = 0.76 by the log-rank test) ) or overall survival (adjusted relative risk, 0.94; 95% CI, 0.75 to 1.17; P = 0.96 by the log-rank test)” The authors present the following graphic as part of the article: (on the next page) Statistical Reasoning in Public Health 1, 2016: Ho
1. What is the outcome of interest for this study?
2. What is the primary predictor of interest for this study?
3. What type of study design is this?
4. Describe the findings with regards to aspirin and survival in patients with colorectal cancer with respect to the presence or absence of the PIK3CA mutation.
5. Even though the authors estimated the association between aspirin and survival separately for the mutated-PIK3CA and wild-type PIK3CA, each of the two associations was adjusted for multiple factors including age, sex, year of diagnosis etc… Why was it potentially necessary to do this adjustment?
In: Nursing
You have been approached by Simpson, a 23 years old fresh
graduate for financial
advice. Simpson is a risk-taker who has limited knowledge of
Finance. He has
provided the following information about his financial
situation:
| Simpson lives in Auckland and is working full time as a graphic
earning $902.35 per week after tax and other deductions. Simpson is currently renting an apartment, paying $350.00 per week for rent and utilities. To purchase basic home furnishing for his apartment, he has just signed a 18- month contract with Woolies’ Decor on an instalment plan of $90.00 per month. This contract comes with new home furnishing worth $1620.00. To finance his car purchase, Simpson has just taken a 5-year car loan for 8,000 |
with a local financial institution. Interest rate for this car
loan is 19.95% per
annum. The market price of this car is estimated to be $6,000.
|
He also has a hire purchase loan of $2000.00 for a new laptop.
He has to settle To complete his degree, Simpson has a student loan of $25,000.00
from NZ
1/Calculate Simpson’s asset, liability and net worth? 2/Inform Simpson on his weekly income, weekly expenses and weekly savings. 3/Calculate Simpson’s monthly debt safety ratio. Interpret the answer for him. 4/Simpson would like to accumulate $125,000 to buy his first
home five years from |
|
In: Finance
In: Statistics and Probability
Use the following information to answer questions 1-5.
The Aggie Graphics Company was organized on January 1, 2017.
The trial balance before adjustment at December 31, 2017 contained the following account balances:
| Cash | $9,500 | |
| Accounts Receivable | 4,000 | |
| Prepaid Insurance | 1,800 | |
| Equipment | 45,000 | |
| Accumulated Depreciation | 4,500 | |
| Accounts Payable | 3,500 | |
| Notes Payable | 18,000 | |
| Common Stock | 5,000 | |
| Retained Earnings | 12,000 | |
| Dividend | 2,000 | |
| Graphic Fees Earned | 52,100 | |
| Consulting Fees Earned | 5,000 | |
| Salaries Expense | 30,000 | |
| Supplies Expense | 2,700 | |
| Advertising Expense | 1,900 | |
| Rent Expense | 1,500 | |
| Utilities Expense | 1,700 | |
| $100,100 | $100,100 |
Analysis reveals the following additional data: (Assume the books are only closed at year end)
(A) The $2,700 balance in Supplies Expense represents supplies purchased in January. At December 31, there was $1,200 of supplies on hand.
(B) The note payable was issued on September 1. It is a 3% 6-month note.
(C) The balance in Prepaid Insurance is the premium paid on a one-year policy, dated March 1, 2017.
(D) Consulting Fees are credited to revenue when received. At December 31, consulting fees of $1,000 contracted for January, 2017 have yet to be performed.
(E) The equipment was purchased on January 1, 2017. It has a 10-year useful life and no salvage value.
The entry to record (A) above would include a debit to: (Assume the company is only making one adjusting entry to record this information)
| A. |
Supplies for $1,500 |
|
| B. |
Supplies for $1,200 |
|
| C. |
Supply Expense for $1,200 |
|
| D. |
Prepaid Supply Expense for $2,700 |
1 points
QUESTION 2
What is the balance in the interest payable account after adjustment?
| A. |
$ 45 |
|
| B. |
$180 |
|
| C. |
$90 |
|
| D. |
$270 |
1 points
QUESTION 3
The correct entry to record (E) above is:
| A. |
Depreciation Expense 4,500 Accumulated Depreciation 4,500 |
|
| B. |
Depreciation Expense 9,000 Accumulated Depreciation 9,000 |
|
| C. |
Depreciation Expense 9,000 Equipment 9,000 |
|
| D. |
Depreciation Expense 9,000 Accumulated Depreciation 4,500 Equipment 4,500 |
|
In: Accounting
You will design and implement a graphics program that draws four concentric rectangles in a window, using four different colors of your choice, meeting the following specifications.
• The size of the window is determined by the user of the program. To be specific, you should prompt the user for both the width and height of the window (in pixels), and then you should set the size of the window using these values. (Hint: use the setup() method of the window.) Make the largest colored rectangle by setting the background color of the window. The three other colored rectangles will be drawn using the draw_rectangle() function described below in Program Design.
• After the first rectangle, the size of each rectangle will be half of the size of the one before it. Using the rectangles shown in the graphic as an example, the length and width of the red rectangle are half of the length and width of the blue rectangle, respectively. Then the length and width of the yellow rectangle are half of the length and width of the red rectangle, respectively, etc.
• You should use a for loop to draw the three rectangles. Because of this, only one line of code in your program should have a call to the function draw_rectangle().
• Use meaningful variable names.
• Use horizontal and vertical white space reasonably and consistently.
• Use named constants as appropriate.
Program Design Your program is to be implemented using the function draw_rectangle(), which draws a rectangle centered in the window of a specified size and color. In order to do this, start your program with exactly the following lines of codes: import turtle import sys sys.setExecutionLimit(60000) # 60 seconds def draw_rectangle(turt, width, height, color): turt.pencolor(color) turt.fillcolor(color) turt.up() x = - width / 2 y = height / 2 turt.goto(x,y) turt.down() turt.begin_fill() # Draw the top turt.setheading(0) turt.forward(width) # Draw the right side turt.right(90) turt.forward(height) # Draw the bottom turt.right(90) turt.forward(width) # Draw the left side turt.right(90) turt.forward(height) turt.end_fill() # Your code goes here
Please explain every step clearly and thoroughly in python, my python code keeps giving an error message.
In: Computer Science
In this exercise, you will investigate the relationship between growth and trade. The following table contains data on average growth rates from 1960 through 1995 for 20 countries along with variables that are potentially related to growth. Download the data from the table by clicking the download table (icon) A detailed description of the variables used in the data set is available here Use a statistical package of your choice to answer the following questions. Run a regression of Growth on TradeShare. Test the null hypothesis H0: β1=0 versus a two-sided alternative hypothesis H1: β1≠0. Compute the t-statistic and p-value.
The t-statistic is ______
The P-value is ______
| Growth and Tradeshare | |
| TradeShare | Growth |
| 0.140501976 | 1.919793928 |
| 0.156622976 | 0.623148085 |
| 0.157703221 | 4.314143026 |
| 0.160405085 | 2.933687626 |
| 0.160815045 | 1.719106895 |
| 0.22145839 | 0.712664099 |
| 0.299405932 | 2.881528748 |
| 0.31307286 | 2.233843303 |
| 0.324612707 | 0.062417959 |
| 0.324745566 | -0.65690007 |
| 0.329479247 | 1.976647367 |
| 0.330021679 | 2.941643491 |
| 0.337879002 | 3.228612045 |
| 0.339706242 | 2.437080851 |
| 0.352317631 | -2.807305485 |
| 0.358856708 | 1.028021609 |
| 0.393250912 | 1.978231803 |
| 0.41760394 | 2.705700033 |
| 0.425837249 | -2.747544957 |
| 0.43557933 | 0.361157806 |
| 0.442142904 | 2.461462145 |
| 0.444374621 | 2.389435474 |
| 0.450546652 | 1.964281477 |
| 0.455769301 | 1.127964799 |
| 0.468346566 | 1.15945064 |
| 0.473254889 | 2.799286339 |
| 0.484600782 | -0.874989763 |
| 0.488949597 | 7.16535263 |
| 0.509590268 | 0.93311563 |
| 0.517664552 | 0.605386758 |
| 0.527773321 | -0.607349105 |
| 0.534684658 | 1.455169378 |
| 0.543337107 | 4.883359156 |
| 0.544243515 | 1.896314241 |
| 0.550812602 | -0.434996071 |
| 0.552722335 | 1.123864429 |
| 0.560642541 | 2.389975995 |
| 0.56074965 | 2.187123165 |
| 0.567130983 | 1.422135344 |
| 0.575274825 | 2.88970119 |
| 0.582814276 | 0.838475508 |
| 0.603035331 | 2.385760543 |
| 0.605031252 | 1.623378575 |
| 0.613616884 | 3.65261978 |
| 0.626079738 | 0.47131332 |
| 0.639484167 | 3.013142945 |
| 0.646913528 | 2.817210353 |
| 0.651203632 | 0.39235212 |
| 0.681555152 | 3.191976687 |
| 0.69943291 | -0.330569213 |
| 0.704819918 | 2.508398045 |
| 0.729232311 | -0.960690243 |
| 0.742971599 | 2.709445427 |
| 0.745497823 | 6.629690402 |
| 0.779847086 | 2.03355754 |
| 0.798375845 | 1.124109103 |
| 0.814710021 | 1.969227155 |
| 0.822956383 | 3.262194952 |
| 0.830238342 | 0.418686175 |
| 0.834204197 | 2.205353259 |
| 0.979355395 | 5.389065361 |
| 1.105364204 | 4.121176915 |
| 1.115916967 | 2.659177524 |
| 1.127936959 | 3.02872879 |
(show me how to do it please)
In: Economics
Mendoza is considering investing in IBM. However he is captivated by IBM's growth. IBM had made a remarkeable change from a strugling company to a leading company in the personal computer market. Mendoza has asked for your advice as to whether or not the growth is genuine. He suspects there might have been some fraudulent or unethical actions taken by IBM to increase its income. After a rief look at the recent history and performance of IBM, you decide to look more closely at the financial statements. As you review the financial statements, you begin to have some concerns about the nature of IBM's growth. Certain accounting procedures cause you to have doubt as to whether the growth came from IBM's core business operations or from carefully planned accounting adjustments that seem to be unethical. As you proceed in your investigations, you pay particular attention to the following areas. Pensions IBM changed its pension plan to a cash balance plan. The returns of this plan exceeded the amount recognized as an expense. Accounting rules require the company to add the excess returns to earnings but the gains cannot be spent on anything other than pension benefits. IBM increased its earnings per share by making this adjustment. Stock repurchases since 1995, IBM has spent a lot of money making stock repurchases. A stock repurchase may be beneficial to a company by increasing earnings per share since there ill be fewer share holders across which to spread the earnings. You conclude that the financial statements were in accordance with generally accepted accounting principles (GAAP) and you are confident that all accounting rules were followed. However, you have to explain to Mendoza whether the behavior was ehtical. What wiould you tell him?
In: Accounting