diff --git a/source/sec-One-Sample-Tests.ptx b/source/sec-One-Sample-Tests.ptx index 5d2b678..1ced02d 100644 --- a/source/sec-One-Sample-Tests.ptx +++ b/source/sec-One-Sample-Tests.ptx @@ -5,29 +5,38 @@

Suppose 10% of the general population is left-handed. - In a sample of 100 patients with carpal tunnel syndrome, 16 are found to be left-handed. - Is this evidence that the proportion of left-handedness is higher among carpal tunnel syndrome patients than among the general population? + In a sample of 100 patients with carpal tunnel syndrome, 16 are found to + be left-handed. + Is this evidence that the proportion of left-handedness is higher among + carpal tunnel syndrome patients than among the general population?

- We would like to develop a framework through which we can analyze whether data we've collected provides evidence for a particular hypothesis. + We would like to develop a framework through which we can analyze whether + data we've collected provides evidence for a particular hypothesis. In fact, we will generally consider two hypotheses:

- The null hypothesis, often denoted H_0, is the assumption that an effect being studied or proposed does not exist. - The alternative hypothesis, H_a, is the claim that the effect does exist. + The null hypothesis, often denoted H_0, is the + assumption that an effect being studied or proposed does not exist. + The alternative hypothesis, H_a, is the claim that + the effect does exist.

- In the previous example, if we write \theta for the true proportion of left-handed people among the population with carpal tunnel syndrome, the null hypothesis would be that this proportion is the same as the general population. - The alternative hypothesis might be, for example, that the proportion is higher than among the general population: + In the previous example, if we write \theta for the true proportion + of left-handed people among the population with carpal tunnel syndrome, the + null hypothesis would be that this proportion is the same as the general + population. + The alternative hypothesis might be, for example, that the proportion is + higher than among the general population: H_0: \theta \amp = 0.1 H_a: \theta \amp \gt 0.1 @@ -35,13 +44,14 @@

- After performing an experiment, we will either accept or reject the null hypothesis based on the data we collect. + After performing an experiment, we will either accept or reject the null + hypothesis based on the data we collect. Consider the following scenarios:

- + accept H_0 reject H_0 @@ -60,14 +70,18 @@

- We'll use the notation \alpha for the probability of making a type I error, also called the significance level, and \beta for the probability of making a type II error. - The power of a test is the probability of correctly rejecting H_0, i.e., 1 - \beta. + We'll use the notation \alpha for the probability of making a type I + error, also called the significance level, and \beta for + the probability of making a type II error. + The power of a test is the probability of correctly rejecting + H_0, i.e., 1 - \beta.

- The p-value is the probability of observing a result at least as extreme as measured if H_0 is true. + The p-value is the probability of observing a result + at least as extreme as measured if H_0 is true.

@@ -75,7 +89,9 @@

- Continuing the previous example, under H_0 that \theta = 0.1, the probability of seeing at least 16 left-handed people in a sample of 100 people would be: + Continuing the previous example, under H_0 that + \theta = 0.1, the probability of seeing at least 16 left-handed + people in a sample of 100 people would be: \sum_{k = 16}^{100} {100 \choose k} (0.1)^k (1 - 0.1)^{100 - k} \approx 0.04, @@ -85,20 +101,31 @@

- The goal of our calculation is to control the chance of making a type I error by choosing a significance level cutoff, often 0.05. - If our calculated p-value is below the cutoff, then reject H_0. + The goal of our calculation is to control the chance of making a type I + error by choosing a significance level cutoff, often 0.05. + If our calculated p-value is below the cutoff, then reject + H_0. Otherwise, accept H_0. - In the previous example, we would reject H_0, because it appears that the data we collected is pretty unlikely to see if the null hypothesis were true. - We would accept that, about 4% of the time if the null hypothesis is true, we would see data at least this extreme, and therefore make a mistake by rejecting H_0. + In the previous example, we would reject H_0, because it appears that + the data we collected is pretty unlikely to see if the null hypothesis were + true. + We would accept that, about 4% of the time if the null hypothesis + is true, we would see data at least this extreme, and therefore + make a mistake by rejecting H_0.

The test we just applied is called 1-tailed. - The alternative hypothesis \theta \gt 0.1 proposed that \theta was different from 0.1 in a specific direction. - For a 2-tailed test, we could use the alternative hypothesis that \theta \neq 0.1. - In this setting, the idea of data "at least as extreme" as what was measured is reframed. - We measured 16 left-handed people in a sample of 100, which is 6 more than we would expect under the null hypothesis. - So we should also include the possibility of seeing at least 6 fewer left-handed people in the sample than expected: + The alternative hypothesis \theta \gt 0.1 proposed that \theta + was different from 0.1 in a specific direction. + For a 2-tailed test, we could use the alternative hypothesis + that \theta \neq 0.1. + In this setting, the idea of data "at least as extreme" as what was measured + is reframed. + We measured 16 left-handed people in a sample of 100, which is 6 more than + we would expect under the null hypothesis. + So we should also include the possibility of seeing at least 6 fewer + left-handed people in the sample than expected: p\text{-value} \amp = \Pr(\geq 16 \text{ left-handed people}) + \Pr(\leq 4 \text{ left-handed people}) \amp = \left(\sum_{k = 16}^{100} {100 \choose k} (0.1)^k (0.9)^{100 - k}\right) + \left(\sum_{k = 0}^{4} {100 \choose k} (0.1)^k (0.9)^{100 - k}\right) @@ -108,7 +135,8 @@

- In suitable situations, we can also use a normal approximation via to calculate the p-value. + In suitable situations, we can also use a normal approximation via + to calculate the p-value.

@@ -116,13 +144,17 @@

We find a coin on the street and wonder if it's a fair coin. We flip it 100 times and see 62 heads. - Is this strong evidence to reject the null hypothesis of a fair coin at a 0.05 significance level? + Is this strong evidence to reject the null hypothesis of a fair coin at + a 0.05 significance level?

- Let S be the random variable which counts the number of heads in 100 flips. - The null hypothesis H_0 of a fair coin would mean the parameter \theta = \Pr(\text{heads}) = 0.5. - (We'll avoid the letter p for the parameter to prevent confusion with the new term, p-value.) So: + Let S be the random variable which counts the number of heads in + 100 flips. + The null hypothesis H_0 of a fair coin would mean the parameter + \theta = \Pr(\text{heads}) = 0.5. + (We'll avoid the letter p for the parameter to prevent confusion + with the new term, p-value.) So: \E(S) \amp = n\theta = 100(0.5) = 50 \Var(S) \amp = n\theta(1-\theta) = 100(0.5)(0.5) = 25 @@ -141,91 +173,153 @@ - - -

- In each of the following scenarios, determine whether we should use a 1-tailed test or a 2-tailed test. -

- + + +

+ In each of the following scenarios, determine whether we should use a + 1-tailed test or a 2-tailed test. +

+
+ + +

+ We have a coin which we've flipped many times, seeing an + above-average number of heads. + We suspect the coin comes up heads more often than a fair coin + would. +

+
- + +

+ 1-tailed. +

+
+
+ + + +

+ We find a coin on the street and wonder whether or not it's a fair + coin. +

+
+ + +

+ 2-tailed. +

+
+
+ + + +

+ We suspect there will be a difference in average weight of mice + caught during the summer versus during the winter. +

+
+ + +

+ 2-tailed. +

+
+
+ + + +

+ In a medical study, a group of patients are gathered and the + proportion experiencing particular symptoms is measured. + A new drug intended to eliminate these symptoms is administered, + after which the proportion experiencing symptoms is measured again. +

+
+ + +

+ 1-tailed. +

+
+
+
+ +

