More Ch 5 answers
This commit is contained in:
+205
-126
@@ -2,15 +2,19 @@
|
|||||||
<title><m>\chi^2</m> Test</title>
|
<title><m>\chi^2</m> Test</title>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
In our previous hypothesis tests, we've asked about the correct value of some distribution parameter.
|
In our previous hypothesis tests, we've asked about the correct value of
|
||||||
But we might also be interested in whether a particular type of distribution fits the data in the first place.
|
some distribution parameter.
|
||||||
In this situation, we can try to measure the extent to which the observed data differs from what would be expected under a particular distribution.
|
But we might also be interested in whether a particular type of distribution
|
||||||
|
fits the data in the first place.
|
||||||
|
In this situation, we can try to measure the extent to which the observed
|
||||||
|
data differs from what would be expected under a particular distribution.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<definition xml:id="def-chi-squared">
|
<definition xml:id="def-chi-squared">
|
||||||
<statement>
|
<statement>
|
||||||
<p>
|
<p>
|
||||||
Suppose <m>O_1, \dotsc, O_n</m> are observed data with expected values <m>E_1, \dotsc, E_n</m>.
|
Suppose <m>O_1, \dotsc, O_n</m> are observed data with expected values
|
||||||
|
<m>E_1, \dotsc, E_n</m>.
|
||||||
The <term><m>\chi^2</m> statistic</term> is:
|
The <term><m>\chi^2</m> statistic</term> is:
|
||||||
<md>
|
<md>
|
||||||
<mrow> \chi^2 = \sum_{i=1}^n \frac{(O_i - E_i)^2}{E_i}. </mrow>
|
<mrow> \chi^2 = \sum_{i=1}^n \frac{(O_i - E_i)^2}{E_i}. </mrow>
|
||||||
@@ -20,43 +24,65 @@
|
|||||||
</definition>
|
</definition>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The expression <m>O_i - E_i</m> directly measures the difference between an observation and its expected value.
|
The expression <m>O_i - E_i</m> directly measures the difference between an
|
||||||
However, if we simply summed up these differences, then one observation which is higher than its expected value and another that's lower would have differences that cancel out.
|
observation and its expected value.
|
||||||
Squaring the term ensures that any difference contributes positively when summed together.
|
However, if we simply summed up these differences, then one observation
|
||||||
And dividing by <m>E_i</m> ensures that the differences are expressed relative to the size of the expected value.
|
which is higher than its expected value and another that's lower would have
|
||||||
A difference of <m>0.1</m> might sound like a small difference, but it would have a different interpretation if the expected value is <m>100</m> than if the expected value is <m>0.01</m>.
|
differences that cancel out.
|
||||||
|
Squaring the term ensures that any difference contributes positively when
|
||||||
|
summed together.
|
||||||
|
And dividing by <m>E_i</m> ensures that the differences are expressed
|
||||||
|
relative to the size of the expected value.
|
||||||
|
A difference of <m>0.1</m> might sound like a small difference, but it would
|
||||||
|
have a different interpretation if the expected value is <m>100</m> than if
|
||||||
|
the expected value is <m>0.01</m>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
So the overall number <m>\chi^2</m> is designed to be a measurement of how much the observed data differs from expectation.
|
So the overall number <m>\chi^2</m> is designed to be a measurement of how
|
||||||
It seems like <m>\chi^2</m> could be higher or lower simply as the result of the number of terms involved in the summation.
|
much the observed data differs from expectation.
|
||||||
How much difference is enough to reject the distribution which generated those expected values? It seems that it should depend on that number of terms.
|
It seems like <m>\chi^2</m> could be higher or lower simply as the result of
|
||||||
|
the number of terms involved in the summation.
|
||||||
|
How much difference is enough to reject the distribution which generated
|
||||||
|
those expected values?
|
||||||
|
It seems that it should depend on that number of terms.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<definition xml:id="def-degrees-of-freedom-1">
|
<definition xml:id="def-degrees-of-freedom-1">
|
||||||
<statement>
|
<statement>
|
||||||
<p>
|
<p>
|
||||||
If the data collected fall into <m>n</m> categories, then we will say that there are <m>n - 1</m> <term>degrees of freedom</term>.
|
If the data collected fall into <m>n</m> categories, then we will say
|
||||||
|
that there are <m>n - 1</m> <term>degrees of freedom</term>.
|
||||||
</p>
|
</p>
|
||||||
</statement>
|
</statement>
|
||||||
</definition>
|
</definition>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Suppose our data comes from polling <m>100</m> respondents and arranging their responses into <m>n</m> categories.
|
Suppose our data comes from polling <m>100</m> respondents and arranging
|
||||||
Then, if we know how many people fall into categories <m>1, 2, \dotsc, n-1</m>, we will automatically know how many people fall into the final category, simply because the total number of respondents is already known.
|
their responses into <m>n</m> categories.
|
||||||
|
Then, if we know how many people fall into categories
|
||||||
|
<m>1, 2, \dotsc, n-1</m>, we will automatically know how many people fall
|
||||||
|
into the final category, simply because the total number of respondents is
|
||||||
|
already known.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
For each different number of degrees of freedom, there will be a different critical value of the <m>\chi^2</m> statistic, above which we'll say that the data differs sufficiently from expectation for us to reject the distribution being tested.
|
For each different number of degrees of freedom, there will be a different
|
||||||
A table of critical <m>\chi^2</m> values is provided in <xref ref="app-Chi-squared-table"/>.
|
critical value of the <m>\chi^2</m> statistic, above which we'll say that
|
||||||
|
the data differs sufficiently from expectation for us to reject the
|
||||||
|
distribution being tested.
|
||||||
|
A table of critical <m>\chi^2</m> values is provided in
|
||||||
|
<xref ref="app-Chi-squared-table"/>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<example>
|
<example>
|
||||||
<statement>
|
<statement>
|
||||||
<p>
|
<p>
|
||||||
Suppose <m>100</m> people are surveyed about their favorite color among four choices.
|
Suppose <m>100</m> people are surveyed about their favorite color among
|
||||||
|
four choices.
|
||||||
The results are below.
|
The results are below.
|
||||||
Is this data consistent with the hypothesis that each of the four colors is equally likely to be a favorite?
|
Is this data consistent with the hypothesis that each of the four colors
|
||||||
|
is equally likely to be a favorite?
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<tabular halign="center">
|
<tabular halign="center">
|
||||||
@@ -87,29 +113,39 @@
|
|||||||
</tabular>
|
</tabular>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
In this case, if each color is equally likely to be a favorite, then we would expect <m>25</m> respondents to choose each color.
|
In this case, if each color is equally likely to be a favorite, then we
|
||||||
|
would expect <m>25</m> respondents to choose each color.
|
||||||
So the <m>\chi^2</m> statistic is:
|
So the <m>\chi^2</m> statistic is:
|
||||||
<md>
|
<md>
|
||||||
<mrow> \chi^2 = \frac{(37 - 25)^2}{25} + \frac{(26 - 25)^2}{25} + \frac{(15 - 25)^2}{25} + \frac{(22 - 25)^2}{25} = 10.16.</mrow>
|
<mrow> \chi^2 = \frac{(37 - 25)^2}{25} + \frac{(26 - 25)^2}{25} + \frac{(15 - 25)^2}{25} + \frac{(22 - 25)^2}{25} = 10.16.</mrow>
|
||||||
</md>
|
</md>
|
||||||
Since the data fall into four categories, the number of degrees of freedom is <m>4 - 1 = 3</m>.
|
Since the data fall into four categories, the number of degrees of
|
||||||
From the table in <xref ref="table-Chi-squared"/>, the critical value is <m>7.815</m>.
|
freedom is <m>4 - 1 = 3</m>.
|
||||||
Since <m>10.16 \gt 7.815</m>, our collected data is sufficiently different to reject the hypothesis of equal color preferences.
|
From the table in <xref ref="table-Chi-squared"/>, the critical value is
|
||||||
|
<m>7.815</m>.
|
||||||
|
Since <m>10.16 \gt 7.815</m>, our collected data is sufficiently
|
||||||
|
different to reject the hypothesis of equal color preferences.
|
||||||
</p>
|
</p>
|
||||||
</statement>
|
</statement>
|
||||||
</example>
|
</example>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
In the previous example, we're testing an <term>extrinsic hypothesis</term>, i.e., a hypothesis made entirely without reference to the data.
|
In the previous example, we're testing an <term>extrinsic hypothesis</term>,
|
||||||
Knowing that we planned to poll <m>100</m> people, we could determine our expected values for this hypothesis before even conducting the survey.
|
i.e., a hypothesis made entirely without reference to the data.
|
||||||
However, sometimes we need to use the collected data to estimate the value(s) of one or more parameters of a distribution.
|
Knowing that we planned to poll <m>100</m> people, we could determine our
|
||||||
In such a situation, we say the hypothesis is <term>intrinsic</term>, and we adjust our calculation of degrees of freedom.
|
expected values for this hypothesis before even conducting the survey.
|
||||||
|
However, sometimes we need to use the collected data to estimate the
|
||||||
|
value(s) of one or more parameters of a distribution.
|
||||||
|
In such a situation, we say the hypothesis is <term>intrinsic</term>, and we
|
||||||
|
adjust our calculation of degrees of freedom.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<definition xml:id="def-degrees-of-freedom-2">
|
<definition xml:id="def-degrees-of-freedom-2">
|
||||||
<statement>
|
<statement>
|
||||||
<p>
|
<p>
|
||||||
Suppose it takes <m>m</m> measurements to fully specify the collected data, and suppose there are <m>k</m> parameters that are estimated using the data.
|
Suppose it takes <m>m</m> measurements to fully specify the collected
|
||||||
|
data, and suppose there are <m>k</m> parameters that are estimated using
|
||||||
|
the data.
|
||||||
Then the number of <term>degrees of freedom</term> is <m>m - k</m>
|
Then the number of <term>degrees of freedom</term> is <m>m - k</m>
|
||||||
</p>
|
</p>
|
||||||
</statement>
|
</statement>
|
||||||
@@ -154,19 +190,23 @@
|
|||||||
</tabular>
|
</tabular>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
In order to compare this data to a geometric distribution, we would need to know the value of the parameter <m>\theta</m> for the distribution.
|
In order to compare this data to a geometric distribution, we would need
|
||||||
Based on the collected data, we could provide a maximum likelihood estimate:
|
to know the value of the parameter <m>\theta</m> for the distribution.
|
||||||
|
Based on the collected data, we could provide a maximum likelihood
|
||||||
|
estimate:
|
||||||
<md>
|
<md>
|
||||||
<mrow> \widehat{\theta} \amp = \frac{59 + 21 + 11 + 8 + 1}{1 \cdot 59 + 2\cdot 21 + 3\cdot 11 + 4\cdot 8 + 5\cdot 1} </mrow>
|
<mrow> \widehat{\theta} \amp = \frac{59 + 21 + 11 + 8 + 1}{1 \cdot 59 + 2\cdot 21 + 3\cdot 11 + 4\cdot 8 + 5\cdot 1} </mrow>
|
||||||
<mrow> \amp = \frac{100}{171} </mrow>
|
<mrow> \amp = \frac{100}{171} </mrow>
|
||||||
<mrow> \amp \approx 0.58. </mrow>
|
<mrow> \amp \approx 0.58. </mrow>
|
||||||
</md>
|
</md>
|
||||||
We can use <xref ref="fact-geometric-probability-formula"/> with the parameter value <m>0.58</m> to generate expected values for our data.
|
We can use <xref ref="fact-geometric-probability-formula"/> with the
|
||||||
|
parameter value <m>0.58</m> to generate expected values for our data.
|
||||||
For example:
|
For example:
|
||||||
<md>
|
<md>
|
||||||
<mrow> g(2; 0.58) \amp = (1 - 0.58)^{1}(0.58) = 0.2436, </mrow>
|
<mrow> g(2; 0.58) \amp = (1 - 0.58)^{1}(0.58) = 0.2436, </mrow>
|
||||||
</md>
|
</md>
|
||||||
so we would expect <m>0.2436 \times 100 = 24.36</m> observations for the number <m>2</m>.
|
so we would expect <m>0.2436 \times 100 = 24.36</m> observations for the
|
||||||
|
number <m>2</m>.
|
||||||
The rest of the expected values are calculated similarly:
|
The rest of the expected values are calculated similarly:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -213,114 +253,153 @@
|
|||||||
<md>
|
<md>
|
||||||
<mrow> \chi^2 \amp = \frac{(59 - 58)^2}{58} + \dotsb + \frac{(1 - 1.8)^2}{1.8} \approx 4.08. </mrow>
|
<mrow> \chi^2 \amp = \frac{(59 - 58)^2}{58} + \dotsb + \frac{(1 - 1.8)^2}{1.8} \approx 4.08. </mrow>
|
||||||
</md>
|
</md>
|
||||||
With <m>5</m> categories, it takes <m>4</m> measurements to fully specify the data.
|
With <m>5</m> categories, it takes <m>4</m> measurements to fully
|
||||||
Then, we used the data itself to estimate the value of one parameter, <m>\widehat{\theta}</m>.
|
specify the data.
|
||||||
So the number of degrees of freedom is <m>4 - 1 = 3</m>, with critical <m>\chi^2</m> value <m>7.815</m>.
|
Then, we used the data itself to estimate the value of one parameter,
|
||||||
Since <m>4.08 \lt 7.815</m>, our data is not sufficiently different from expected to reject the hypothesis of a geometric distribution.
|
<m>\widehat{\theta}</m>.
|
||||||
|
So the number of degrees of freedom is <m>4 - 1 = 3</m>, with critical
|
||||||
|
<m>\chi^2</m> value <m>7.815</m>.
|
||||||
|
Since <m>4.08 \lt 7.815</m>, our data is not sufficiently different from
|
||||||
|
expected to reject the hypothesis of a geometric distribution.
|
||||||
</p>
|
</p>
|
||||||
</statement>
|
</statement>
|
||||||
</example>
|
</example>
|
||||||
|
|
||||||
<exercises xml:id="exercises-Chi-Squared">
|
<exercises xml:id="exercises-Chi-Squared">
|
||||||
<exercise>
|
<exercise>
|
||||||
<statement>
|
|
||||||
<p>
|
|
||||||
A store owner wants to determine how much shelf space to allocate to each of the drinks that they sell.
|
|
||||||
They survey their customers about their favorite drinks.
|
|
||||||
Is the data below consistent with the null hypothesis that each type of drink will be equally preferred?
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<table>
|
|
||||||
<title></title>
|
|
||||||
|
|
||||||
<tabular>
|
|
||||||
<row header="yes" bottom="minor">
|
|
||||||
<cell halign="center">drink type</cell>
|
|
||||||
<cell halign="center">water</cell>
|
|
||||||
<cell halign="center">soda</cell>
|
|
||||||
<cell halign="center">tea</cell>
|
|
||||||
<cell halign="center">coffee</cell>
|
|
||||||
<cell halign="center">energy drinks</cell>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row>
|
|
||||||
<cell halign="center">favorite</cell>
|
|
||||||
<cell halign="center">28</cell>
|
|
||||||
<cell halign="center">17</cell>
|
|
||||||
<cell halign="center">15</cell>
|
|
||||||
<cell halign="center">26</cell>
|
|
||||||
<cell halign="center">14</cell>
|
|
||||||
</row>
|
|
||||||
</tabular>
|
|
||||||
</table>
|
|
||||||
</statement>
|
|
||||||
|
|
||||||
<answer>
|
|
||||||
<p>
|
|
||||||
<m>\chi^2 = 8.5</m>, the critical value with 4 degrees of freedom is <m>9.488</m>, so the data is consistent with the null hypothesis.
|
|
||||||
</p>
|
|
||||||
</answer>
|
|
||||||
</exercise>
|
|
||||||
|
|
||||||
<exercise>
|
|
||||||
<introduction>
|
|
||||||
<p>
|
|
||||||
A particular drug is administered in 100 independent trials.
|
|
||||||
In each trial, the drug is administered to four people, and we count how many respond to the drug.
|
|
||||||
The table below shows how many trials have each different count of people who respond to the drug.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<table>
|
|
||||||
<title></title>
|
|
||||||
|
|
||||||
<tabular>
|
|
||||||
<row header="yes" bottom="minor">
|
|
||||||
<cell halign="center"># who respond to drug</cell>
|
|
||||||
<cell halign="center">0</cell>
|
|
||||||
<cell halign="center">1</cell>
|
|
||||||
<cell halign="center">2</cell>
|
|
||||||
<cell halign="center">3</cell>
|
|
||||||
<cell halign="center">4</cell>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row>
|
|
||||||
<cell halign="center"># of trials</cell>
|
|
||||||
<cell halign="center">3</cell>
|
|
||||||
<cell halign="center">11</cell>
|
|
||||||
<cell halign="center">31</cell>
|
|
||||||
<cell halign="center">34</cell>
|
|
||||||
<cell halign="center">21</cell>
|
|
||||||
</row>
|
|
||||||
</tabular>
|
|
||||||
</table>
|
|
||||||
</introduction>
|
|
||||||
|
|
||||||
|
|
||||||
<task>
|
|
||||||
<statement>
|
<statement>
|
||||||
<p>
|
<p>
|
||||||
Is the data consistent with a binomial distribution with parameter <m>p = 0.7</m>?
|
A store owner wants to determine how much shelf space to allocate to
|
||||||
|
each of the drinks that they sell.
|
||||||
|
They survey their customers about their favorite drinks.
|
||||||
|
Is the data below consistent with the null hypothesis that each type
|
||||||
|
of drink will be equally preferred?
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<title/>
|
||||||
|
<tabular>
|
||||||
|
<row header="yes" bottom="minor">
|
||||||
|
<cell halign="center">drink type</cell>
|
||||||
|
<cell halign="center">water</cell>
|
||||||
|
<cell halign="center">soda</cell>
|
||||||
|
<cell halign="center">tea</cell>
|
||||||
|
<cell halign="center">coffee</cell>
|
||||||
|
<cell halign="center">energy drinks</cell>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<cell halign="center">favorite</cell>
|
||||||
|
<cell halign="center">28</cell>
|
||||||
|
<cell halign="center">17</cell>
|
||||||
|
<cell halign="center">15</cell>
|
||||||
|
<cell halign="center">26</cell>
|
||||||
|
<cell halign="center">14</cell>
|
||||||
|
</row>
|
||||||
|
</tabular>
|
||||||
|
</table>
|
||||||
</statement>
|
</statement>
|
||||||
</task>
|
|
||||||
|
|
||||||
|
<answer>
|
||||||
<task>
|
|
||||||
<statement>
|
|
||||||
<p>
|
<p>
|
||||||
What is the total number of people who have been administered the drug? What is the total number who have responded to it? What is the maximum likelihood estimation for the probability <m>p</m> that a person will respond to the drug?
|
<m>\chi^2 = 8.5</m>, the critical value with 4 degrees of freedom is
|
||||||
|
<m>9.488</m>, so the data is consistent with the null hypothesis.
|
||||||
</p>
|
</p>
|
||||||
</statement>
|
</answer>
|
||||||
</task>
|
</exercise>
|
||||||
|
|
||||||
|
<exercise>
|
||||||
<task>
|
<introduction>
|
||||||
<statement>
|
|
||||||
<p>
|
<p>
|
||||||
Is the data consistent with a binomial distribution with the MLE value of <m>p</m>?
|
A particular drug is administered in 100 independent trials.
|
||||||
|
In each trial, the drug is administered to four people, and we count
|
||||||
|
how many respond to the drug.
|
||||||
|
The table below shows how many trials have each different count of
|
||||||
|
people who respond to the drug.
|
||||||
</p>
|
</p>
|
||||||
</statement>
|
|
||||||
</task>
|
<table>
|
||||||
</exercise>
|
<title/>
|
||||||
|
<tabular>
|
||||||
|
<row header="yes" bottom="minor">
|
||||||
|
<cell halign="center"># who respond to drug</cell>
|
||||||
|
<cell halign="center">0</cell>
|
||||||
|
<cell halign="center">1</cell>
|
||||||
|
<cell halign="center">2</cell>
|
||||||
|
<cell halign="center">3</cell>
|
||||||
|
<cell halign="center">4</cell>
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<cell halign="center"># of trials</cell>
|
||||||
|
<cell halign="center">3</cell>
|
||||||
|
<cell halign="center">11</cell>
|
||||||
|
<cell halign="center">31</cell>
|
||||||
|
<cell halign="center">34</cell>
|
||||||
|
<cell halign="center">21</cell>
|
||||||
|
</row>
|
||||||
|
</tabular>
|
||||||
|
</table>
|
||||||
|
</introduction>
|
||||||
|
|
||||||
|
<task>
|
||||||
|
<statement>
|
||||||
|
<p>
|
||||||
|
Is the data consistent with a binomial distribution with parameter
|
||||||
|
<m>p = 0.7</m>?
|
||||||
|
</p>
|
||||||
|
</statement>
|
||||||
|
|
||||||
|
<answer>
|
||||||
|
<p>
|
||||||
|
We have <m>\chi^2 \approx 9.888</m> without pooling categories, but
|
||||||
|
<m>\chi^2 \approx 6.189</m> when pooling the categories <m>0</m> and
|
||||||
|
<m>1</m> together.
|
||||||
|
After pooling, with <m>3</m> degrees of freedom, we do not reject
|
||||||
|
the null hypothesis.
|
||||||
|
</p>
|
||||||
|
</answer>
|
||||||
|
</task>
|
||||||
|
|
||||||
|
<task>
|
||||||
|
<statement>
|
||||||
|
<p>
|
||||||
|
What is the total number of people who have been administered the
|
||||||
|
drug?
|
||||||
|
What is the total number who have responded to it?
|
||||||
|
What is the maximum likelihood estimation for the probability
|
||||||
|
<m>p</m> that a person will respond to the drug?
|
||||||
|
</p>
|
||||||
|
</statement>
|
||||||
|
|
||||||
|
<answer>
|
||||||
|
<p>
|
||||||
|
<m>400</m> people have been administered the drug, with <m>259</m>
|
||||||
|
responding to it.
|
||||||
|
So the maximum likelihood estimation for the probability of
|
||||||
|
responding to the drug is <m>0.6475</m>.
|
||||||
|
</p>
|
||||||
|
</answer>
|
||||||
|
</task>
|
||||||
|
|
||||||
|
<task>
|
||||||
|
<statement>
|
||||||
|
<p>
|
||||||
|
Is the data consistent with a binomial distribution with the MLE
|
||||||
|
value of <m>p</m>?
|
||||||
|
</p>
|
||||||
|
</statement>
|
||||||
|
|
||||||
|
<answer>
|
||||||
|
<p>
|
||||||
|
We have <m>\chi^2 \approx 2.54</m> without pooling categories, but
|
||||||
|
<m>\chi^2 \approx 1.24</m> when pooling the categories <m>0</m> and
|
||||||
|
<m>1</m> together.
|
||||||
|
After pooling, with <m>3</m> degrees of freedom, we do not reject
|
||||||
|
the null hypothesis.
|
||||||
|
</p>
|
||||||
|
</answer>
|
||||||
|
</task>
|
||||||
|
</exercise>
|
||||||
</exercises>
|
</exercises>
|
||||||
</section>
|
</section>
|
||||||
@@ -161,6 +161,22 @@
|
|||||||
the power of this test?
|
the power of this test?
|
||||||
</p>
|
</p>
|
||||||
</statement>
|
</statement>
|
||||||
|
|
||||||
|
<answer>
|
||||||
|
<p>
|
||||||
|
(Note: Normal approximation was used for these calculations.)
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
We can reject the null hypothesis if we see greater than or equal to
|
||||||
|
<m>113</m> heads.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
If the coin has a <m>0.6</m> probability of coming up heads, then the
|
||||||
|
power of the test is <m>0.8599</m>.
|
||||||
|
</p>
|
||||||
|
</answer>
|
||||||
</exercise>
|
</exercise>
|
||||||
|
|
||||||
<exercise>
|
<exercise>
|
||||||
@@ -230,6 +246,18 @@
|
|||||||
height of 41 in, what is the power of our test?
|
height of 41 in, what is the power of our test?
|
||||||
</p>
|
</p>
|
||||||
</statement>
|
</statement>
|
||||||
|
|
||||||
|
<answer>
|
||||||
|
<p>
|
||||||
|
The minimum average height to reject the null hypothesis is
|
||||||
|
<m>40.04</m> in.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The power of the test given the true average height of <m>41</m> in is
|
||||||
|
<m>0.9357</m>.
|
||||||
|
</p>
|
||||||
|
</answer>
|
||||||
</exercise>
|
</exercise>
|
||||||
</exercises>
|
</exercises>
|
||||||
</section>
|
</section>
|
||||||
Reference in New Issue
Block a user