FEM21039 - Spline Regression Techniques Linear Cubic Splines Assignment

Download Solution Order New Solution

Assignment Task

Question 1. (12 pts) The file Q1.csv contains observations ( y , x ) , . . . , ( y , x ), where Y is the numerical response variable and X is the explanatory variable. Let f be the conditional expectation function of Y given X .

For parts (1), (2), (4), when you are asked to fit a spline regression model, you need to

give the explicit formula for the conditional expectation;

plot the fitted regression line overlapped with the observed data points and indicate where the knots are (similar to the figures in Lecture 6).

For part (3), you only need to plot the fitted regression lines.

(3 pts) Find the best fitting linear spline model to estimate f .

(3 pts) Find the best fitting cubic spline model to estimate f .

(3 pts) Fit three smoothing splines to estimate f with smoothing parameter λ = 10 − ,

(3 pts) We see that the scatter plot of the data is quite flat when x > Fit a special cubic spline f ˆ (with one knot at x = 5) to estimate f such that

f ˆis linear for x > 5;

f ˆis cubic for x ≤ 5;

f ˆhas continuous second derivative at the knot x =

2 FEM21039 ASSIGNMENT

Question 2. (12 pts) The file Q2.csv contains observations ( y , x , x )’s from the joint distribution of ( Y, X , X ), where X and X are numerical variables, and Y takes value in 0 or 1. We would like to estimate

p ( ) = p ( x , x ) = P ( Y = 1 | X = x , X = x )

through kernel density classification. We estimate the conditional pdf’s

) = f ( | Y = 1) , f ) = f ( | Y = 0) ,

20240531064551AM-777291582-1469802867.PNG

Plot the prediction yˆ ’s for all the data points (x , x )’s in the following fashion.

  • Denote a data point with a circle if y = 1 and a cross if y =
  • Colour the data point with red if yˆ = 1, with blue if yˆ = 0 How many data points have you misclassified?
  • (4 pts) Is this estimator equivalent to a Naive Bayes estimator? Why or why not?

(Optional, for your own amusement: repeat the estimations for pˆ and yˆ with a linear

logistic regression or linear discriminant analysis. Compare the results.)

This Statistics have been solved by our PhD Experts at My Uni Paper. Our Assignment Writing Experts are efficient in providing a fresh solution to this question. We are serving more than 10000+ Students in Australia, the UK, and the US by helping them to score HD in their academics. Our Experts are well-trained to follow all marking rubrics and referencing styles.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.