Question

In: Math

Question: Test the mean of population X for equality to zero (mu=0) using the sample x...

Question:

Test the mean of population X for equality to zero (mu=0)
using the sample x and t-test at a significance level 0.05


set.seed(88)
x <- rt(150,df=2)

Solutions

Expert Solution

> set.seed(88)
> x=rt(150,df=2)
> x
[1] -0.21958221 1.42821188 -0.66493805 2.35173090 -0.26555397
[6] -0.30420180 0.43945338 -0.23427682 -0.45493368 -2.18404620
[11] -2.31755881 0.50838212 -0.49379638 1.31966894 1.13489330
[16] -0.33541249 7.32530628 -0.43908758 -0.46531978 1.94643650
[21] 5.41871649 1.79311459 -0.23981817 2.33358388 1.12051732
[26] 0.93306447 -21.24072291 0.95909053 0.34128047 0.04922479
[31] 2.22389266 0.59921077 -0.28438696 -0.85964985 0.17276497
[36] 0.07353463 -1.45707906 -1.73380005 -0.36397709 1.32216739
[41] 1.41738926 -4.59996740 -0.57090556 -0.51933087 3.83768402
[46] -0.23431069 2.20913214 -1.42266827 -0.83510283 0.01376565
[51] 1.02061158 -1.03769930 1.11520248 -1.14981012 -0.03051753
[56] 0.54459789 0.52101019 -0.40584994 -0.29707884 0.31004454
[61] -1.87351448 -2.17638732 -1.21296658 0.07010182 0.29738718
[66] 1.80251350 -0.33053566 1.29270516 0.14957369 -0.50523791
[71] 1.77126070 -0.69477691 -2.52724053 0.66865711 -2.33735647
[76] -0.90822020 1.69358281 0.20712698 -1.30227823 -0.16013204
[81] -0.30651383 2.92731284 -0.29804983 -3.60658623 0.09544338
[86] 0.45446681 -2.77923575 1.51195080 -0.29533668 5.38681133
[91] 1.53676991 -0.91474536 -7.11922501 -1.03699566 1.37749007
[96] -1.14503468 0.36728612 0.13038706 0.23942099 1.45516926
[101] -0.52735283 0.30606186 2.27047275 -0.47756911 1.60343675
[106] 0.50904273 1.17630908 -1.18108405 -0.43396092 3.12869600
[111] 0.51061040 0.29707283 -0.36962085 -1.05394865 0.52866916
[116] 2.84384059 1.11453076 0.26971028 -1.89402390 0.01928428
[121] -2.38542051 -0.87667573 -0.92802946 -1.00479085 1.41094548
[126] 0.36865606 1.10420485 1.65813672 3.54859768 -0.42637618
[131] 0.10974679 -0.81256825 1.12543211 -0.78540409 0.53502542
[136] 1.17591695 0.39615157 0.66876277 4.73867511 -0.29060777
[141] 0.41732260 1.62750590 -0.91402546 1.35849935 -0.51158476
[146] 1.45289000 3.37342719 -1.26877617 -1.11115598 -0.50359139
> t.test(x)

One Sample t-test

data: x
t = 0.42734, df = 149, p-value = 0.6697
alternative hypothesis: true mean is not equal to 0
95 percent confidence interval:
-0.3121074 0.4843529
sample estimates:
mean of x
0.08612277

Since p value is greater than alpha= 0.05, hence we accept null hypothesis that population mean is equal to zero.


Related Solutions

Test the claim about the population​ mean, mu​, at the given level of significance using the...
Test the claim about the population​ mean, mu​, at the given level of significance using the given sample statistics. ​Claim: mu: 50​; alpha=0.03​; sigmaequals3.63. Sample​ statistics: x overbarequals48.7​, nequals69What are the critical values?
Consider the following hypothesis test: H(0): mu ≥ 10 H(a): mu < 10 The sample size...
Consider the following hypothesis test: H(0): mu ≥ 10 H(a): mu < 10 The sample size is 120 and the population standard deviation is assumed known with σ = 5. Use alpha = .05. If the population mean is 9, what is the probability of making a Type II error if the actual population mean is 8 (to 4 decimals)? Please provide the appropriate formula in excel for solving this problem.
A one-sample z-test for a population mean is to be performed. Let z 0 denote the...
A one-sample z-test for a population mean is to be performed. Let z 0 denote the observed value of the test statistic, z. Assume that a two-tailed test is being performed. True or false: If z0 is negative, the P-value is twice the area under the standard normal curve to the right of z0. 2) A) True B) False
Test the claim about the population mean mu at the level of significance alpha. Assume the...
Test the claim about the population mean mu at the level of significance alpha. Assume the population is normally distributed. ​Claim: mu greater than 11​; alpha equals​0.05; sigmaequals1.2 Sample​ statistics: x overbar equals11.3​, n equals50
A random sample of n measurements was selected from a population with unknown mean mu and...
A random sample of n measurements was selected from a population with unknown mean mu and standard deviation sigma equals 20 for each of the situations in parts a through d. Calculate a 95​% confidence interval for mu for each of these situations. a. n=60​, overbar =29 ​(Round to two decimal places as​ needed.) b. n=250​, xoverbare=113 ​(Round to two decimal places as​ needed.) c. n=90​, xoverbar=18 ​(Round to two decimal places as​ needed.) d. n=90​, xoverbar=4.1 ​(Round to two...
Construct the indicated confidence interval for the population mean mu using the​ t-distribution. Assume the population...
Construct the indicated confidence interval for the population mean mu using the​ t-distribution. Assume the population is normally distributed. c=0.99, x bar=12.2, s=3.0, n=9 (?, ?)
Construct the indicated confidence interval for the population mean mu using the​ t-distribution. Assume the population...
Construct the indicated confidence interval for the population mean mu using the​ t-distribution. Assume the population is normally distributed. c=0.95​, x=13.4​, s=0.64​, n=19
Construct the indicated confidence interval for the population mean mu using the​ t-distribution. Assume the population...
Construct the indicated confidence interval for the population mean mu using the​ t-distribution. Assume the population is normally distributed. c=0.90​, x=14.7​, s=2.0​, n=9 The 90% confidence interval using a t-distribution is ?
A random sample is selected from a normal population with a mean mu equals 30 space...
A random sample is selected from a normal population with a mean mu equals 30 space a n d space s tan d a r d space d e v i a t i o n space sigma equals 8. After a treatment is administered to the individuals in the sample, the sample mean is found to be M=33. (a) If the sample consists of n=16 scores is the sample mean sufficient to conclude that the treatment has a significant...
*Please provide r studio file/code* Question: Test the equality of means of populations X,Y,Z using ANOVA:...
*Please provide r studio file/code* Question: Test the equality of means of populations X,Y,Z using ANOVA: set.seed(88) dta <- data.frame(v = c(2+2*rnorm(100), 3+3*rnorm(100), 4+4*rnorm(100)), id = rep(c("x","y","z"),c(100,100,100)))
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT