Search for question
Question

Exercise 2. (25 points) For this exercise, the only extra packages allowed are ISLR2 and boot.

The dataset Boston will be used throughout the exercise and is accessible through the ISLR2

package. Using medv as output, and everything else as input, we are interested in the standard

error of the coefficient corresponding to the "proportion of residential land zoned for lots over

25,000 sq.ft." variable.

Consider the following figures:

Frequence

draw

SE DE SES OL so

106

0.04

0.012

0.013

wwwwwww

Histogram

taboetathap chRHR

Boxplat

at.au.be

Line plot

100

bootstrapatin

2015

0.016

0.016

M

0017

Figure 1. Three plots representing the bootstrap output.

Write R code that reproduces the figures as closely as possible. In case of discrepancy,

explain why your figures are different.

Fig: 1