- We have a coin which we've flipped many times, seeing an above-average number of heads. - We suspect the coin comes up heads more often than a fair coin would. + Suppose we find a coin and wonder whether it's fair. + As a first test, we decide to flip the coin 200 times and count the + number of heads. + If we see 112 heads, should we accept or reject the null hypothesis of + a fair coin at a significance level of 0.05?

- + +

+ The p-value is 0.1032, so we do not reject the null hypothesis. +

+
+
- +

- We find a coin on the street and wonder whether or not it's a fair coin. + Suppose we have a coin which we suspect comes up heads more often than + a fair coin would. + As a first test, we decide to flip the coin 200 times and count the + number of heads. + If we see 112 heads, should we accept or reject the null hypothesis of + a fair coin at a significance level of 0.05?

-
+ +

+ The p-value is 0.0516, so we do not reject the null hypothesis. +

+
+ - +

- We suspect there will be a difference in average weight of mice caught during the summer versus during the winter. + Suppose we find a six-sided die and wonder whether it's fair. + As a first test, we decide to roll the die 100 times and count the + number of times it comes up 1. + If we roll 22 1's, should we accept or reject the null hypothesis of a + fair die at a significance level of 0.05?

-
+ +

+ The p-value is 0.1936, so we do not reject the null hypothesis. +

+
+ - +

- In a medical study, a group of patients are gathered and the proportion experiencing particular symptoms is measured. - A new drug intended to eliminate these symptoms is administered, after which the proportion experiencing symptoms is measured again. + Suppose a particular plant when grown outdoors has an average height + of 39 in with a variance of 20 in^2. + We suspect that growing this plant in a greenhouse will increase its + height. + A sample of 50 plants grown in a greenhouse has an average height of + 40 in. + Is this significant enough data to reject the null hypothesis of equal + means at the p = 0.05 significance level?

-
- - - -

- Suppose we find a coin and wonder whether it's fair. - As a first test, we decide to flip the coin 200 times and count the number of heads. - If we see 112 heads, should we accept or reject the null hypothesis of a fair coin at a significance level of 0.05? -

-
-
- - - -

- Suppose we have a coin which we suspect comes up heads more often than a fair coin would. - As a first test, we decide to flip the coin 200 times and count the number of heads. - If we see 112 heads, should we accept or reject the null hypothesis of a fair coin at a significance level of 0.05? -

-
-
- - - -

- Suppose we find a six-sided die and wonder whether it's fair. - As a first test, we decide to roll the die 100 times and count the number of times it comes up 1. - If we roll 22 1's, should we accept or reject the null hypothesis of a fair die at a significance level of 0.05? -

-
-
- - - -

- Suppose a particular plant when grown outdoors has an average height of 39 in with a variance of 20 in^2. - We suspect that growing this plant in a greenhouse will increase its height. - A sample of 50 plants grown in a greenhouse has an average height of 40 in. - Is this significant enough data to reject the null hypothesis of equal means at the p = 0.05 significance level? -

-
-
+ +

+ The p-value is 0.0571, so we do not reject the null hypothesis. +

+
+ \ No newline at end of file diff --git a/source/sec-Power.ptx b/source/sec-Power.ptx index 9210ca6..26f435f 100644 --- a/source/sec-Power.ptx +++ b/source/sec-Power.ptx @@ -2,7 +2,8 @@ Power of a Test

