The assignment is due on April 24, 2020 by 17:00
Submit your assignment via Blackboard in a word document1
a What does this fit mean?
b. And, why do we use a linear fit, not other nonlinear options?
c. What do we mean by the parameters of a regression model, and how do we estimate these parameters? tip: Remember why we discussed the error terms!
In class, I introduced the linear form of a bivariate regression as follow:
\[\begin{equation} y=\beta_0+\beta_1x+\epsilon \end{equation}\]
a. According to the provided information in the plot, explain what are \(y\) and \(x\).
b. Also, use the provided information and give an approximation of \(\beta_0\) and \(\beta_1\). Explain how you reached these numbers.
c. Now, I limit the data to only the countries with a relatively large population (more than 15 million) and repeated the above analysis. The new results are reported in Figure . How do the estimated parameters of \(\beta_0\) and \(\beta_1\) change? According to the fitted models in Figure and , do you think the effect of population on the number of deaths cases is different between small and large countries? Explain your answer.
Below, I use the \({\tt for}\) loop to print all the years of the first two decades of 21st century.
Years=seq(2000, 2020, by=1)
for (i in Years){
print(i)
}
Now, you use a for loop to say hello to 5 of your friends one by one! Feel free to Google how it can be done!
a. Watch this video and create a GitHub account.
b. Watch this video. You do not need to setup a desktop version, so ignore that part of the video. Now, create a new repository and label it “LU_QA_2020”.
c. Download the Corona virus dataset that we analyzed in question 2 from the below dropbox link: here. Create a new folder under “LU_QA_2020” and name it “Datasets”. Upload this corona dataset to your “Datasets” folder.
As the answer to this question, share with me the link to your GitHub profile. For example, mine is: https://github.com/babakrezaee. I expect to see a GitHub page, with a repository named “LU_QA_2020”, and with a folder named “Datasets”, which includes the Corona dataset.
You will submit your following assignment as an \(\mathcal{R}\) markdown file, after we covered it in our next \(\mathcal{R}\) workshop.↩