Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

2 stats midterm questions regarding Least squares regression lines, scatter plots, and graphs

2 stats midterm questions regarding Least squares regression lines, scatter plots, and graphs

2 stats midterm questions regarding Least squares regression lines, scatter plots, and graphs

Question Description

  1. [10 points] Hospital administrators were interested in determining how hospitalization cost (y = cost) is related to length of stay (x = los) in the hospital. The data set “Hospital.sav” (or “hospital.xlsx”) contains the reimbursed hospital costs and associated lengths of stay (the number of days) for a sample of 33 elderly people.
    1. Obtain the least squares regression line for the hospitalization cost as a function of the length of stay, and graph the line on the scatterplot.
    2. Does a linear regression line appear to fit the data well? Explain.
    3. What is the predicted cost for a 7-day stay?
    4. Create the residual plot. It should have the unstandardized predicted values on the x-axis and the unstandardized residuals on the y-axis. What does this plot tell you about the residuals?
    5. Create the normal plot of the residuals. What does this plot tell you about the residuals?
    6. In your opinion, is the obtained linear regression model a good model? Explain in detail.
  2. [10 points] Not all bivariate relationships are linear. When you plot a scatterplot, sometimes you observe a curved relationship. In those cases, we can apply a transformation to the data that will make the relationship approximately linear. [We generally prefer simpler models. And linear regression models are simpler than curved regression models. Also, transforming data is common in statistical practice.]

    One of the most common transformation methods is the log transformation. In this problem, you apply the log transformation to both variables in the data for the previous problem to experiment the model fitness.

    1. Create another variable ‘lnCost‘ (where ‘l’ is an alphabet el) by taking the natural log (ln) of cost. Do the same for the length of stay (los), and create another variable ‘lnLos‘. Then obtain the least squares regression line for ‘lnCost’ as a function of ‘lnLos’, and graph the line on the scatterplot.
    2. Does a linear regression line seem to fit these transformed variables? Better than the one without transformation? Explain.
    3. Create the residual plot of this plot in the same way as the previous problem. How are the residuals different from the previous problem?
    4. Create the normal plot of the residuals. How is this plot different from the one from the previous problem?
    5. In your opinion, is the linear regression model made from the transformed variables a better model? Explain in detail.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Essay Noon only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Essay Noon are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Essay Noon are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Essay Noon, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20