For this local polynomial regression, you will use the “oldfaithful” The eruption times (in minutes) and the waiting time to the next eruption (in minutes) of 272 eruptions are provided for the Old Faithful geyser.
Complete the following
• Produce density histograms of eruption times and of waiting times.
• Produce a smoothed density histogram from local polynomial regression.
• Each step of the R code to show eruption times and waiting times.
• The results of the local polynomial regression.
• In your discussion, compare local polynomial regression to regular regression.