--- title: "STAT 516 hw ??" author: "your name" format: pdf # format: html --- # 1 ## a) Here is my answer to question 1, part a, which has some math in it like $\bar X_n = \sum_{i=1}^n X_i$. ## b) ### i. Here is my answer to question 1, part b, subpart i). It displays a big equation $$ \hat \beta_1 = \frac{\sum_{i=1}^n(x_i - \bar x_n)(Y_i - \bar Y_n)}{\sum_{i=1}^n(x_i - \bar x_n)^2}. $$ ### ii. Here is my answer to question 1, part b, subpart ii). # 2 Here is my answer to question 2, which has a chunk of R code: ```{r} x <- rnorm(1) ``` The value of `x` after running the above R code is `r x`. # 3 Here is my answer to question 3, which has a chunk of R code that makes a plot: ```{r} plot(1:20,pch = 1:20) ```