\documentclass[12pt]{article} %\usepackage{amsbsy} % for \boldsymbol and \pmb %\usepackage{graphicx} % To include pdf files! \usepackage{amsmath} \usepackage{amsbsy} \usepackage{amsfonts} %\usepackage[colorlinks=true, pdfstartview=FitV, linkcolor=blue, citecolor=blue, urlcolor=blue]{hyperref} % For links \usepackage{fullpage} % Good for US Letter paper \topmargin=-0.75in \leftmargin = -0.5in \textheight=9.5in \usepackage{fancyhdr} \renewcommand{\headrulewidth}{0pt} % Otherwise there's a rule under the header \setlength{\headheight}{15.2pt} \fancyhf{} \pagestyle{fancy} \cfoot{Page \thepage {} of 2} % \pagestyle{empty} % No page numbers \begin{document} \enlargethispage*{1000 pt} \begin{flushright} Name \underline{\hspace{60mm}} \\ $\,$ \\ Student Number \underline{\hspace{60mm}} \end{flushright} \vspace{5mm} \begin{center} {\Large \textbf{STA 441s 2024 Quiz 9}}\\ \vspace{3 mm} \end{center} \begin{enumerate} \item (6 points) In a study of factors related to successful brain surgery in adults, the explanatory variables were age of patient in years ($x_1$), and experience of the surgeon, measured in number of times he or she had carried out the procedure ($x_2$). The response variable was $Y=1$ for a successful surgery, or $Y=0$ for unsuccessful. Denoting the probability of success by $\pi$, the logistic regression model is \begin{displaymath} \ln\left(\frac{\pi}{1-\pi}\right) = \beta_0 + \beta_1 x_1 + \beta_2 x_2 \end{displaymath} \begin{enumerate} \item You want to test whether, controlling for patient's age, the surgeon's experience is related to whether the surgery is successful. In symbols, what is the null hypothesis? \vspace{10mm} \item You want to test whether, controlling for surgeon's experience, the patient's age is related to whether the surgery is successful. In symbols, what is the null hypothesis? \vspace{10mm} \item You want to test patient's age and surgeon's experience simultaneously. In symbols, what is the null hypothesis? \vspace{10mm} \item For fixed age of patient, each time the surgeon has carried out the procedure in the past multiplies the odds of success by \ldots what? Answer in terms of symbols from the logistic regression model. \vspace{10mm} \item For any fixed level of surgeon's experience, each each additional year of the patient's age multiplies the odds of success by \ldots what? Answer in terms of symbols from the logistic regression model. \vspace{10mm} \item Would you expect $\beta_1$ to be positive or negative? Why? I am asking for a common sense argument (a \emph{short} one), not mathematical argument. \end{enumerate} \newpage \hrule \vspace{2mm} \begin{center} \begin{tabular}{l} $\ln\left(\frac{\pi}{1-\pi}\right) = \ln\left(\frac{P(Y=1|\mathbf{X=x})}{P(Y=0|\mathbf{X=x})} \right) = \beta_0 + \beta_1 x_1 + \ldots + \beta_{p-1} x_{p-1}$ \\ \\ $P(Y=1|\mathbf{X=x}) = \frac{e^{\beta_0 + \beta_1 x_1 + \ldots + \beta_{p-1} x_{p-1}}} {1+e^{\beta_0 + \beta_1 x_1 + \ldots + \beta_{p-1} x_{p-1}}}$ \end{tabular} \end{center} \vspace{2mm} \hrule \vspace{2mm} \item This question is based on your analysis of the bird-keeping and cancer data. \begin{enumerate} \item (2 points) \label{main} You wish to test whether, controlling for the other variables, being a bird keeper is related to getting cancer. \begin{enumerate} \item Fill in the table below. On your printout, circle the chi-squared statistic and write ``Question~\ref{main}" beside it. Either Wald or likelihood ratio is okay. { \footnotesize \begin{center} \begin{tabular}{|c|c|c|c|} \hline Chi-squared Statistic & ~~~~~$p$-value~~~~~ & Reject Null Hypothesis? & Statistically Significant? \\ (a number) & (a number) & (Yes or No) & (Yes or No) \\ \hline & & & \\ & & & \\ \hline \end{tabular} \end{center} } % End size \vspace{1mm} \item In plain, non-statistical language, what do you conclude? No marks for this without the first part right. Start your answer with ``Allowing for other possible risk factors \ldots " \vspace{45mm} \end{enumerate} \item (1 point) \label{bird} For a non-smoking, bird-keeping woman of average age and low socioeconomic status, what is the estimated probability of lung cancer? Write the answer in the space below. On your printout, circle the number (produced by \texttt{proc iml}) and write ``Question~\ref{bird}" beside it. \vspace{10mm} \item (1 point) \label{nobird} For a non-smoking, \textbf{non}-bird-keeping woman of average age and low socioeconomic status, what is the estimated probability of lung cancer? Write the answer in the space below. On your printout, circle the number (produced by \texttt{proc iml}) and write ``Question~\ref{nobird}" beside it. \vspace{10mm} \end{enumerate} \end{enumerate} % \vspace{80mm} \begin{center} \textbf{Attach your complete log file and your \emph{COMPLETE} results file to the quiz paper. Make sure your name and student number are written clearly on both printouts.} \end{center} \end{document}