Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions chapters/examples/diversity_shapes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>
<p>Define the Sample Space to be the 49 different outcomes of chosing the two shapes with replacement (7 choices for the first shape and 7 choices for the second shape). Notice that in our construction of the sample space we have chosen for the shapes to be treated as all being distinct from one another. An outcome in $S$ ($\in S$) is thus an ordered tuple of distinct shapes. For example one outcome in $S$ is (Shape$_4$, Shape$_2$). $|S| = 7 \times 7 = 49$. Note that all the outcomes in $S$ are equally likely (that was the reason why we treated shapes as distinct).
</p>

<p>Let $E$ be the subset of $S$ where the two shapes match. Let $A$ be the event that you have two squares and let $B$ be the event that you have two trianges. Note that $A$ and $B$ are mutually exclusive. By the step rule of counting $|A| = 6 \cdot 6 = 36$ since there are two steps to creating an outcome in $A$: chose a square then chose another square. Similarly $|B| = 1 \cdot 1 = 1$. </p>
<p>Let $E$ be the subset of $S$ where the two shapes match. Let $A$ be the event that you have two squares and let $B$ be the event that you have two triangles. Note that $A$ and $B$ are mutually exclusive. By the step rule of counting $|A| = 6 \cdot 6 = 36$ since there are two steps to creating an outcome in $A$: chose a square then chose another square. Similarly $|B| = 1 \cdot 1 = 1$. </p>

$$
\begin{align*}
Expand Down Expand Up @@ -66,7 +66,7 @@ <h1>

<p>Let $E$ be the subset of $S$ where the two shapes match.
<br/>Let $A$ be the event that you have two squares.
<br/>Let $B$ be the event that you have two trianges.
<br/>Let $B$ be the event that you have two triangles.
<br/>Let $C$ be the event that you have two stars.
Note that $A$, $B$ and $C$ are mutually exclusive. By the step rule of counting
<br/> $|A| = 4 \cdot 4 = 16$
Expand Down Expand Up @@ -108,7 +108,7 @@ <h3>Gini Imputiy in Decision Trees</h3>
<p>
<div class="bordered">
<p>
First lets generalize our calculation of $G$ for a set of shapes. Let $n$ be the number of shapes in the set. Let $n_i$ be the number of shapes of type $i$ in the set. It is going to be easier to calculate the probability that two share ares are the same than the probability that two shapes are different. If we set up the sample space $S$ to be the set of all ways to pick two shapes (treating each shape as distinct, and treating the selection as ordered). The event space $E$ is then the subset of events where the shapes are the same. Because chosing the same shape of one type is mutually exclusive with chosing the same shape of another type, we can calculate the probability that two shapes are the same by calculating the probability that two shapes are the same for each type of shape and summing them up:
First lets generalize our calculation of $G$ for a set of shapes. Let $n$ be the number of shapes in the set. Let $n_i$ be the number of shapes of type $i$ in the set. It is going to be easier to calculate the probability that two shapes are the same than the probability that two shapes are different. If we set up the sample space $S$ to be the set of all ways to pick two shapes (treating each shape as distinct, and treating the selection as ordered). The event space $E$ is then the subset of events where the shapes are the same. Because chosing the same shape of one type is mutually exclusive with chosing the same shape of another type, we can calculate the probability that two shapes are the same by calculating the probability that two shapes are the same for each type of shape and summing them up:

$$
\begin{align*}
Expand Down
6 changes: 3 additions & 3 deletions en/examples/diversity_shapes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ <h1>
<p>Define the Sample Space to be the 49 different outcomes of chosing the two shapes with replacement (7 choices for the first shape and 7 choices for the second shape). Notice that in our construction of the sample space we have chosen for the shapes to be treated as all being distinct from one another. An outcome in $S$ ($\in S$) is thus an ordered tuple of distinct shapes. For example one outcome in $S$ is (Shape$_4$, Shape$_2$). $|S| = 7 \times 7 = 49$. Note that all the outcomes in $S$ are equally likely (that was the reason why we treated shapes as distinct).
</p>

<p>Let $E$ be the subset of $S$ where the two shapes match. Let $A$ be the event that you have two squares and let $B$ be the event that you have two trianges. Note that $A$ and $B$ are mutually exclusive. By the step rule of counting $|A| = 6 \cdot 6 = 36$ since there are two steps to creating an outcome in $A$: chose a square then chose another square. Similarly $|B| = 1 \cdot 1 = 1$. </p>
<p>Let $E$ be the subset of $S$ where the two shapes match. Let $A$ be the event that you have two squares and let $B$ be the event that you have two triangles. Note that $A$ and $B$ are mutually exclusive. By the step rule of counting $|A| = 6 \cdot 6 = 36$ since there are two steps to creating an outcome in $A$: chose a square then chose another square. Similarly $|B| = 1 \cdot 1 = 1$. </p>

$$
\begin{align*}
Expand Down Expand Up @@ -401,7 +401,7 @@ <h1>

<p>Let $E$ be the subset of $S$ where the two shapes match.
<br/>Let $A$ be the event that you have two squares.
<br/>Let $B$ be the event that you have two trianges.
<br/>Let $B$ be the event that you have two triangles.
<br/>Let $C$ be the event that you have two stars.
Note that $A$, $B$ and $C$ are mutually exclusive. By the step rule of counting
<br/> $|A| = 4 \cdot 4 = 16$
Expand Down Expand Up @@ -443,7 +443,7 @@ <h3>Gini Imputiy in Decision Trees</h3>
<p>
<div class="bordered">
<p>
First lets generalize our calculation of $G$ for a set of shapes. Let $n$ be the number of shapes in the set. Let $n_i$ be the number of shapes of type $i$ in the set. It is going to be easier to calculate the probability that two share ares are the same than the probability that two shapes are different. If we set up the sample space $S$ to be the set of all ways to pick two shapes (treating each shape as distinct, and treating the selection as ordered). The event space $E$ is then the subset of events where the shapes are the same. Because chosing the same shape of one type is mutually exclusive with chosing the same shape of another type, we can calculate the probability that two shapes are the same by calculating the probability that two shapes are the same for each type of shape and summing them up:
First lets generalize our calculation of $G$ for a set of shapes. Let $n$ be the number of shapes in the set. Let $n_i$ be the number of shapes of type $i$ in the set. It is going to be easier to calculate the probability that two shapes are the same than the probability that two shapes are different. If we set up the sample space $S$ to be the set of all ways to pick two shapes (treating each shape as distinct, and treating the selection as ordered). The event space $E$ is then the subset of events where the shapes are the same. Because chosing the same shape of one type is mutually exclusive with chosing the same shape of another type, we can calculate the probability that two shapes are the same by calculating the probability that two shapes are the same for each type of shape and summing them up:

$$
\begin{align*}
Expand Down