Let's examine the levels of levels of sodium in the blood. 20 people yield the following results (in mEq/L): ̄y = 133.95 s = 2.544 (a) Test H0: μ = 137 using α = 0.001 (that's not a typo). (b) Figure out the p-value. To do this, take the t value that you calculated in (a) and use R: pt(absolute-value-of-your-t*, df, lower.tail = FALSE)*2 Since it's a two sided test, you need to multiply by 2 at the end. We'll talk more about this in lecture when we do one sided tests; for now just realize that without the “*2” at the end R gives you a one sided p-value. For example, if your t* = 4.65 and you have 67 degrees of freedom you would do: pt(4.65,67,lower.tail = FALSE)*2 and you would get back 1.609352e-05 (c) Is the p-value smaller than α? (d) Why is this (c) important (see also part (a))? (e) What is the smallest value of α for which you would reject the H0? Hint: this will not be a “standard” value of α. The correct answer here is a value that is not only small, but totally absurd). Another hint: think about the relationship of p-values to α. As mentioned in (d) it is very important that you understand the connection between α and p-values. (e) For which of the following values of α would you reject? Why (see (c))? i) .10 ii) .05 iii) .01 iv) .001 v) .00000001 (note that no one in their right mind would actually use α = .00000001)

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

3)

Let's examine the levels of levels of sodium in the blood. 20 people yield the following results (in mEq/L):
̄y = 133.95 s = 2.544
(a) Test H0: μ = 137 using α = 0.001 (that's not a typo).


(b) Figure out the p-value. To do this, take the t value that you calculated in (a) and use R:


pt(absolute-value-of-your-t*, df, lower.tail = FALSE)*2


Since it's a two sided test, you need to multiply by 2 at the end. We'll talk more about this in lecture when we do one sided tests; for now just realize that without the “*2” at the end R gives you a one sided p-value.


For example, if your t* = 4.65 and you have 67 degrees of freedom you would do:
pt(4.65,67,lower.tail = FALSE)*2
and you would get back 1.609352e-05


(c) Is the p-value smaller than α?


(d) Why is this (c) important (see also part (a))?

(e) What is the smallest value of α for which you would reject the H0? Hint: this will not be a “standard”
value of α. The correct answer here is a value that is not only small, but totally absurd).
Another hint: think about the relationship of p-values to α. As mentioned in (d) it is very important that
you understand the connection between α and p-values.


(e) For which of the following values of α would you reject? Why (see (c))?
i) .10 ii) .05 iii) .01 iv) .001 v) .00000001
(note that no one in their right mind would actually use α = .00000001)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 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