- Recall that the power of a test is the probability of rejecting a false null hypothesis. + Recall that the power of a test is the probability of rejecting a false null + hypothesis. To understand the power, we must know:

  1. @@ -23,20 +24,25 @@

    We find a coin and wonder if it's fair. - Let \theta be the probability of the coin coming up heads on a flip. + Let \theta be the probability of the coin coming up heads on a + flip. Let S count the number of heads in 100 flips. - Under the null hypothesis that \theta = 0.5, S is binomial, with: + Under the null hypothesis that \theta = 0.5, S is + binomial, with: \E(S) \amp = (n)(\theta) = (100)(0.5) = 50 \Var(S) \amp = (n)(\theta)(1 - \theta) = (100)(0.5)(0.5) = 25 Using a normal approximation, S \approx \Norm(50, 25). - In the calculation of the p-value for a 2-tailed test, we will eventually reach the expression: + In the calculation of the p-value for a 2-tailed test, we will + eventually reach the expression: \Pr(Z \geq z) + \Pr(Z \leq -z) for some z-score. - To address the first question above, we can calculate, for a specified significance level \alpha, the z-score that represents data at the cutoff between accepting and rejecting the null hypothesis: + To address the first question above, we can calculate, for a specified + significance level \alpha, the z-score that represents + data at the cutoff between accepting and rejecting the null hypothesis: \alpha \amp = \Pr(Z \geq z) + \Pr(Z \leq -z) \amp = \Phi(-z) + (1 - \Phi(z)) @@ -44,27 +50,35 @@ \Rightarrow \Phi(-z) \amp = \frac{\alpha}{2} -z \amp = \Phi^{-1}\left(\frac{\alpha}{2}\right) - For the significance level \alpha = 0.05, we'll have z = 1.96. - Now, we convert back to values of S, keeping in mind that a continuity correction would be involved: + For the significance level \alpha = 0.05, we'll have + z = 1.96. + Now, we convert back to values of S, keeping in mind that a + continuity correction would be involved: \frac{S - 0.5 - 50}{\sqrt{25}} \amp = 1.96 S \amp = 50.5 + 1.96 \sqrt{25} = 60.3. - We can't flip a fractional number of heads, so it would take a result of 61 or more heads (or, equally extreme in the other direction, 39 heads or fewer) to reject the null hypothesis. + We can't flip a fractional number of heads, so it would take a result of + 61 or more heads (or, equally extreme in the other direction, 39 heads + or fewer) to reject the null hypothesis.

    To address the second question, we find a obstacle. - How can we calculate the probability of seeing data extreme enough data to reject H_0 without knowing the true value of \theta? In fact, the power is not a single number, but a function of \theta. - For each hypothetical value of \theta, we'll calculate the probability of seeing extreme enough data to reject H_0. + How can we calculate the probability of seeing data extreme enough data to + reject H_0 without knowing the true value of \theta? + In fact, the power is not a single number, but a function of \theta. + For each hypothetical value of \theta, we'll calculate the + probability of seeing extreme enough data to reject H_0.

    - Continuing the previous example, we know that, if S \geq 61 or S \leq 39, we would reject H_0. + Continuing the previous example, we know that, if S \geq 61 or + S \leq 39, we would reject H_0. For a given value of \theta: \E(S) \amp = n\theta = 100\theta @@ -83,97 +97,139 @@ \amp \approx (1 - 0.5398) + 0 \amp = 0.4602 - (Note: for the z-score -4.18, which is below the range covered by , we will treat the \Phi value as close enough to 0. - For a z-score outside the range on the other side, we would treat the \Phi value as 1. - If we needed more precision than that, we would consult an expanded table.) + (Note: for the z-score -4.18, which is below the range + covered by , we will treat the \Phi + value as close enough to 0. + For a z-score outside the range on the other side, we would treat + the \Phi value as 1. + If we needed more precision than that, we would consult an expanded + table.)

    - We can see in the example that the power of the test was greater when \theta = 0.6 than when \theta = 0.55. + We can see in the example that the power of the test was greater when + \theta = 0.6 than when \theta = 0.55. The null hypothesis was \theta = 0.5. - It is reasonable that, if the coin is more different from the null hypothesis, then it will have a higher probabiilty of producing data extreme enough to reject the null hypothesis. + It is reasonable that, if the coin is more different from the null + hypothesis, then it will have a higher probabiilty of producing data extreme + enough to reject the null hypothesis.

    - - -

    - Suppose we find a coin and wonder whether it's fair. - As a first test, we decide to flip the coin 200 times and count the number of heads, S. - What values of S would be extreme enough to reject the null hypothesis of a fair coin? If the coin actually has a 0.6 probability of coming up heads, what is the power of this test? -

    -
    -
    - - - -

    - Suppose we have a coin which we suspect comes up heads more often than a fair coin would. - As a first test, we decide to flip the coin 200 times and count the number of heads, S. - What values of S would be extreme enough to reject the null hypothesis of a fair coin? If the coin actually has a 0.6 probability of coming up heads, what is the power of this test? -

    -
    -
    - - - -

    - Suppose we find a six-sided die and wonder whether it's fair. - As a first test, we decide to roll the die 100 times and count the number of times it comes up 1. - The expected number of 1's is 50/3, with a variance of 125/9. -

    -
    - - - +

    - Using a normal approximation, what is the smallest number of 1's greater than 50/3 that would be extreme enough to reject the null hypothesis of a fair die? + Suppose we find a coin and wonder whether it's fair. + As a first test, we decide to flip the coin 200 times and count the + number of heads, S. + What values of S would be extreme enough to reject the null + hypothesis of a fair coin? + If the coin actually has a 0.6 probability of coming up heads, + what is the power of this test?

    -
    + +

    + (Note: Normal approximation was used for these calculations.) +

    - +

    + We can reject the null hypothesis if we see greater than or equal to + 115 heads, or if we see less than or equal to 85 heads. +

    + +

    + If the coin has a 0.6 probability of coming up heads, then the + power of the test is 0.7852. +

    +
    +
    + +

    - Using a normal approximation, what is the greatest number of 1's less than 50/3 that would be extreme enough to reject the null hypothesis of a fair die? + Suppose we have a coin which we suspect comes up heads more often than + a fair coin would. + As a first test, we decide to flip the coin 200 times and count the + number of heads, S. + What values of S would be extreme enough to reject the null + hypothesis of a fair coin? + If the coin actually has a 0.6 probability of coming up heads, what is + the power of this test?

    - +
    + + +

    + Suppose we find a six-sided die and wonder whether it's fair. + As a first test, we decide to roll the die 100 times and count the + number of times it comes up 1. + The expected number of 1's is 50/3, with a variance of 125/9. +

    +
    - + + +

    + Using a normal approximation, what is the smallest number of 1's + greater than 50/3 that would be extreme enough to reject the null + hypothesis of a fair die? +

    +
    +
    + + + +

    + Using a normal approximation, what is the greatest number of 1's + less than 50/3 that would be extreme enough to reject the null + hypothesis of a fair die? +

    +
    +
    + + + +

    + Suppose that this die is weighted so that it rolls a 1 with + probability 0.2. + What would be the power of our test? +

    +
    +
    + + + +

    + Suppose we roll the die 100 times and see 23 1's. + Use the maximum likelihood value for the probability of rolling a 1 + to calculate the power of the test. +

    +
    +
    +
    + +

    - Suppose that this die is weighted so that it rolls a 1 with probability 0.2. - What would be the power of our test? + Suppose a particular plant when grown outdoors has an average height + of 39 in with a variance of 20 in^2. + We suspect that growing this plant in a greenhouse will increase its + height. + We take the average height of a sample of 50 plants grown in a + greenhouse. + What is the minimum average height of this sample that would be + extreme enough to reject the null hypothesis of equal means at the + p = 0.05 significance level? + If the plants, when grown in a greenhouse, would truly have an average + height of 41 in, what is the power of our test?

    - - - - - -

    - Suppose we roll the die 100 times and see 23 1's. - Use the maximum likelihood value for the probability of rolling a 1 to calculate the power of the test. -

    -
    -
    -
    - - - -

    - Suppose a particular plant when grown outdoors has an average height of 39 in with a variance of 20 in^2. - We suspect that growing this plant in a greenhouse will increase its height. - We take the average height of a sample of 50 plants grown in a greenhouse. - What is the minimum average height of this sample that would be extreme enough to reject the null hypothesis of equal means at the p = 0.05 significance level? If the plants, when grown in a greenhouse, would truly have an average height of 41 in, what is the power of our test? -

    -
    -
    +
    \ No newline at end of file diff --git a/source/sec-Two-Sample-Tests.ptx b/source/sec-Two-Sample-Tests.ptx index e01894d..2e8144c 100644 --- a/source/sec-Two-Sample-Tests.ptx +++ b/source/sec-Two-Sample-Tests.ptx @@ -2,28 +2,41 @@ Two Sample Tests

    - In the previous section, we compared data collected from a sample against a known or supposed baseline. - But the statistics for that baseline would also generally be approximated by collecting data from a sample. - We'll now consider hypothesis tests that directly involve two samples of data, one called a control group and the other an experimental group. + In the previous section, we compared data collected from a sample against a + known or supposed baseline. + But the statistics for that baseline would also generally be approximated by + collecting data from a sample. + We'll now consider hypothesis tests that directly involve two samples of + data, one called a control group and the other an + experimental group.

    Suppose a sample of 50 plants have a mean height of 35 cm. - A separate sample of 30 plants are taken from another plot which has been using a new fertilizer intended to increase plant growth, and they have a mean height of 36.4 cm. - If the height of a plant has a variance of \sigma^2 = 12 \text{cm}^2, do we have strong enough evidence to reject the null hypothesis that the new fertilizer has no effect on plant height? + A separate sample of 30 plants are taken from another plot which has + been using a new fertilizer intended to increase plant growth, and they + have a mean height of 36.4 cm. + If the height of a plant has a variance of + \sigma^2 = 12 \text{cm}^2, do we have strong enough evidence to + reject the null hypothesis that the new fertilizer has no effect on + plant height?

    - Let A_1 be the random variable representing average height of the control group of plants. - This sample has size n_1 = 50, and we measured the average height \mu_1 = 35. + Let A_1 be the random variable representing average height of the + control group of plants. + This sample has size n_1 = 50, and we measured the average height + \mu_1 = 35. The variance of the average height would be: \Var(A_1) \amp = \frac{\sigma^2}{n_1} = \frac{12}{50} = 0.24. - Similarly, let A_2 be the random variable representing average height of the experimental group of plants. - This sample has size n_2 = 30, and we measured the average height \mu_2 = 36.4. + Similarly, let A_2 be the random variable representing average + height of the experimental group of plants. + This sample has size n_2 = 30, and we measured the average height + \mu_2 = 36.4. The variance of the average height would be: \Var(A_2) \amp = \frac{\sigma^2}{n_2} = \frac{12}{30} = 0.4. @@ -32,7 +45,8 @@

    - According to the null hypothesis, the two plots of plants should behave the same way, so \E(D) = 0. + According to the null hypothesis, the two plots of plants should behave + the same way, so \E(D) = 0. We measured the value: D = A_2 - A_1 = 36.4 - 35 = 1.4 @@ -41,7 +55,8 @@ \Var(D) = \Var(A_2 - A_1) = \Var(A_2) + \Var(A_1) = 0.24 + 0.4 = 0.64. - So, under the null hypothesis, we will treat D as \Norm(0, 0.64). + So, under the null hypothesis, we will treat D as + \Norm(0, 0.64). We then perform a 1-tailed test: \Pr(D \geq 1.4) \amp \approx \Pr\left(Z \geq \frac{1.4 - 0}{\sqrt{0.64}}\right) @@ -55,22 +70,30 @@

    - However, we don't know \sigma^2, so we should replace it with the sample variance. + However, we don't know \sigma^2, so we should replace it with the + sample variance.

    - Suppose a sample of 100 people from the general population contains 10 left-handed people, and a sample of 100 patients from a carpal tunnel syndrome clinic contains 16 left-handed people. - If \theta_1 is the proportion of left-handed people in the general population, then the maximum likelihood estimation based on our control group sample would be: + Suppose a sample of 100 people from the general population contains 10 + left-handed people, and a sample of 100 patients from a carpal tunnel + syndrome clinic contains 16 left-handed people. + If \theta_1 is the proportion of left-handed people in the + general population, then the maximum likelihood estimation based on our + control group sample would be: \widehat{\theta}_1 = \frac{10}{100} = 0.1. - If \theta_2 is the proportion of left-handed people in the patient population, then the maximum likelihood estimate would be: + If \theta_2 is the proportion of left-handed people in the + patient population, then the maximum likelihood estimate would be: \widehat{\theta}_2 = \frac{16}{100} = 0.16. - Write A_1 for the proportion of the control group sample which is left-handed and A_2 for the proportion of the experimental group sample. + Write A_1 for the proportion of the control group sample which is + left-handed and A_2 for the proportion of the experimental group + sample. Then we can estimate the variances: n_1 \amp = 100 \amp n_2 \amp = 100 @@ -83,9 +106,14 @@ \Var(D) = \Var(A_2) + \Var(A_1), however, we should pause a moment here. - The null hypothesis would be that the two populations have the same statistics. + The null hypothesis would be that the two populations have the same + statistics. That should include the same variance for an individual measurement. - (The variances of A_1 and A_2 could still be different if, e.g., they were averaging over different sized samples.) So we should abandon our two distinct maximum likelihood estimates \widehat{\theta}_1, \widehat{\theta}_2 and instead find one estimate, \widehat{\theta}_0, estimated from all collected data: + (The variances of A_1 and A_2 could still be different if, + e.g., they were averaging over different sized samples.) So we should + abandon our two distinct maximum likelihood estimates + \widehat{\theta}_1, \widehat{\theta}_2 and instead find one + estimate, \widehat{\theta}_0, estimated from all collected data: \widehat{\theta}_0 = \frac{10 + 16}{100 + 100} = \frac{26}{200} = 0.13. @@ -111,27 +139,46 @@ - - -

    - A farmer is testing an experimental new plant fertilizer that is supposed to increase the weight of a particular apple variety. - A control sample of 25 apples grown using the usual fertilizer have a mean weight of 75 grams and a sample variance of 90 grams^2 (for an individual apple). - An experimental sample of 25 apples grown using the new fertilizer have a mean weight of 79 grams and a sample variance of 90 grams^2. -

    -
    - + + +

    + A farmer is testing an experimental new plant fertilizer that is + supposed to increase the weight of a particular apple variety. + A control sample of 25 apples grown using the usual fertilizer have a + mean weight of 75 grams and a sample variance of 90 grams^2 + (for an individual apple). + An experimental sample of 25 apples grown using the new fertilizer + have a mean weight of 79 grams and a sample variance of 90 + grams^2. + Is this sufficient evidence to reject the null hypothesis that the new + plant fertilizer has no effect on the weights of the apples? +

    +
    +
    - - -

    - We have an established factory which produces coins that are close to fair. - We're opening up a second factory, and we'd like to ensure the machines are calibrated to produce coins which behave similarly to the ones produced in the established factory. - We pick one sample coin from each factory, and flip each sample coin 100 times. - The coin from the established factory flips 52 heads in 100 flips. - The coin from the new factory flips 62 heads in 100 flips. - Is this strong enough evidence to reject the null hypothesis that the two factories produce similar coins at a 0.05 significance level? -

    -
    -
    + + +

    + We have an established factory which produces coins that are close to + fair. + We're opening up a second factory, and we'd like to ensure the + machines are calibrated to produce coins which behave similarly to the + ones produced in the established factory. + We pick one sample coin from each factory, and flip each sample coin + 100 times. + The coin from the established factory flips 52 heads in 100 flips. + The coin from the new factory flips 62 heads in 100 flips. + Is this strong enough evidence to reject the null hypothesis that the + two factories produce similar coins at a 0.05 significance level? +

    +
    + + +

    + The p-value is 0.1738, so we do not reject the null + hypothesis. +

    +
    +
    \ No newline at end of file