22.7: End-of-Appendix Materials
- Page ID
- 57828
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\ket}[1]{\left| #1 \right>}\)
\(\newcommand{\bra}[1]{\left< #1 \right|}\)
\(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
\(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
\(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
\(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
\(\newcommand{\expect}[1]{\langle #1 \rangle}\)
\(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)
R Functions
In this appendix, we were introduced to several R functions that will be useful. These are listed here.
Packages

KnoxStats
This is a "book package" with several supporting functions to make learning statistics a bit easier. See here for how to install it.
Statistics
runs.test(r, order=x)
The runs test tests if the residualsr, as ordered byx, are sufficiently distributed around the zero line to suggest that they are independent. This is the version in theKnoxStatspackage.
Exercises
- Prove the Mean Deviance Lemma.
- Prove Lemma 22.2.5.
- Prove Lemma 22.2.6.
- Prove Lemma 22.2.7.
- Prove Lemma 22.2.8.
- Prove Lemma 22.2.9.
- Prove Lemma 22.2.10.
- Prove Lemma 22.2.11. Note that this proof usually requires the Cauchy-Schwarz Inequality.
- Prove that the Cauchy distribution is equivalent to the Student's \(t\) distribution with 1 degree of freedom.
- Prove that the Normal distribution is equivalent to the Student's \(t\) distribution as \(\nu \to \infty\).
- Prove that the interquartile range of the standard Cauchy is 2.
- Prove \(E[S^2] = \sigma^2\) when \(Y \sim N(\mu, \sigma^2)\).
- Prove that the first central moment is always \(0\), as long as \(E[X]\) exists.
- Prove that the third central moment (skew) for the Normal distribution is zero.
- Use moment generating functions to determine when the Binomial distribution has zero skew.
- Calculate the moment generating function for the Poisson distribution. Check that it generates the first two moments. Use it to determine the variance of a Poisson random variable.
- Prove Theorem: MGF of a Normal.
- Use the moment generating function of the Bernoulli distribution to determine the moment generating function of the degenerate distribution.
- Use moment generating functions to calculate the variance of a degenerate distribution.
Theory Readings
- Carl E. Bonferroni (1936). "Teoria statistica delle classi e calcolo delle probabilità." Pubblicazioni del R Istituto Superiore di Scienze Economiche e Commerciali di Firenze (in Italian). 8: 3–62.
- James V. Bradley (1968). Distribution-Free Statistical Tests, Chapter 12. Prentice-Hall.
- Harald Cramér (1936). "Über eine Eigenschaft der Normalen Verteilungsfunktion." Mathematische Zeitschrift (in German). 41(1): 405–414.
doi:10.1007/BF01180430. - Olive Jean Dunn (1958). "Estimation of the Means for Dependent Variables." Annals of Mathematical Statistics. 29(4): 1095–1111.
doi:10.1214/aoms/1177706374. - Olive Jean Dunn (1961). "Multiple Comparisons Among Means." Journal of the American Statistical Association. 56(293): 52–64.
doi:10.1080/01621459.1961.10482090. - David K. Hildebrand (1986). Statistical Thinking for Behavioral Scientists. Duxbury Press.
- Alexander M. Mood (1940). "The Distribution Theory of Runs." Annals of Mathematical Statistics. 11(4): 367–392.
https://www.jstor.org/stable/pdf/2235718.pdf. - George W. Snedecor. (1934). "Calculation and Interpretation of Analysis of Variance and Covariance." Agronomy Journal 26(3): 255–56.
https://doi.org/10.2134/agronj1934.0...2002600030019x. - Abraham Wald and Jacob Wolfowitz (1940). "On a test whether two samples are from the same population." Annals of Mathematical Statistics. 11(2): 147–162.
doi: 10.1214/aoms/1177731909.


