Question

In: Statistics and Probability

USE R software Suppose that we want to test H0 : F = G, where F...

USE R software

Suppose that we want to test H0 : F = G, where F is the distribution of weight for the casein feed group and G is the distribution of weight for the sunflower feed group of the chickwts data. A test can be based on the two-sample Kolmogorov-Smirnov statistic

chickwts
weight feed
1 179 horsebean
2 160 horsebean
3 136 horsebean
4 227 horsebean
5 217 horsebean
6 168 horsebean
7 108 horsebean
8 124 horsebean
9 143 horsebean
10 140 horsebean
11 309 linseed
12 229 linseed
13 181 linseed
14 141 linseed
15 260 linseed
16 203 linseed
17 148 linseed
18 169 linseed
19 213 linseed
20 257 linseed
21 244 linseed
22 271 linseed
23 243 soybean
24 230 soybean
25 248 soybean
26 327 soybean
27 329 soybean
28 250 soybean
29 193 soybean
30 271 soybean
31 316 soybean
32 267 soybean
33 199 soybean
34 171 soybean
35 158 soybean
36 248 soybean
37 423 sunflower
38 340 sunflower
39 392 sunflower
40 339 sunflower
41 341 sunflower
42 226 sunflower
43 320 sunflower
44 295 sunflower
45 334 sunflower
46 322 sunflower
47 297 sunflower
48 318 sunflower
49 325 meatmeal
50 257 meatmeal
51 303 meatmeal
52 315 meatmeal
53 380 meatmeal
54 153 meatmeal
55 263 meatmeal
56 242 meatmeal
57 206 meatmeal
58 344 meatmeal
59 258 meatmeal
60 368 casein
61 390 casein
62 379 casein
63 260 casein
64 404 casein
65 318 casein
66 352 casein
67 359 casein
68 216 casein
69 222 casein
70 283 casein
71 332 casein

Solutions

Expert Solution

The hypothesis is performed in R. The screenshot is shown below,

R Code:

R Output:

Hypothesis:

The null hypothesis is defined as the two distribution are from the same population and the alternative hypothesis tests the claim that the two distribution are not from the same population.

This is a two-tailed test.

Let the significance level = 0.05

Test statistic and P-value

From the Two-sample Kolmogorov-Smirnov test result summary,

The test statistic, D = 0.3333

P-value = 0.5176

Conclusion:

Since the p-value = 0.5176 > 0.05 at a 5% significance level, the null hypothesis is not rejected hence there is no evidence to conclude that the two distribution are not from the same population.


Related Solutions

Suppose we want to test the null hypothesis H0 : p = 0.28 against the alternative...
Suppose we want to test the null hypothesis H0 : p = 0.28 against the alternative hypothesis H1 : p ≠ 0.28. Suppose also that we observed 100 successes in a random sample of 400 subjects and the level of significance is 0.05. What are the critical values for this test? a. -1.96 and 1.96 b. 0.05 and 0.01 c. -1.39 and 1.39 d. -1.6449 and 1.6449
Integral Let f:[a,b]→R and g:[a,b]→R be two bounded functions. Suppose f≤g on [a,b]. Use the information...
Integral Let f:[a,b]→R and g:[a,b]→R be two bounded functions. Suppose f≤g on [a,b]. Use the information to prove thatL(f)≤L(g)andU(f)≤U(g). Information: g : [0, 1] —> R be defined by if x=0, g(x)=1; if x=m/n (m and n are positive integer with no common factor), g(x)=1/n; if x doesn't belong to rational number, g(x)=0 g is discontinuous at every rational number in[0,1]. g is Riemann integrable on [0,1] based on the fact that Suppose h:[a,b]→R is continuous everywhere except at a...
Suppose f : R → R is measurable and g : R → R is monotone....
Suppose f : R → R is measurable and g : R → R is monotone. Prove that g ◦ f is measurable
Suppose we want to test  H0 :  μ ≥ 30 versus  H1 :  μ < 30. Which of the following...
Suppose we want to test  H0 :  μ ≥ 30 versus  H1 :  μ < 30. Which of the following possible sample results based on a sample of size 54 gives the strongest evidence to reject  H0 in favor of  H1? a) x-bar = 32,  s = 4 b) x-bar = 25,  s = 16 c) x-bar = 28,  s = 6 d) x-bar = 29,  s = 10
Suppose we want to test  H0 :  μ ≥ 30 versus  H1 :  μ < 30. Which of the following...
Suppose we want to test  H0 :  μ ≥ 30 versus  H1 :  μ < 30. Which of the following possible sample results based on a sample of size 54 gives the strongest evidence to reject  H0 in favor of  H1? a. x= 32,  s = 4 b. x=29,  s = 10 c. x= 28,  s = 16 d. x= 25,  s = 6
Suppose we wanted to test H0​:π=0.25 at the 10% significance level, where the alternative probability of...
Suppose we wanted to test H0​:π=0.25 at the 10% significance level, where the alternative probability of success is 0.40 and the sample size collected was 35. Calculate the power of the test and provide your answer. What inputs did you use if you used a applet such as the rossmanchance applet. Using the same scenario as above, what is the minimum sample size required to limit the probability of a Type II error to 20%? Provide your answer. Thank you.
We want to test H0 : µ ≥ 200 versus Ha : µ < 200 ....
We want to test H0 : µ ≥ 200 versus Ha : µ < 200 . We know that n = 324, x = 199.700 and, σ = 6. We want to test H0 at the .05 level of significance. For this problem, round your answers to 3 digits after the decimal point. 1. What is the value of the test statistic? 2. What is the critical value for this test? 3. Using the critical value, do we reject or...
1. We want to test H0 : p ≥ 0.43 versus Ha : p < 0.43...
1. We want to test H0 : p ≥ 0.43 versus Ha : p < 0.43 . We know that n = 500 and p = 0.3990 . (a) What is the value of the test statistic? Round your test statistic to 2 digits after the decimal point. (To get an answer good to 2 digits, compute the standard error to 5 digits.) (b) What is the p-value of the test ? Round your p-value to 3 digits after the...
Suppose we want to test whether or not three means are equal. We want to perform...
Suppose we want to test whether or not three means are equal. We want to perform this test with a 2% significance level. If we perform an ANOVA test, what is the probability of the test producing accurate results (avoiding a Type I error)? Suppose we, instead, run three separate hypothesis tests (t-tests), each with 2% significance level. Mean 1 = Mean 2 Mean 1 = Mean 3 Mean 2 = Mean 3 What is the probability that all three...
Suppose we want to test whether or not three means are equal. We want to perform...
Suppose we want to test whether or not three means are equal. We want to perform this test with a 2% significance level. If we perform an ANOVA test, what is the probability of the test producing accurate results (avoiding a Type I error)? Suppose we, instead, run three separate hypothesis tests (t-tests), each with 2% significance level. Mean 1 = Mean 2 Mean 1 = Mean 3 Mean 2 = Mean 3 What is the probability that all three...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT