% Exam Template for UMTYMP and Math Department courses
%
% Using Philip Hirschhorn's exam.cls: http://www-math.mit.edu/~psh/#ExamCls
%
% run pdflatex on a finished exam at least three times to do the grading table on front page.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% These lines can probably stay unchanged, although you can remove the last
% two packages if you're not making pictures with tikz.
\documentclass[11pt]{exam}
\RequirePackage{amssymb, amsfonts, amsmath, latexsym, verbatim, xspace, setspace}
\RequirePackage{tikz, pgflibraryplotmarks}
% By default LaTeX uses large margins. This doesn't work well on exams; problems
% end up in the "middle" of the page, reducing the amount of space for students
% to work on them.
\usepackage[margin=1in]{geometry}
% Here's where you edit the Class, Exam, Date, etc.
\newcommand{\class}{Stat 532}
\newcommand{\examnum}{HW 10}
\newcommand{\examdate}{Due 11/13/16}
% For an exam, single spacing is most appropriate
\singlespacing
% \onehalfspacing
% \doublespacing
% For an exam, we generally want to turn off paragraph indentation
\parindent 0ex
\begin{document}
% These commands set up the running header on the top of the exam pages
\pagestyle{head}
\firstpageheader{}{}{}
\runningheader{\class}{\examnum\ - Page \thepage\ of \numpages}{\examdate}
\runningheadrule
\begin{flushright}
\begin{tabular}{p{3.5in} r l}
\textbf{\class} &\hfill \textbf{Name:} & \makebox[2in]{\hrulefill}\\
%\textbf{\term} &&\\
\textbf{\examnum} &&\\
\textbf{\examdate} &&\\
\end{tabular}\\
\end{flushright}
\rule[1ex]{\textwidth}{.1pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% See http://www-math.mit.edu/~psh/#ExamCls for full documentation, but the questions
% below give an idea of how to write questions [with parts] and have the points
% tracked automatically on the cover page.
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Please prepare your solutions using \LaTeX\ or another word processing software.
\begin{questions}
% Basic question
\addpoints
\question[50] Recall the experiment in class for sampling from the mixture normal distribution. Now use a Metropolis-Hastings sampler with a normally distributed random walk to sample from this distribution. What step size did you choose for this implementation and what was your acceptance rate?
\vfill
\question Recall the housing dataset from the previous homework. Now let's consider a binary outcome of whether or not a house sells for more than \$400,000. To simplify the analysis only consider the zip code, square footage of the house, and the square footage of the lot. A smaller dataset has been provided for this question SeattleBinaryHousing.csv.
\begin{parts}
\part[30] Concisely write/describe your model, this should include priors.
\vfill
\part[20] Summarize the posterior distribution of the parameters in your model. Include trace plots and marginal posterior distributions for the regression coefficients.
\vfill
\end{parts}
\end{questions}
\end{document}