% This is a simple LaTex sample document that gives a submission format
%   for IEEE PAMI-TC conference submissions.  Use at your own risk.

% Make two column format for LaTex 2e.
\documentclass[11pt,twocolumn]{article} %,twocolumn
%\usepackage[dvips]{graphicx,graphics}
%\usepackage{times,amsmath,amsfonts}

% Use following instead for LaTex 2.09 (may need some other mods as well).
% \documentstyle[times,twocolumn]{article}

% Set dimensions of columns, gap between columns, and paragraph indent
\setlength{\textheight}{9.2in} \setlength{\textwidth}{6.875in}
%\setlength{\columnsep}{0.3125in} \setlength{\topmargin}{0in}
\setlength{\headheight}{0in} \setlength{\headsep}{-1in}
\setlength{\parindent}{1pc}
\setlength{\oddsidemargin}{-.1875in}  % Centers text.
\setlength{\evensidemargin}{-.1875in}

% Add the period after section numbers.  Adjust spacing.
\newcommand{\Section}[1]{\vspace{-8pt}\section{\hskip -1em.~~#1}\vspace{-3pt}}
\newcommand{\SubSection}[1]{\vspace{-3pt}\subsection{\hskip -1em.~~#1}
        \vspace{-3pt}}
\newcommand{\bqn}{\begin{eqnarray}}
\newcommand{\eqn}{\end{eqnarray}}
\newcommand {\diff}[1] {\frac{\partial}{\partial #1}}
\newcommand{\jacob}[3]{\frac{\partial^2 #3}{\partial #1 \partial #2}}
\newcommand{\der}[2]{\frac{\partial #2}{\partial #1}}
\begin{document}

% Don't want date printed
%\date{January 23, 2003}

% Make title bold and 14 pt font (Latex default is non-bold, 16pt)
\title{Stat 312: Lecture 9\\
Chi-squared distributions}

% For single author (just remove % characters)
\author{Moo K. Chung\\
mchung@stat.wisc.edu}
% For two authors (default example)
\maketitle
\thispagestyle{empty}
\section*{Concepts}
\begin{enumerate}

\item Let $X_1,\cdots,X_n$ be a random sample from
$N(\mu,\sigma^2)$.
$$ \frac{(n-1)S^2}{\sigma^2} = \frac{1}{\sigma^2}\sum_{j=1}^n(X_j
- \bar X)^2 \sim \chi_{n-1}^2$$
\item Critical values for $\chi_n^2$
$$P(\chi_{1-\alpha/2,n}^2 < \chi_n^2 < \chi_{\alpha/2,n}^2)= 1
-\alpha$$

\item $100(1-\alpha)\%$ CI for $\sigma^2$:
$$\frac{(n-1)}{\chi_{\alpha/2,n-1}}s^2 < \sigma^2 <
\frac{(n-1)}{\chi_{1-\alpha/2,n-1}}s^2$$
\end{enumerate}

\section*{In-class problems}
Continuing Example 7.12. Fat content of 10 randomly selected hot
dogs. Assuming that observations come from normal distribution,
find a 95$\%$ CI for the population variance of fat content.
\begin{verbatim}
> x<-c(25.2,21.3,22.8,17.0,29.8,21.0,
       25.5,16.0,20.9,19.5)
> sd(x)
[1] 4.13414
> mean(x)+qt(0.975,9)*sd(x)/sqrt(10)
[1] 24.85739
> mean(x)-qt(0.975,9)*sd(x)/sqrt(10)
[1] 18.94261
\end{verbatim}

Example 7.15.
%\begin{figure}[t]
%\centering
%\renewcommand{\baselinestretch}{1}
%\includegraphics[scale=0.5]{tdensity.ps}
%\caption{$t_{1000}}
%\end{figure}




\section*{Self-study problems}
Excercise 7.43.

\end{document}
