\documentclass[11pt, oneside]{article}   	% use "amsart" instead of "article" for AMSLaTeX format
\usepackage[top=1in,bottom=0.5in]{geometry}                		% See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper}                   		% ... or a4paper or a5paper or ... 
%\geometry{landscape}                		% Activate for rotated page geometry
%\usepackage[parfill]{parskip}    		% Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}				% Use pdf, png, jpg, or eps§ with pdflatex; use eps in DVI mode
								% TeX will automatically convert eps --> pdf in pdflatex		
\usepackage{amssymb, amsmath}
\usepackage{hyperref}
\usepackage{color}
\usepackage{multirow}
%SetFonts

%SetFonts
%0.77652974 -0.94089785 -0.66666491 -0.04677145

\title{Stat 185 - In class problems \\
\large Wednesday, November 15}
\date{}							% Activate to display a given date or no date
\author{}

\begin{document}
\maketitle
\thispagestyle{empty}
\pagestyle{empty}
\vspace{-0.5in}

\begin{table}[h]
\centering
\label{rock_table}
\begin{tabular}{c c c}
Rock    & Paper & Scissors   \\
\hline
43      & 21    & 35    
\end{tabular}
\caption{Rock - paper - scissors}
\end{table}

\begin{enumerate}		
	\item Suppose you ask two friends to play rock-paper-scissors and count the 
	times each option is played. Table 1 above summarizes the data.
	Use a one-way $\chi^2$-test to evaluate whether these data support the hypothesis that players choose between these three options randomly, 
	or if certain options are favored above others.
	
	\item Data on support for Issue 42 is shown in table 2 below. Suppose I run a \texttt{chisq.test} command on this table and generate the following output:
	\begin{verbatim}
		Pearson's Chi-squared test
		X-squared = 4.3576, df = 4, p-value = 0.3598
	\end{verbatim}
	\begin{enumerate}
		\item Draw a picture illustrating how \texttt{X-squared} and \texttt{p-value} fit together.
		\item What hypothesis statement is associated with this test?
		\item How should you interpret the $p$-value?
	\end{enumerate}
\end{enumerate}

\begin{table}[h]
\begin{tabular}{ll  cc c} 
            &   & \multicolumn{3}{c}{\textit{Party Affiliation}} \\
\cline{3-5}
                                &           & Republican & Democrat & Independent   \\
\cline{2-5}
\multirow{3}{*}{\textit{Answer}}& Support    & 264        & 299      & 351 \\
                                & Don't support & 38         & 55       & 77 \\
                                & Don't know & 16 & 15    & 22 \\
\cline{2-5}
                                & Total      & 318       & 369      & 450
\end{tabular}
\caption{Support by party}
\end{table}


\end{document}  
