Latest build deployed.

This commit is contained in:
2026-04-02 07:47:45 -04:00
parent 65cf93d9c0
commit e43fb0d0ff
191 changed files with 1444 additions and 128 deletions
+165 -7
View File
@@ -101,14 +101,14 @@ eBookConfig.allow_pairs = false;
eBookConfig.enableScratchAC = false;
eBookConfig.build_info = "";
eBookConfig.python3 = null;
eBookConfig.runestone_version = '7.11.19';
eBookConfig.runestone_version = '7.12.2';
eBookConfig.jobehost = '';
eBookConfig.proxyuri_runs = '';
eBookConfig.proxyuri_files = '';
eBookConfig.enable_chatcodes = false;
</script>
<!--*** Runestone Services ***-->
<script src="_static/prefix-runtime.998c9d9ee2a5e7ac.bundle.js"></script><script src="_static/prefix-723.3e6434f80549315a.bundle.js"></script><script src="_static/prefix-runestone.98ef3b0c170cd180.bundle.js"></script><link rel="stylesheet" type="text/css" href="_static/prefix-723.3bccd435914aa0ff.css">
<script src="_static/prefix-runtime.d2d4c56cb9826035.bundle.js"></script><script src="_static/prefix-723.3e6434f80549315a.bundle.js"></script><script src="_static/prefix-runestone.a4a209ed3a55c515.bundle.js"></script><link rel="stylesheet" type="text/css" href="_static/prefix-723.3bccd435914aa0ff.css">
<link rel="stylesheet" type="text/css" href="_static/prefix-runestone.b12a7b3f0773ebcd.css">
<script src="_static/pretext/js/lti_iframe_resizer.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.9/lunr.min.js" integrity="sha512-4xUl/d6D6THrAnXAwGajXkoWaeMNwEKK4iNfq5DotEbLPAfk6FSxSP3ydNxqDgCw1c/0Z1Jg6L8h2j+++9BZmg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script><script src="lunr-pretext-search-index.js" async=""></script><script src="_static/pretext/js/pretext_search.js"></script><script src="_static/pretext/js/knowl.js"></script><!--knowl.js code controls Sage Cells within knowls--><script>sagecellEvalName='Evaluate (Sage)';
</script>
@@ -302,21 +302,179 @@ eBookConfig.enable_chatcodes = false;
<div class="toc-title-box"><a href="backmatter-2.html" class="internal"><span class="codenumber">A</span> <span class="title"><span class="process-math">\(\Phi(z)\)</span> Table</span></a></div>
<ul class="structural toc-item-list"><li class="toc-item toc-section"><div class="toc-title-box"><a href="app-Phi-table.html" class="internal"><span class="codenumber">A.1</span> <span class="title"><span class="process-math">\(\Phi(z)\)</span> Table of Values</span></a></div></li></ul>
</li>
<li class="toc-item toc-colophon"><div class="toc-title-box"><a href="backmatter-3.html" class="internal"><span class="title">Colophon</span></a></div></li>
<li class="toc-item toc-appendix">
<div class="toc-title-box"><a href="backmatter-3.html" class="internal"><span class="codenumber">B</span> <span class="title"><span class="process-math">\(\chi^2\)</span> Critical Values Table</span></a></div>
<ul class="structural toc-item-list"><li class="toc-item toc-section"><div class="toc-title-box"><a href="app-Chi-squared-table.html" class="internal"><span class="codenumber">B.1</span> <span class="title"><span class="process-math">\(\chi^2\)</span> Critical Values</span></a></div></li></ul>
</li>
<li class="toc-item toc-colophon"><div class="toc-title-box"><a href="backmatter-4.html" class="internal"><span class="title">Colophon</span></a></div></li>
</ul>
</li>
</ul></nav></div>
<main class="ptx-main"><div id="ptx-content" class="ptx-content"><section class="section" id="sec-Chi-Squared"><h2 class="heading hide-type">
<span class="type">Section</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber">5.4</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="title"><span class="process-math">\(\chi^2\)</span> Test</span>
</h2>
<div class="para" id="sec-Chi-Squared-2">Text of section.<div class="autopermalink" data-description="Paragraph"><a href="#sec-Chi-Squared-2" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
<div class="para" id="sec-Chi-Squared-2">In our previous hypothesis tests, weve asked about the correct value of some distribution parameter. 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.<div class="autopermalink" data-description="Paragraph"><a href="#sec-Chi-Squared-2" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<section class="exercises" id="exercises-Chi-Squared"><h3 class="heading hide-type">
<article class="definition definition-like" id="def-chi-squared"><h3 class="heading">
<span class="type">Definition</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber">5.4.1</span><span class="period heading-divison-mark heading-divison-mark__period">.</span>
</h3>
<div class="para logical" id="def-chi-squared-1-1">
<div class="para">Suppose <span class="process-math">\(O_1, \dotsc, O_n\)</span> are observed data with expected values <span class="process-math">\(E_1, \dotsc, E_n\text{.}\)</span> The <dfn class="terminology"><span class="process-math">\(\chi^2\)</span> statistic</dfn> is:</div>
<div class="displaymath process-math" id="def-chi-squared-1-1-4">
\begin{gather*}
\chi^2 = \sum_{i=1}^n \frac{(O_i - E_i)^2}{E_i}.
\end{gather*}
</div>
<div class="autopermalink" data-description="Paragraph"><a href="#def-chi-squared-1-1" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<div class="autopermalink" data-description="Definition 5.4.1"><a href="#def-chi-squared" title="Copy heading and permalink for Definition 5.4.1" aria-label="Copy heading and permalink for Definition 5.4.1">🔗</a></div></article><div class="para" id="sec-Chi-Squared-4">The expression <span class="process-math">\(O_i - E_i\)</span> directly measures the difference between an observation and its expected value. However, if we simply summed up these differences, then one observation which is higher than its expected value and another thats lower would have differences that cancel out. Squaring the term ensures that any difference contributes positively when summed together. And dividing by <span class="process-math">\(E_i\)</span> ensures that the differences are expressed relative to the size of the expected value. A difference of <span class="process-math">\(0.1\)</span> might sound like a small difference, but it would have a different interpretation if the expected value is <span class="process-math">\(100\)</span> than if the expected value is <span class="process-math">\(0.01\text{.}\)</span><div class="autopermalink" data-description="Paragraph"><a href="#sec-Chi-Squared-4" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<div class="para" id="sec-Chi-Squared-5">So the overall number <span class="process-math">\(\chi^2\)</span> is designed to be a measurement of how much the observed data differs from expectation. It seems like <span class="process-math">\(\chi^2\)</span> 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.<div class="autopermalink" data-description="Paragraph"><a href="#sec-Chi-Squared-5" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<article class="definition definition-like" id="def-degrees-of-freedom-1"><h3 class="heading">
<span class="type">Definition</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber">5.4.2</span><span class="period heading-divison-mark heading-divison-mark__period">.</span>
</h3>
<div class="para" id="def-degrees-of-freedom-1-1-1">If the data collected fall into <span class="process-math">\(n\)</span> categories, then we will say that there are <span class="process-math">\(n - 1\)</span> <dfn class="terminology">degrees of freedom</dfn>.<div class="autopermalink" data-description="Paragraph"><a href="#def-degrees-of-freedom-1-1-1" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<div class="autopermalink" data-description="Definition 5.4.2"><a href="#def-degrees-of-freedom-1" title="Copy heading and permalink for Definition 5.4.2" aria-label="Copy heading and permalink for Definition 5.4.2">🔗</a></div></article><div class="para" id="sec-Chi-Squared-7">Suppose our data comes from polling <span class="process-math">\(100\)</span> respondents and arranging their responses into <span class="process-math">\(n\)</span> categories. Then, if we know how many people fall into categories <span class="process-math">\(1, 2, \dotsc, n-1\text{,}\)</span> we will automatically know how many people fall into the final category, simply because the total number of respondents is already known.<div class="autopermalink" data-description="Paragraph"><a href="#sec-Chi-Squared-7" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<div class="para" id="sec-Chi-Squared-8">For each different number of degrees of freedom, there will be a different critical value of the <span class="process-math">\(\chi^2\)</span> statistic, above which well say that the data differs sufficiently from expectation for us to reject the distribution being tested. A table of critical <span class="process-math">\(\chi^2\)</span> values is provided in <a href="app-Chi-squared-table.html" class="internal" title="Section B.1: \chi^2 Critical Values">Section B.1</a>.<div class="autopermalink" data-description="Paragraph"><a href="#sec-Chi-Squared-8" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<article class="example example-like" id="sec-Chi-Squared-9"><h3 class="heading">
<span class="type">Example</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber">5.4.3</span><span class="period heading-divison-mark heading-divison-mark__period">.</span>
</h3>
<div class="para" id="sec-Chi-Squared-9-1-1">Suppose <span class="process-math">\(100\)</span> people are surveyed about their favorite color among four choices. The results are below. Is this data consistent with the hypothesis that each of the four colors is equally likely to be a favorite?<div class="autopermalink" data-description="Paragraph"><a href="#sec-Chi-Squared-9-1-1" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div> <div class="tabular-box natural-width"><table class="tabular">
<tr class="header-horizontal">
<th scope="col" class="c m b1 r0 l0 t0 lines">Color</th>
<th scope="col" class="c m b1 r0 l0 t0 lines">Chosen as Favorite</th>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines">Blue</td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(37\)</span></td>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines">Green</td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(26\)</span></td>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines">Purple</td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(15\)</span></td>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines">Red</td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(22\)</span></td>
</tr>
</table></div> <div class="para logical" id="sec-Chi-Squared-9-1-3">
<div class="para">In this case, if each color is equally likely to be a favorite, then we would expect <span class="process-math">\(25\)</span> respondents to choose each color. So the <span class="process-math">\(\chi^2\)</span> statistic is:</div>
<div class="displaymath process-math" data-contains-math-knowls="./knowl/xref/table-Chi-squared.html" id="sec-Chi-Squared-9-1-3-3">
\begin{gather*}
\chi^2 = \frac{(37 - 25)^2}{25} + \frac{(26 - 25)^2}{25} + \frac{(15 - 25)^2}{25} + \frac{(22 - 25)^2}{25} = 10.16.
\end{gather*}
</div>
<div class="para">Since the data fall into four categories, the number of degrees of freedom is <span class="process-math">\(4 - 1 = 3\text{.}\)</span> From the table in <a href="app-Chi-squared-table.html#table-Chi-squared" class="xref" data-knowl="./knowl/xref/table-Chi-squared.html" data-reveal-label="Reveal" data-close-label="Close" title="Table B.1.1: \chi^2 Critical Values">Table B.1.1</a>, the critical value is <span class="process-math">\(7.815\text{.}\)</span> Since <span class="process-math">\(10.16 \gt 7.815\text{,}\)</span> our collected data is sufficiently different to reject the hypothesis of equal color preferences.</div>
<div class="autopermalink" data-description="Paragraph"><a href="#sec-Chi-Squared-9-1-3" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<div class="autopermalink" data-description="Example 5.4.3"><a href="#sec-Chi-Squared-9" title="Copy heading and permalink for Example 5.4.3" aria-label="Copy heading and permalink for Example 5.4.3">🔗</a></div></article><div class="para" id="sec-Chi-Squared-10">In the previous example, were testing an <dfn class="terminology">extrinsic hypothesis</dfn>, i.e., a hypothesis made entirely without reference to the data. Knowing that we planned to poll <span class="process-math">\(100\)</span> people, we could determine our 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 <dfn class="terminology">intrinsic</dfn>, and we adjust our calculation of degrees of freedom.<div class="autopermalink" data-description="Paragraph"><a href="#sec-Chi-Squared-10" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<article class="definition definition-like" id="def-degrees-of-freedom-2"><h3 class="heading">
<span class="type">Definition</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber">5.4.4</span><span class="period heading-divison-mark heading-divison-mark__period">.</span>
</h3>
<div class="para" id="def-degrees-of-freedom-2-1-1">Suppose it takes <span class="process-math">\(m\)</span> measurements to fully specify the collected data, and suppose there are <span class="process-math">\(k\)</span> parameters that are estimated using the data. Then the number of <dfn class="terminology">degrees of freedom</dfn> is <span class="process-math">\(m - k\)</span><div class="autopermalink" data-description="Paragraph"><a href="#def-degrees-of-freedom-2-1-1" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<div class="autopermalink" data-description="Definition 5.4.4"><a href="#def-degrees-of-freedom-2" title="Copy heading and permalink for Definition 5.4.4" aria-label="Copy heading and permalink for Definition 5.4.4">🔗</a></div></article><article class="example example-like" id="sec-Chi-Squared-12"><h3 class="heading">
<span class="type">Example</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber">5.4.5</span><span class="period heading-divison-mark heading-divison-mark__period">.</span>
</h3>
<div class="para" id="sec-Chi-Squared-12-1-1">Is the data below consistent with a geometric distribution?<div class="autopermalink" data-description="Paragraph"><a href="#sec-Chi-Squared-12-1-1" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div> <div class="tabular-box natural-width"><table class="tabular">
<tr class="header-horizontal">
<th scope="col" class="c m b1 r0 l0 t0 lines">Number</th>
<th scope="col" class="c m b1 r0 l0 t0 lines">Observation</th>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(1\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(59\)</span></td>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(2\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(21\)</span></td>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(3\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(11\)</span></td>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(4\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(8\)</span></td>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(5\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(1\)</span></td>
</tr>
</table></div> <div class="para logical" id="sec-Chi-Squared-12-1-3">
<div class="para">In order to compare this data to a geometric distribution, we would need to know the value of the parameter <span class="process-math">\(\theta\)</span> for the distribution. Based on the collected data, we could provide a maximum likelihood estimate:</div>
<div class="displaymath process-math" data-contains-math-knowls="./knowl/xref/fact-geometric-probability-formula.html" id="sec-Chi-Squared-12-1-3-2">
\begin{align*}
\widehat{\theta} \amp = \frac{59 + 21 + 11 + 8 + 1}{1 \cdot 59 + 2\cdot 21 + 3\cdot 11 + 4\cdot 8 + 5\cdot 1} \\
\amp = \frac{100}{171} \\
\amp \approx 0.58.
\end{align*}
</div>
<div class="para">We can use <a href="sec-Discrete-RVs.html#fact-geometric-probability-formula" class="xref" data-knowl="./knowl/xref/fact-geometric-probability-formula.html" data-reveal-label="Reveal" data-close-label="Close" title="Fact 2.1.14: Geometric Probability Formula">Fact 2.1.14</a> with the parameter value <span class="process-math">\(0.58\)</span> to generate expected values for our data. For example:</div>
<div class="displaymath process-math" data-contains-math-knowls="./knowl/xref/fact-geometric-probability-formula.html" id="sec-Chi-Squared-12-1-3-5">
\begin{align*}
g(2; 0.58) \amp = (1 - 0.58)^{1}(0.58) = 0.2436,
\end{align*}
</div>
<div class="para">so we would expect <span class="process-math">\(0.2436 \times 100 = 24.36\)</span> observations for the number <span class="process-math">\(2\text{.}\)</span> The rest of the expected values are calculated similarly:</div>
<div class="autopermalink" data-description="Paragraph"><a href="#sec-Chi-Squared-12-1-3" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div> <div class="tabular-box natural-width"><table class="tabular">
<tr class="header-horizontal">
<th scope="col" class="c m b1 r0 l0 t0 lines">Number</th>
<th scope="col" class="c m b1 r0 l0 t0 lines">Observation</th>
<th scope="col" class="c m b1 r0 l0 t0 lines">Expected</th>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(1\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(59\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(58\)</span></td>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(2\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(21\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(24.36\)</span></td>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(3\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(11\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(10.23\)</span></td>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(4\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(8\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(4.30\)</span></td>
</tr>
<tr>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(5\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(1\)</span></td>
<td class="c m b0 r0 l0 t0 lines"><span class="process-math">\(1.80\)</span></td>
</tr>
</table></div> <div class="para logical" id="sec-Chi-Squared-12-1-5">
<div class="para">Now we can calculate the <span class="process-math">\(\chi^2\)</span> statistic:</div>
<div class="displaymath process-math" id="sec-Chi-Squared-12-1-5-2">
\begin{align*}
\chi^2 \amp = \frac{(59 - 58)^2}{58} + \dotsb + \frac{(1 - 1.8)^2}{1.8} \approx 4.08.
\end{align*}
</div>
<div class="para">With <span class="process-math">\(5\)</span> categories, it takes <span class="process-math">\(4\)</span> measurements to fully specify the data. Then, we used the data itself to estimate the value of one parameter, <span class="process-math">\(\widehat{\theta}\text{.}\)</span> So the number of degrees of freedom is <span class="process-math">\(4 - 1 = 3\text{,}\)</span> with critical <span class="process-math">\(\chi^2\)</span> value <span class="process-math">\(7.815\text{.}\)</span> Since <span class="process-math">\(4.08 \lt 7.815\text{,}\)</span> our data is not sufficiently different from expected to reject the hypothesis of a geometric distribution.</div>
<div class="autopermalink" data-description="Paragraph"><a href="#sec-Chi-Squared-12-1-5" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<div class="autopermalink" data-description="Example 5.4.5"><a href="#sec-Chi-Squared-12" title="Copy heading and permalink for Example 5.4.5" aria-label="Copy heading and permalink for Example 5.4.5">🔗</a></div></article><section class="exercises" id="exercises-Chi-Squared"><h3 class="heading hide-type">
<span class="type">Exercises</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber"></span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="title">Exercises</span>
</h3>
<article class="exercise exercise-like" id="exercises-Chi-Squared-1"><h4 class="heading"><span class="codenumber">1<span class="period heading-divison-mark heading-divison-mark__period">.</span></span></h4>
<div class="para" id="exercises-Chi-Squared-1-1-1">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?<div class="autopermalink" data-description="Paragraph"><a href="#exercises-Chi-Squared-1-1-1" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div> <figure class="table table-like" id="exercises-Chi-Squared-1-1-2"><figcaption><span class="type">Table</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber">5.4.1<span class="period heading-divison-mark heading-divison-mark__period">.</span></span><span class="space heading-divison-mark heading-divison-mark__space"> </span><div class="autopermalink" data-description="Table 5.4.1: "><a href="#exercises-Chi-Squared-1-1-2" title="Copy heading and permalink for Table 5.4.1: " aria-label="Copy heading and permalink for Table 5.4.1: ">🔗</a></div></figcaption><div class="tabular-box natural-width"><table class="tabular">
</div> <figure class="table table-like" id="exercises-Chi-Squared-1-1-2"><figcaption><span class="type">Table</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber">5.4.6<span class="period heading-divison-mark heading-divison-mark__period">.</span></span><span class="space heading-divison-mark heading-divison-mark__space"> </span><div class="autopermalink" data-description="Table 5.4.6: "><a href="#exercises-Chi-Squared-1-1-2" title="Copy heading and permalink for Table 5.4.6: " aria-label="Copy heading and permalink for Table 5.4.6: ">🔗</a></div></figcaption><div class="tabular-box natural-width"><table class="tabular">
<tr class="header-horizontal">
<th scope="col" class="c m b1 r0 l0 t0 lines">drink type</th>
<th scope="col" class="c m b1 r0 l0 t0 lines">water</th>
@@ -337,7 +495,7 @@ eBookConfig.enable_chatcodes = false;
<div class="introduction" id="exercises-Chi-Squared-2-1">
<div class="para" id="exercises-Chi-Squared-2-1-1">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.<div class="autopermalink" data-description="Paragraph"><a href="#exercises-Chi-Squared-2-1-1" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<figure class="table table-like" id="exercises-Chi-Squared-2-1-2"><figcaption><span class="type">Table</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber">5.4.2<span class="period heading-divison-mark heading-divison-mark__period">.</span></span><span class="space heading-divison-mark heading-divison-mark__space"> </span><div class="autopermalink" data-description="Table 5.4.2: "><a href="#exercises-Chi-Squared-2-1-2" title="Copy heading and permalink for Table 5.4.2: " aria-label="Copy heading and permalink for Table 5.4.2: ">🔗</a></div></figcaption><div class="tabular-box natural-width"><table class="tabular">
<figure class="table table-like" id="exercises-Chi-Squared-2-1-2"><figcaption><span class="type">Table</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber">5.4.7<span class="period heading-divison-mark heading-divison-mark__period">.</span></span><span class="space heading-divison-mark heading-divison-mark__space"> </span><div class="autopermalink" data-description="Table 5.4.7: "><a href="#exercises-Chi-Squared-2-1-2" title="Copy heading and permalink for Table 5.4.7: " aria-label="Copy heading and permalink for Table 5.4.7: ">🔗</a></div></figcaption><div class="tabular-box natural-width"><table class="tabular">
<tr class="header-horizontal">
<th scope="col" class="c m b1 r0 l0 t0 lines"># who respond to drug</th>
<th scope="col" class="c m b1 r0 l0 t0 lines">0</th>