1) Use R for all parts of this problem. Use the data on heights you collected a few weeks ago. (a) Do a t-test and test the following: H0: μ = y for your recitation section vs. H1: μ ≠ y Use α = .01 (if, for example, your y = 64.72, then you would do H0: μ = 64.72) (c) now repeat but subtract 4.75 from your ¯y (so you'd do H0: μ = 59.97 ( = 64.72 − 4.75)) (d) repeat (c) but use α = .00000000001. (You do not need to (and should not) set α in R; make sure you understand why this is true!!) ← Don't ignore this!! (e) what kind of error did you probably make in part (d)? (Just write out the answer for this question). R instructions: To test, for example, that μ = 64.72, you need to give R the value of μ: t.test(height,mu = 64.72) (assuming you named your variable “height”; of course, you may have to do data$height or something similar depending on how you have your data in R). Since R gives you p-values ( = probabilities) you don't need to calculate or use t* (although R automatically prints this if you want to use it).

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) Use R for all parts of this problem. Use the data on heights you collected a few weeks ago.
(a) Do a t-test and test the following:
H0: μ = y for your recitation section vs. H1: μ ≠ y
Use α = .01
(if, for example, your y = 64.72, then you would do H0: μ = 64.72)
(c) now repeat but subtract 4.75 from your ¯y (so you'd do H0: μ = 59.97 ( = 64.72 − 4.75))
(d) repeat (c) but use α = .00000000001.
(You do not need to (and should not) set α in R; make sure you understand why this is true!!) ← Don't ignore
this!!
(e) what kind of error did you probably make in part (d)? (Just write out the answer for this question).
R instructions:
To test, for example, that μ = 64.72, you need to give R the value of μ:
t.test(height,mu = 64.72)
(assuming you named your variable “height”; of course, you may have to do data$height
or something similar depending on how you have your data in R).
Since R gives you p-values ( = probabilities) you don't need to calculate or use t* (although R
automatically prints this if you want to use it).

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 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