Skip to content

Commit 80a772f

Browse files
committed
Add alt text for Chapter 4 and also for all figures that appear in the odd-numbered exercise solutions appendix
1 parent d853f39 commit 80a772f

File tree

9 files changed

+35
-32
lines changed

9 files changed

+35
-32
lines changed

ch_distributions/TeX/binomial_distribution.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
\begin{minipage}[c]{0.25\textwidth}
9797
\ \vspace{2mm}
9898

99-
\includegraphics[width=0.95\textwidth]{ch_distributions/figures/eoce/dreidel/dreidel.jpg}\vspace{2mm}
99+
\Figures[An image of two wooden dreidels.]{0.95}{eoce/dreidel}{dreidel.jpg}\vspace{2mm}
100100
\end{minipage}%
101101
\begin{minipage}[c]{0.28\textwidth}%
102102
{\footnotesize Photo by Staccabees, cropped \\

ch_distributions/TeX/ch_distributions.tex

+18-18
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ \section{Normal distribution}
4545

4646
\begin{figure}[h]
4747
\centering
48-
\Figure{0.5}{simpleNormal}
48+
\Figure[A bell-shaped curve that is symmetric about its center is shown. This is the normal distribution. From the left, the curve starts low, grad lifting off the horizontal axis before more steeply rising, before it starts to rise more slowly and flattens at its peak. From the peak, it starts to decrease slowly and then more steeply, before gradually flattening out as it approaches the horizontal axis. This is the bell-shaped normal distribution, an it is the shape of many distributions we will encounter throughout this book. In general, going forward, this bell-shaped distribution shape should be remembered whenever the normal distribution is discussed.]{0.5}{simpleNormal}
4949
\caption{A normal curve.}
5050
\label{simpleNormal}
5151
\end{figure}
@@ -79,15 +79,15 @@ \subsection{Normal distribution model}
7979

8080
\begin{figure}[h]
8181
\centering
82-
\Figure{0.7}{twoSampleNormals}
82+
\Figure[Two normal distributions are shown. The first has a center of 0 and a standard deviation of 1, where the two tails of the normal distribution curve are essentially indistinguishable from a height of 0 for values less than -3 or larger than positive 3. The second normal distribution is centered at 19 and has a standard deviation of 4, where the height of the distribution is indistinguishable from 0 when it is more than 3 standard deviations from the mean.]{0.7}{twoSampleNormals}
8383
\caption{Both curves represent the normal distribution.
8484
However, they differ in their center and spread.}
8585
\label{twoSampleNormals}
8686
\end{figure}
8787

8888
\begin{figure}[h]
8989
\centering
90-
\Figure{0.6}{twoSampleNormalsStacked}
90+
\Figure[Two normal distributions are shown on the same plot. The first has a mean of 0 and a standard deviation of 1. The second has a mean of 19 and a standard deviation of 4. One important property visible in the plot is, because distributions are required to have an area of 1, the normal distribution with a standard deviation of 1 appears much narrower and but also much taller than the second distribution that has a standard deviation of 4.]{0.6}{twoSampleNormalsStacked}
9191
\caption{The normal distributions shown in
9292
Figure~\ref{twoSampleNormals} but plotted together
9393
and on the same scale.}
@@ -185,7 +185,7 @@ \subsection{Standardizing with Z-scores}
185185

186186
\begin{figure}
187187
\centering
188-
\Figure{0.6}{satActNormals}
188+
\Figure[Ann's and Tom's scores shown against the SAT and ACT distributions, which are each shown as normal distributions. The SAT distribution has a mean of 1100 and a standard deviation of 200, while the ACT distribution has a mean of 21 and standard deviation of 6. Ann's score is 1300 for the SAT, and Tom's score is 24 for the ACT. Based on their positioning in their respective plots, it is evident that Ann has a higher relative value for her SAT distribution than Tom has for his ACT score.]{0.6}{satActNormals}
189189
\caption{Ann's and Tom's scores shown against
190190
the SAT and ACT distributions.}
191191
\label{satActNormals}
@@ -321,7 +321,7 @@ \subsection{Finding tail areas}
321321

322322
\begin{figure}[h]
323323
\centering
324-
\Figure{0.45}{satBelow1300}
324+
\Figure[A normal distribution is shown with a mean of 1100 and a standard deviation of 200. The distribution is shaded to the left of the value 1300, meaning the area bound by the horizontal axis, the bell-shaped curve (up to the horizontal value of 1300) and a vertical line at 1300 is shaded.]{0.45}{satBelow1300}
325325
\caption{The area to the left of $Z$ represents the
326326
fraction of people who scored lower than Ann.}
327327
\label{satBelow1300}
@@ -413,7 +413,7 @@ \subsection{Normal probability examples}
413413
We are interested in the chance she scores above
414414
\shannonsat{}, so we shade this upper tail:
415415
\begin{center}
416-
\Figure{0.4}{satAbove1190}
416+
\Figure[A normal distribution with a mean of 1100 and standard deviation of 200 has the area below the distribution shaded for horizontal values larger than 1300.]{0.4}{satAbove1190}
417417
\end{center}
418418
The picture shows the mean and the values at
419419
2~standard deviations above and below the mean.
@@ -436,7 +436,7 @@ \subsection{Normal probability examples}
436436
To find the area \emph{above} $Z = \shannonsatz{}$,
437437
we compute one minus the area of the lower tail:
438438
\begin{center}
439-
\Figure{0.4}{subtractingArea}
439+
\Figure[A full shaded normal distribution is shown, then a "minus" sign, then a normal distribution with most of its region shaded up to a little above the mean, then an equals sign, and then a normal distribution with an area in the upper tail shaded. Above those images is the text "1.0000 minus 0.6736 equals 0.3264". This visualization is intended to show how we can think of finding an upper tail of the normal distribution as taking the entire area below the distribution (which has a value of 1) and subtracting a portion of the area to the left to get an area to the right.]{0.4}{subtractingArea}
440440
\end{center}
441441
The probability Shannon scores at least 1190 on the SAT
442442
is 0.3264.
@@ -464,7 +464,7 @@ \subsection{Normal probability examples}
464464
\end{exercisewrap}
465465
\footnotetext{We found this probability in
466466
Example~\ref{satAbove1190Exam}: 0.6736. \\
467-
\Figures{0.35}{subtractingArea}{subtracted}}
467+
\Figures[A normal distribution with mean 1100 and standard deviation 200 is shaded from the left up to a vertical line a little above the distribution mean.]{0.35}{subtractingArea}{subtracted}}
468468

