Files
Probability-and-Statistics-…/knowl/xref/example-joint-indicators.html
2026-08-01 15:00:14 +00:00

65 lines
5.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<!--******************************************-->
<!--* Authored with PreTeXt *-->
<!--* pretextbook.org *-->
<!--* Theme: boulder *-->
<!--* Palette: *-->
<!--******************************************-->
<!--********************************************-->
<!--* Generated from PreTeXt source *-->
<!--* *-->
<!--* https://pretextbook.org *-->
<!--* *-->
<!--********************************************-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow">
</head>
<body class="ignore-math">
<article class="example example-like"><h2 class="heading">
<span class="type">Example</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber">2.3.2</span><span class="period heading-divison-mark heading-divison-mark__period">.</span>
</h2>
<div class="para">A poll asks two yes/no questions. Let <span class="process-math">\(X\)</span> indicate a yes on Question 1 and <span class="process-math">\(Y\)</span> indicate a yes on Question 2. When the data is collected, the following joint distribution for <span class="process-math">\(X\)</span> and <span class="process-math">\(Y\)</span> is created:<div class="autopermalink" aria-hidden="true" data-description="Paragraph"><a tabindex="-1" href="#example-joint-indicators-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"><figcaption><span class="type">Table</span><span class="space heading-divison-mark heading-divison-mark__space"> </span><span class="codenumber">2.3.3<span class="period heading-divison-mark heading-divison-mark__period">.</span></span><span class="space heading-divison-mark heading-divison-mark__space"> </span>Joint Distribution for Indicator Random Variables<div class="autopermalink" aria-hidden="true" data-description="Table 2.3.3: Joint Distribution for Indicator Random Variables"><a tabindex="-1" href="#example-joint-indicators-1-2" title="Copy heading and permalink for Table 2.3.3: Joint Distribution for Indicator Random Variables" aria-label="Copy heading and permalink for Table 2.3.3: Joint Distribution for Indicator Random Variables">🔗</a></div></figcaption><div class="tabular-box natural-width"><table class="tabular">
<tr>
<td class="c m b1 r1 l0 t0 lines"></td>
<td class="c m b1 r1 l0 t0 lines"><span class="process-math">\(X = 0\)</span></td>
<td class="c m b1 r0 l0 t0 lines"><span class="process-math">\(X = 1\)</span></td>
</tr>
<tr>
<td class="c m b1 r1 l0 t0 lines"><span class="process-math">\(Y = 0\)</span></td>
<td class="c m b1 r1 l0 t0 lines">0.1</td>
<td class="c m b1 r0 l0 t0 lines">0.2</td>
</tr>
<tr>
<td class="c m b0 r1 l0 t0 lines"><span class="process-math">\(Y = 1\)</span></td>
<td class="c m b0 r1 l0 t0 lines">0.3</td>
<td class="c m b0 r0 l0 t0 lines">0.4</td>
</tr>
</table></div>
</figure>
<div class="para logical">
<div class="para">Note that the sum of all values in the table is 1; this is a probability distribution, and total probability must be 1. This table doesnt show the distributions for <span class="process-math">\(X\)</span> or <span class="process-math">\(Y\)</span> individually. The data for the two distributions is mixed together. We can, if we wish, take this information and determine separate distributions for <span class="process-math">\(X\)</span> and <span class="process-math">\(Y\text{.}\)</span> For the distribution for <span class="process-math">\(X\text{,}\)</span> we need to know <span class="process-math">\(\Pr(X = 0)\)</span> and <span class="process-math">\(\Pr(X = 1)\)</span> (with no reference to <span class="process-math">\(Y\)</span>). We can get these probabilities by summing along the columns of the table:</div>
<div class="displaymath process-math">
\begin{align*}
\Pr(X = 0) \amp = 0.1 + 0.3 = 0.4 \\
\Pr(X = 1) \amp = 0.2 + 0.4 = 0.6
\end{align*}
</div>
<div class="para">To get the distribution for <span class="process-math">\(Y\text{,}\)</span> we should add along the rows:</div>
<div class="displaymath process-math">
\begin{align*}
\Pr(Y = 0) \amp = 0.1 + 0.2 = 0.3 \\
\Pr(Y = 1) \amp = 0.3 + 0.4 = 0.7
\end{align*}
</div>
<div class="autopermalink" aria-hidden="true" data-description="Paragraph"><a tabindex="-1" href="#example-joint-indicators-1-3" title="Copy heading and permalink for Paragraph" aria-label="Copy heading and permalink for Paragraph">🔗</a></div>
</div>
<div class="autopermalink" aria-hidden="true" data-description="Example 2.3.2"><a tabindex="-1" href="#example-joint-indicators" title="Copy heading and permalink for Example 2.3.2" aria-label="Copy heading and permalink for Example 2.3.2">🔗</a></div>
</article><span class="incontext"><a class="internal" href="sec-Joint-Distributions.html#example-joint-indicators">In Context</a></span>
</body>
</html>