Using R-studio
2. Consider an experiment where we flip a fair coin six times in a row, and i is the number of heads tossed:
a. Calculate the probability mass function for i = 0. . . 6 using the equation from Ross section 2.8 for Binomial Random Variables
b. Conduct a simulation of this experiment in R, with T trials of the experiment – pick several values of T from 10 to 10,000.
c. Create a plot of the theoretical result vs. your simulation at T = 100 and T = 10,000. Show that they converge as T increases.
In: Statistics and Probability
We have a bag filled with 201 marbles, of which 100 of them are blue and 101 of them are red. Every turn, we remove 2 marbles from the bag. If the two marbles are of the same color, we remove the two marbles but add a blue marble into the bag. If the two marbles are of different colors, we remove the two marbles and add a red marble into the bag. What is the color of the last marble in the bag?
In: Statistics and Probability
Below is a data table from a survey of 12 random car owners that were asked about their typical monthly expenses in dollars on gasoline.
210 160 43 255 176 135 221 359 380 405 391 477
(a) Is there evidence at the 5% significance level to suggest the mean monthly gasoline expense for all car owners is less than $200?
(b) Interpret the P-value in the context of this test.
(c) Explain what a Type I error would mean in the context of this test.
(d) Explain what a Type II error would mean in the context of this test.
In: Statistics and Probability
Using the Newsboy Model
1.Needless Markup (NM), a famous “high end” department store, must decide on the quantity of a high-priced woman’s handbag to procure in Spain for the coming Christmas season. The unit cost of the handbag to the store is $28.50 and the handbag will sell for $150.00. Any handbags not sold by the end of the season are purchased by a liquidator for $10.00 each. In addition, the store accountants estimate that there is a cost of $0.40 for each dollar tied up in inventory, as this dollar invested elsewhere could have yielded a gross profit. Assume that this cost is attached to unsold bags only.
Answer the following questions:
In: Statistics and Probability
Account Balance | Income | Years of Education | Size of Household |
8976 | 63 | 12 | 2 |
8308 | 37 | 14 | 2 |
10028 | 52 | 16 | 2 |
11256 | 64 | 15 | 4 |
9869 | 47 | 17 | 2 |
10194 | 74 | 15 | 2 |
8706 | 49 | 12 | 2 |
9557 | 58 | 14 | 2 |
10565 | 70 | 16 | 3 |
9434 | 69 | 11 | 3 |
9687 | 25 | 18 | 3 |
9490 | 57 | 15 | 1 |
8806 | 46 | 14 | 3 |
9561 | 48 | 16 | 2 |
11757 | 80 | 15 | 3 |
9406 | 66 | 14 | 2 |
11150 | 46 | 15 | 3 |
7671 | 28 | 12 | 2 |
8803 | 53 | 13 | 1 |
9571 | 52 | 15 | 2 |
9566 | 77 | 12 | 3 |
7885 | 32 | 14 | 3 |
9773 | 55 | 11 | 1 |
9121 | 52 | 15 | 2 |
9298 | 43 | 14 | 3 |
10285 | 65 | 15 | 2 |
7801 | 38 | 12 | 1 |
9323 | 52 | 14 | 2 |
8643 | 36 | 16 | 3 |
12466 | 85 | 15 | 2 |
9447 | 64 | 14 | 2 |
10727 | 86 | 15 | 2 |
9243 | 57 | 15 | 3 |
9311 | 68 | 12 | 2 |
11033 | 74 | 14 | 3 |
11721 | 82 | 16 | 2 |
8727 | 24 | 15 | 3 |
8438 | 37 | 15 | 3 |
8317 | 55 | 12 | 2 |
8617 | 50 | 14 | 1 |
9052 | 39 | 16 | 3 |
10889 | 73 | 15 | 3 |
7766 | 26 | 14 | 1 |
9189 | 47 | 15 | 2 |
In: Statistics and Probability
The average number of words in a romance novel is 64,419 and the
standard deviation is 17,160. Assume the distribution is normal.
Let X be the number of words in a randomly selected romance novel.
Round all answers to 4 decimal places where possible.
a. What is the distribution of X? X ~ N(,)
b. Find the proportion of all novels that are between 71,283 and
83,295 words.
c. The 85th percentile for novels is words. (Round to
the nearest word)
d. The middle 60% of romance novels have from words
to words. (Round to the nearest word)
In: Statistics and Probability
In: Statistics and Probability
This study investigates the hours per month spent on the Internet by U.S. residents, age 18 to 24. The sample results are: n= 75, x-bar=28.5, and s=23.1 . We are to construct a 95% confidence interval based on this information.
a) What is critical value of t (that is, t*) for this confidence interval?
b) the standard error of the mean (SEM) is:
c) Rounded to one decimal place, as x-bar was, the margin of error (MOE) for your confidence interval will be:
d) Which of the following conclusions is CORRECT?
We are 95% sure the mean hours spent per week on the Internet by U.S. residents, age 18 to 24, is between 23.5 and 34.1.
We are 95% sure the mean hours spent per month on the Internet by college students is between 23.2 and 33.8.
We are 95% sure the mean hours spent per month on the Internet by U.S. residents, age 18 to 24, is between 23.2 and 33.8.
We are 95% sure the mean hours spent per month on the Internet by U.S. residents, age 18 to 24, is between 23.5 and 34.1.
In: Statistics and Probability
Individual |
X |
Y |
1 |
211 |
198 |
2 |
180 |
173 |
3 |
171 |
172 |
4 |
214 |
209 |
5 |
182 |
179 |
6 |
194 |
192 |
7 |
160 |
161 |
8 |
182 |
182 |
9 |
172 |
166 |
10 |
155 |
154 |
11 |
185 |
181 |
12 |
167 |
164 |
13 |
203 |
201 |
14 |
181 |
175 |
15 |
245 |
233 |
16 |
146 |
142 |
In: Statistics and Probability
confidence intervals given in (b) and (c) are valid?
In: Statistics and Probability
The effectiveness of a blood-pressure drug is being
investigated. An experimenter finds that, on average, the reduction
in systolic blood pressure is 20.7 for a sample of size 464 and
sample standard deviation 21.4.
Estimate how much the drug will lower a typical patient's systolic
blood pressure (using a 99% confidence level).
Enter your answer as a tri-linear inequality accurate to one
decimal place (because the sample statistics are reported accurate
to one decimal place).
< μμ <
Answer should be obtained without any preliminary
rounding.
d) Interpret the confidence interval in the words of the problem.
In: Statistics and Probability
Consider an i.i.d. random sample of size 3 denoted by ?1,?2, ?3 from the same population, where the mean ? and variance ? 2 are unknown. Suppose that you have the following two different estimators for mean ?. (Remember: no work, no credit.) ?̂1 = 0.3?1 + 0.5?2 + 0.2?3 ?̂2 = 0.5?1 + 0.5?3 a. Is ?̂1 unbiased? b. Is ?̂2 unbiased? c. Which one is preferred, ?̂1 or ?̂2?
In: Statistics and Probability
Temperature |
98.74 |
98.54 |
97.87 |
98.12 |
99.64 |
97.84 |
98.92 |
98.33 |
98.83 |
97.89 |
97.42 |
99.27 |
97.88 |
97.87 |
98.33 |
98.09 |
96.8 |
97.9 |
97.3 |
97.48 |
Normal body temperature? A random sample of 20 healthy adults was collected and their body temperatures were measured in degrees Fahrenheit. The data can be found in an excel file Body with variable name Temperature. Do these data give evidence that the true mean body temperature for healthy adults is not equal to the traditional 98.6 degrees Fahrenheit? Test an appropriate hypothesis at 5% level of significance. (50 points total)
Source: Moore, D., Notz, W. and Fligner, M. (2015). The Basic Practice of Statistics (7th edition). New York, NY: W. H. Freeman and Company.
Label the parameter: (4 points)
State null and alternative hypotheses: (6 points)
H0:
Ha:
Propose an appropriate hypothesis test. Explain! (4 points)
Verify the required conditions for the proposed hypothesis test: (8 points)
Randomization assumption:
Normality assumption:
Note: For your future reference, save your R codes and normal QQ plot on your machine:
Using R, report test statistic, df, and p-value. (9 points)
Test statistic =
df =
p-value =
Note: For your future reference, save your R codes and outputs on your machine:
Interpret test statistic: (4 points)
Interpret the P-value in context: (6 points)
Make a decision of hypothesis test: (4 points)
Make a conclusion of hypothesis test in context: (5 points)
In: Statistics and Probability
1. Based on historical data, your manager believes that 31% of
the company's orders come from first-time customers. A random
sample of 146 orders will be used to estimate the proportion of
first-time-customers. What is the probability that the sample
proportion is greater than than 0.22?
Note: You should carefully round any z-values you calculate to 4
decimal places to match wamap's approach and calculations.
2. Business Weekly conducted a survey of graduates from 30 top
MBA programs. On the basis of the survey, assume the mean annual
salary for graduates 10 years after graduation is 157000 dollars.
Assume the standard deviation is 39000 dollars. Suppose you take a
simple random sample of 84 graduates.
Find the probability that a single randomly selected salary is less
than 160000 dollars.
Answer =
Find the probability that a sample of size n=84 n=84 is randomly
selected with a mean that is less than 160000 dollars.
Answer =
Enter your answers as numbers accurate to 4 decimal places.
In: Statistics and Probability
A corporation randomly selects 150 salespeople and finds that 66% who have never taken a self-improvement course would like such a course. The firm did a similar study 10 years ago in which 60% of a random sample of 160 salespeople wanted a self-improvement course. The groups are assumed to be independent random samples. Let
pi 1π1
and
pi 2π2
represent the true proportion of workers who would like to attend a self-improvement course in the recent study and the past study, respectively.
What is the critical value when performing a chi-square test on whether the population proportions are different if alpha a = 0.05?
In: Statistics and Probability