Assignment 7
1. So that we will know where 50% of his subjects are located (which is below the median), and the other 50% of his subjects are located (which is above the median). 2. > y <- rnorm(16, 0,2) > hist(y)
z=X-μσn=-0.4088-0.5216=-1.818 3. > x <- rnorm(25,0,2) > hist(x) > mean(x) [1] -0.660643 t=X-μsdn=-0.660643-0.5225≈-2.90 4. Number of degrees of freedom = 25 – 1 = 24 5. t.test(x,alternative="two.sided",mu=0.25)
One Sample t-test
data: x t = -2.5001, df = ...