469469
\D{\newpage}
470470

@@ -480,7 +480,7 @@ \subsection{Normal probability examples}
480480
who do not get as high as a \edwardsat{}.
481481
These are the scores to the left of \edwardsat{}.
482482
\begin{center}
483-
\Figure{0.3}{satBelow1030}
483+
\Figure[A normal distribution with mean 1100 and standard deviation 200 is shaded from the left up to a vertical line a little below the distribution mean. This area is labeled as "40\% (0.40)".]{0.3}{satBelow1030}
484484
\end{center}
485485
Identifying the mean $\mu=\satmean{}$, the standard
486486
deviation $\sigma=\satsd{}$, and the cutoff for the tail
@@ -550,7 +550,7 @@ \subsection{Normal probability examples}
550550
(a) $Z_{\text{Mike}} = \frac{67 - 70}{3.3} = -0.91\ \to\ 0.1814$.
551551
(b) $Z_{\text{Jose}} = \frac{76 - 70}{3.3} = 1.82\ \to\ 0.9656$.
552552
\\
553-
\Figure{0.45}{mikeAndJosePercentiles}}
553+
\Figure[Two plots are shown. The first plot is labeled "Mike" and shows a normal distribution with a mean of 70 and the left tail below 67 is shaded. The second plot is labeled "Jose" and shows a normal distribution with a mean of 70 and a large portion of the normal distribution up to the value 76 shaded.]{0.45}{mikeAndJosePercentiles}}
554554

555555
\D{\newpage}
556556

