For (archmage) only

profilehooahp
w12.docx

1.  So let's try a real correlation /  linear regression model that comes up quite often.

Try to solve this problem in R. We have a hypothesis that patient wait time is linearly related to number of providers in a clinic. We take a sample, and derive the following.

wait=c(5,10,20,15,30,25,40,25,50)

num=c(10,8,5,6,3,5,4,3,4)

Provide relevant descriptive statistics including graphs. Run correlation analysis. Provide a scatterplot. Run regression. Interpret the findings. What did you learn during this process?