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

44 lines
3.1 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. 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">3.2.6</span><span class="period heading-divison-mark heading-divison-mark__period">.</span>
</h2>
<div class="para logical">
<div class="para">Let <span class="process-math">\(X\)</span> indicate an event <span class="process-math">\(A\)</span> which has probability <span class="process-math">\(p\text{.}\)</span> In <a href="sec-Expected-Value.html#example-indicator-EV" class="xref" data-knowl="./knowl/xref/example-indicator-EV.html" data-reveal-label="Reveal" data-close-label="Close" title="Example 3.1.5">Example 3.1.5</a>, we saw <span class="process-math">\(\E(X) = p\text{.}\)</span> Notice that <span class="process-math">\(X\)</span> takes the values 0 and 1 (with probabilities <span class="process-math">\(1 - p\)</span> and <span class="process-math">\(p\text{,}\)</span> respectively). But <span class="process-math">\(0^2 = 0\text{,}\)</span> and <span class="process-math">\(1^1 = 1\text{,}\)</span> so the expected value calculation for <span class="process-math">\(X^2\)</span> is precisely the same as for <span class="process-math">\(X\text{!}\)</span>
</div>
<div class="displaymath process-math" data-contains-math-knowls="./knowl/xref/example-indicator-EV.html">
\begin{align*}
\E\left(X^2\right) \amp = 0^2 \cdot (1-p) + 1^2 \cdot p = p.
\end{align*}
</div>
<div class="para">So:</div>
<div class="displaymath process-math" data-contains-math-knowls="./knowl/xref/example-indicator-EV.html">
\begin{align*}
\Var(X) \amp \E\left(X^2\right) - \left(\E(X)\right)^2 = p - p^2 = p(1 - p).
\end{align*}
</div>
<div class="autopermalink" aria-hidden="true" data-description="Paragraph"><a tabindex="-1" href="#example-indicator-variance-1-1" 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 3.2.6"><a tabindex="-1" href="#example-indicator-variance" title="Copy heading and permalink for Example 3.2.6" aria-label="Copy heading and permalink for Example 3.2.6">🔗</a></div>
</article><span class="incontext"><a class="internal" href="sec-Variance.html#example-indicator-variance">In Context</a></span>
</body>
</html>