@@ -594,7 +594,7 @@ \subsection{Normal probability examples}
594594
$82^{nd}$ percentile?}
595595
Again, we draw the figure first.\vspace{-3mm}
596596
\begin{center}
597-
\Figure{0.28}{height82Perc}\vspace{-1mm}
597+
\Figure[A normal distribution with mean 70 and standard deviation 3.3 is shaded from the left up to a vertical line a bit above the distribution mean. The shaded area to the left of the vertical line is labeled as "82\% (0.82)" and the upper, unshaded tail is labeled "18\% (0.18)".]{0.28}{height82Perc}\vspace{-1mm}
598598
\end{center}
599599
Next, we want to find the Z-score at the $82^{nd}$ percentile,
600600
which will be a positive value and can be found using software
@@ -645,15 +645,15 @@ \subsection{Normal probability examples}
645645
The area of interest is no longer an upper or lower
646646
tail.\vspace{-2mm}
647647
\begin{center}
648-
\Figure{0.35}{between59And62}\vspace{-2mm}
648+
\Figure[A normal distribution is shown with mean 70 and standard deviation 3.3. An area from just below the mean (69) up to a value further into the right tail (74) is shaded.]{0.35}{between59And62}\vspace{-2mm}
649649
\end{center}
650650
The total area under the curve is~1.
651651
If we find the area of the two tails that are not shaded
652652
(from Guided Practice~\ref{more74Less69}, these areas are
653653
$0.3821$ and $0.1131$), then we can find the middle
654654
area:\vspace{-2mm}
655655
\begin{center}
656-
\Figure{0.55}{subtracting2Areas}\vspace{-2mm}
656+
\Figure[A plot is shown where we take the full distribution (1.0000), subtract off a lower tail (0.3821) and a small upper tail (0.1131), leaving a normal distribution with just a segment shaded, from just below the mean to a modest amount above the mean, and this last shaded area is labeled 0.5048.]{0.55}{subtracting2Areas}\vspace{-2mm}
657657
\end{center}
658658
That is, the probability of being between 5'9'' and 6'2''
659659
is 0.5048.
@@ -696,7 +696,7 @@ \subsection{68-95-99.7 rule}
696696

697697
\begin{figure}[hht]
698698
\centering
699-
\includegraphics[height=1.9in]{ch_distributions/figures/6895997/6895997}
699+
\Figure[A normal distribution is shown. The central region, from one standard deviation below the mean to one standard deviation above the mean, is shaded blue and is labeled with a value of 68\%. The region further out to two standard deviations below the mean to two standard deviations above the mean is shaded green (besides the portion shaded blue) and is labeled with a value of 95\%. The region further out to three standard deviations below the mean to three standard deviations above the mean is shaded yellow (besides the portions shaded green or blue) and is labeled with a value of 99.7\%. Those percentages -- 68\%, 95\%, and 99.7\% -- represent the portions of the area below a normal distribution within 1, 2, and 3 standard deviations of the mean.]{0.63}{6895997}
700700
\caption{Probabilities for falling within 1, 2, and 3 standard deviations of the mean in a normal distribution.}
701701
\label{6895997}
702702
\end{figure}
@@ -1133,7 +1133,7 @@ \subsection{Geometric distribution}
11331133

11341134
\begin{figure}[h]
11351135
\centering
1136-
\Figure{0.8}{geometricDist70}
1136+
\Figure[The probability distribution of "Number of Trials Until a Success for p = 0.7" is shown, which appears as a bar plot. The possible values shown are 1, 2, 3, 4, 5, 6, 7, and 8. The probabilities for these are about 0.7, 0.21, 0.07, 0.02, 0.01, and then the values are nearly indistinguishable for the values of 6, 7, and 8.]{0.8}{geometricDist70}
11371137
\caption{The geometric distribution when the probability
11381138
of success is $p = \insureSprob{}$.}
11391139
\label{geometricDist70}
@@ -1778,7 +1778,7 @@ \subsection{Normal approximation to the binomial distribution}
17781778

