Statistics Canada conducts an annual survey to estimate the proportion of Canadians aged 20 - 24 years of age who are smokers. The most recent application of the Canadian Tobacco Monitoring Survey involved a random sample of n=496 Canadians aged 20 to 24 years of age. Each was asked for the smoking status. The number of 20 to 24 year-olds sampled who indicated they were smokers was 333. (a) Compute the sample proportion. Use at least four decimals in your answer. p^= __________ (b) Using your answer in (a), find a 97% confidence interval for pnow, the current proportion of 20 to 24 year old Canadians who are smokers, by Bootstrapping 1000 samples. Use the seed 3994 to ensure that R-Studio "randomly" samples the same "random" samples as this question will expect. You can do this by including the code, you can copy it into your R-Studio to bootstrap your samples. RNGkind(sample.kind = "Rejection"); set.seed(3994); B=do(1000) * mean(resample(c(rep(1,333),rep(0,496-333)), 496)); Use at least four decimals in all your calculations. lower bound = ______ upper bound = ________     (c) Using your answer in (a), find a 97% confidence interval for pnow, the current proportion of 20 to 24 year old Canadians who are smokers, by Using the Z distribution. To avoid rounding errors you should use R-Studio and not Z tables Use at least four decimals in all your calculations. lower bound = __________   upper bound = _________

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

Statistics Canada conducts an annual survey to estimate the proportion of Canadians aged 20 - 24 years of age who are smokers. The most recent application of the Canadian Tobacco Monitoring Survey involved a random sample of n=496 Canadians aged 20 to 24 years of age. Each was asked for the smoking status. The number of 20 to 24 year-olds sampled who indicated they were smokers was 333.

(a) Compute the sample proportion. Use at least four decimals in your answer.

p^= __________




(b) Using your answer in (a), find a 97% confidence interval for pnow, the current proportion of 20 to 24 year old Canadians who are smokers, by Bootstrapping 1000 samples. Use the seed 3994 to ensure that R-Studio "randomly" samples the same "random" samples as this question will expect.

You can do this by including the code, you can copy it into your R-Studio to bootstrap your samples.

RNGkind(sample.kind = "Rejection");
set.seed(3994);
B=do(1000) * mean(resample(c(rep(1,333),rep(0,496-333)), 496));

Use at least four decimals in all your calculations.

lower bound = ______

upper bound = ________

 
 


(c) Using your answer in (a), find a 97% confidence interval for pnow, the current proportion of 20 to 24 year old Canadians who are smokers, by Using the Z distribution.
To avoid rounding errors you should use R-Studio and not Z tables
Use at least four decimals in all your calculations.

lower bound = __________

 

upper bound = _________

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman