Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1 (5 pts each): From package MASS load the 'Boston' dataframe. The data headers are: crim: per capita crime rate by town. zn: proportion

image text in transcribed
image text in transcribed
Problem 1 (5 pts each): From package MASS load the 'Boston' dataframe. The data headers are: crim: per capita crime rate by town. zn: proportion of residential land zoned for lots over 25,000 sqft. indus: proportion of non-retail business acres per town. chas: Charles River dummy variable (= 1 if tract bounds river; 0 otherwise). nox: nitrogen oxides concentration (parts per 10 million). rm: average number of rooms per dwelling. age: proportion of owner-occupied units built prior to 1940. dis: weighted mean of distances to five Boston employment centres. rad: index of accessibility to radial highways. tax: full-value property-tax rate per $10,000. ptratio: pupil-teacher ratio by town. black: (not used) Istat: lower status of the population (percent). medv: median value of owner-occupied homes in $1000s. Set variables: y: median value of homes; x: average number of rooms (a) Use the Im() function to create a simple regression model of y as a linear function of x and print its summary. (b) Write code that produces a scatter-plot of points (x, y) together with the regression line. Use summary from part (a): (c) Write the equation of the regression line: y = * + (d) What is the coefficient of determination r equal to? (e) What is the Sample Slope Variance equal to? (f) What is the Sample Regression Variance equal to

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mathematical Analysis For Quantitative Finance

Authors: Daniele Ritelli, Giulia Spaletta

1st Edition

1351245104, 9781351245104

More Books

Students also viewed these Mathematics questions