17791779
\begin{figure}[h]
17801780
\centering
1781-
\Figure{0.92}{fourBinomialModelsShowingApproxToNormal}
1781+
\Figure[Four hollow histograms are shown, each in their own plot, based on a probability of p equals 0.10 and sample sizes of n equals 10, 30, 100, and 300. The first plot for n = 10 shows a distribution centered at 1 and is notably right skewed. The second plot for n = 30 shows a distribution centered at about 3, is just a bit right skewed, and is starting to look a little bit like a bell-shaped distribution. The third plot for n = 100 shows a distribution centered at about 10 and that is almost entirely symmetric with just the slightest indication it is right skewed. This third distribution also looks very bell-shaped. The fourth plot for n = 300 shows a distribution centered at about 30 and that is symmetric. This last plot looks very bell-shaped and resembles a normal distribution.]{0.92}{fourBinomialModelsShowingApproxToNormal}
17821782
\caption{Hollow histograms of samples from the binomial
17831783
model when $p = 0.10$.
17841784
The sample sizes for the four plots are
@@ -1885,7 +1885,7 @@ \subsection{The normal approximation breaks down on small intervals}
18851885

18861886
\begin{figure}[h]
18871887
\centering
1888-
\Figure{1.0}{normApproxToBinomFail}
1888+
\Figure[A normal distribution centered at 60 with a standard deviation of about 7 is shown. (The determination that the standard deviation is about 7 was based on the normal distribution being very close to 0 a distance of about 20 from the mean, and this happens about 3 standard deviations from the mean.) A region of this distribution is shaded from 49 to 51. Additionally, a red outlined area is boxed out between 48.5 and 51.5 that represents the exact binomial distribution.]{1.0}{normApproxToBinomFail}
18891889
\caption{A normal curve with the area between
18901890
\smokeA{} and \smokeC{} shaded.
18911891
The outlined area represents the exact binomial
@@ -2141,7 +2141,7 @@ \section{Poisson distribution}
21412141

21422142
\begin{figure}[h]
21432143
\centering
2144-
\Figure{0.6}{amiIncidencesOver100Days}
2144+
\Figure[A histogram is shown for "AMI Events (by Day)". There are 11 non-zero values shown: a frequency of about 15 at a value of 1, a frequency of 50 at 2, 70 at 3, 85 at 4, 55 at 5, 45 at 6, 25 at 7, 20 at 8, 5 at 9, 5 at 10, and a frequency of about 2 at 11.]{0.6}{amiIncidencesOver100Days}
21452145
\caption{A histogram of the number of occurrences
21462146
of AMI on 365 separate days in NYC.}
21472147
\label{amiIncidencesOver100Days}

ch_probability/TeX/continuous_distributions.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
\end{minipage}
1717
\begin{minipage}[c]{0.48\textwidth}
1818
\begin{center}
19-
\Figure[A histogram of cat body weights in kilograms is shown. The weight range is from 2.0 to 4.0, and each histogram bin has a width of 0.25. The eight bin heights, from left to right, are 29, 32, 21, 25, 12, 15, 5, and 4.]{}{cat_weights}
19+
\Figures[A histogram of cat body weights in kilograms is shown. The weight range is from 2.0 to 4.0, and each histogram bin has a width of 0.25. The eight bin heights, from left to right, are 29, 32, 21, 25, 12, 15, 5, and 4.]{}{eoce/cat_weights}{cat_weights}
2020
\end{center}
2121
\end{minipage}
2222
}{}

ch_probability/figures/eoce/tree_hiv_swaziland/tree_hiv_swaziland.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
library(openintro)
33

44
# tree --------------------------------------------------------------
5-
pdf("tree_hiv_swaziland.pdf", width = 6, height = 2.5)
5+
pdf("tree_hiv_swaziland.pdf", width = 7, height = 2.5)
66
treeDiag(c("HIV?", "Result"),
77
c(0.259, 1-0.259), list(c(0.997, 0.003), c(1-0.926, 0.926)),
88
c("yes","no"), c("positive","negative"),
Binary file not shown.

0 commit comments

Comments
 (0)