% ANCOVA for STA305 (Experimental Design) % Notes and comments at the end % \documentclass[serif]{beamer} % Serif for Computer Modern math font. \documentclass[serif, handout]{beamer} % Handout mode to ignore pause statements \hypersetup{colorlinks,linkcolor=,urlcolor=red} % To create handout using article mode: Comment above and uncomment below (2 places) %\documentclass[12pt]{article} %\usepackage{beamerarticle} %\usepackage[colorlinks=true, pdfstartview=FitV, linkcolor=blue, citecolor=blue, urlcolor=red]{hyperref} % For live Web links with href in article mode %\usepackage{fullpage} \usefonttheme{serif} % Looks like Computer Modern for non-math text -- nice! \setbeamertemplate{navigation symbols}{} % Supress navigation symbols \usetheme{Berlin} % Displays sections on top \usepackage[english]{babel} % \definecolor{links}{HTML}{2A1B81} % \definecolor{links}{red} \setbeamertemplate{footline}[frame number] \mode % \mode{\setbeamercolor{background canvas}{bg=black!5}} \title{The mysterious beauty of the analysis of covariance\footnote{See last slide for copyright information.}} \subtitle{STA305 Winter 2014} \date{} % To suppress date \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame} \frametitle{Background Reading} \framesubtitle{Optional} \begin{itemize} \item Chapter 5 in \emph{Data analysis with SAS} presents some important parts of this material as a special case of regression. \end{itemize} \end{frame} \begin{frame} \frametitle{Basic idea} \begin{itemize} \item Lots of things influence the response other than the treatment. \item Because of random assignment, they are independent of the treatment. \item They all go into the error (background noise) term $\epsilon_{ij}$. \item $\sigma^2 = Var(\epsilon_{ij})$ is the loudness of the background noise. \item Reduce loudness of background noise by measuring important influences and including them in the model. \item Make sure that the treatment is not influencing the covariate. \end{itemize} \end{frame} \begin{frame} \frametitle{It's just another regression model} \framesubtitle{The $d_{i,j}$ are dummy variables for the treatments} \begin{eqnarray*} Y_i &=& \beta_0 + \beta_1 d_{i,1} + \cdots + \beta_{p-1} d_{i,p-1} + \epsilon_i \\ &=& \beta_0^\prime + \beta_1 d_{i,1} + \cdots + \beta_{p-1} d_{i,p-1} + (\alpha_1 X_{i1} + \cdots + \alpha_k X_{ik} + e_i )\\ &=& \mathbf{X}^\prime_i\boldsymbol{\alpha} + \mathbf{d}^\prime_i\boldsymbol{\beta} + e_i \end{eqnarray*} \begin{itemize} \item $Var(e_i)