a. 1. In a sample of n = 91 randomly selected men, x = 27 were observed to be left-handed. Construct a 95% confidence interval for the true proportion of men who are left-handed. We must first get our point estimate for the true proportion of left handed men and then use knowledge from class and labs to build that confidence interval using the general form: [point estimate] +/- [critical value]*[standard error] phat < 27/91 z_cv <- qnorm (1-0.05/2) # Critical value from N (0,1) se.ci <- sqrt (phat* (1-phat)/91) # se based on phat for CI b. Suppose it is believed that the proportion of left-handedness among males is 23%. Formally test whether our sample is aligned with previous research (Ho: p=0.23 vs. H₁: p‡0.23) at the a=0.05 significance level. (A "formal" test means to do ALL steps - yes, even the hypotheses & conclusion!!) NOTE: The standard error for hypothesis tests of a proportion is different than the confidence interval! se.ht <- sqrt((0.23* (1-0.23))/91) # se based on p0 for hyp test z.star < (phat 0.23)/se.ht Now calculate the p-value and/or critical value(s) using the normal distribution functions pnorm () or qnorm(), respectively, come to a decision and state your conclusion in the context of the problem. Coding Tips! There's an R function similar to t.test named prop. test used to test proportions! prop.test(x = # successes, n = # trials, p = po, alternative = c("two.sided", "greater", "less"), conf.level = 1-alpha, correct = FALSE) IMPORTANT: We must set correct = FA SE in order for the output to match what we just did! c. Use the R function above to check your answers! prop.test(x = 27, n = 91, p=0.23, alternative="two.sided", conf.level = 0.95, correct=FALSE)

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
1. In a sample of n = 91 randomly selected men, x = 27 were observed to be left-handed.
a. Construct a 95% confidence interval for the true proportion of men who are left-handed.
We must first get our point estimate for the true proportion of left handed men and then use knowledge
from class and labs to build that confidence interval using the general form:
[point estimate] +/- [critical value]*[standard error]
phat < 27/91
z_cv <- qnorm (1-0.05/2)
#Critical value from N (0,1)
se.ci <- sqrt (phat* (1-phat)/91) # se based on phat for CI
b. Suppose it is believed that the proportion of left-handedness among males is 23%. Formally test whether
our sample is aligned with previous research (H₁: p=0.23 vs. H₁: p‡0.23) at the a=0.05 significance
level. (A "formal" test means to do ALL steps - yes, even the hypotheses & conclusion!!)
NOTE: The standard error for hypothesis tests of a proportion is different than the confidence interval!
se.ht <- sqrt((0.23* (1-0.23))/91) # se based on p0 for hyp test
z.star <- (phat - 0.23)/se.ht
Now calculate the p-value and/or critical value(s) using the normal distribution functions pnorm () or
qnorm (), respectively, come to a decision and state your conclusion in the context of the problem.
Coding Tips!
There's an R function similar to t.test named prop. test used to test proportions!
prop.test (x #successes, n = # trials, p = p0,
=
alternative =
conf.level
c("two.sided”, “greater", “less"),
=
= 1-alpha, correct
FALSE)
FALSE in order for the output to match what we just did!
IMPORTANT: We must set correct
=
c. Use the R function above to check your answers!
prop.test (x
=
=
27, n 91, p=0.23, alternative="two.sided",
conf.level 0.95, correct=FALSE)
Transcribed Image Text:1. In a sample of n = 91 randomly selected men, x = 27 were observed to be left-handed. a. Construct a 95% confidence interval for the true proportion of men who are left-handed. We must first get our point estimate for the true proportion of left handed men and then use knowledge from class and labs to build that confidence interval using the general form: [point estimate] +/- [critical value]*[standard error] phat < 27/91 z_cv <- qnorm (1-0.05/2) #Critical value from N (0,1) se.ci <- sqrt (phat* (1-phat)/91) # se based on phat for CI b. Suppose it is believed that the proportion of left-handedness among males is 23%. Formally test whether our sample is aligned with previous research (H₁: p=0.23 vs. H₁: p‡0.23) at the a=0.05 significance level. (A "formal" test means to do ALL steps - yes, even the hypotheses & conclusion!!) NOTE: The standard error for hypothesis tests of a proportion is different than the confidence interval! se.ht <- sqrt((0.23* (1-0.23))/91) # se based on p0 for hyp test z.star <- (phat - 0.23)/se.ht Now calculate the p-value and/or critical value(s) using the normal distribution functions pnorm () or qnorm (), respectively, come to a decision and state your conclusion in the context of the problem. Coding Tips! There's an R function similar to t.test named prop. test used to test proportions! prop.test (x #successes, n = # trials, p = p0, = alternative = conf.level c("two.sided”, “greater", “less"), = = 1-alpha, correct FALSE) FALSE in order for the output to match what we just did! IMPORTANT: We must set correct = c. Use the R function above to check your answers! prop.test (x = = 27, n 91, p=0.23, alternative="two.sided", conf.level 0.95, correct=FALSE)
Expert Solution
steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Similar 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