Starting from:

$30

ISYE8803-Homework 1 Solved

Problem 1. The behavior of polynomials fit to data tends to be erratic near the boundaries. The polynomials fit beyond the boundary knots behave even more wildly than the corresponding global polynomials in that region. Assuming the function is linear near the boundaries (where we have less information anyway) is often considered reasonable. A natural quadratic spline adds additional constraints, namely that the function is linear beyond the boundary knots. Let

 

𝐾

  𝛽𝑗𝑥𝑗                                     𝑓𝑜𝑟  𝑥

                     𝒚 𝑗                              𝑘𝐾                                                                                                                                     

𝛽𝑗𝑥𝑗           for 𝑥 outside interval (𝜉1,𝜉𝐾)

𝑘

 

Determine a set of bases for 𝒚(𝒙) such that 𝑑𝑥 𝑑2𝑦(𝑥)=0 for 𝑥 outside interval (𝜉1,𝜉𝐾).

Problem 2. Let 𝐵𝑖,𝑗(𝑥) be the 𝑖𝑡ℎ B-spline basis function of a uniform quadratic B-spline with five knots. The B-spline curve is defined as

𝑓 𝑃𝑖

𝑖

   𝑖𝑓  𝜏𝑖  

𝐵𝑖,

             𝑜𝑡 𝑒𝑟𝑤𝑖𝑠𝑒

                                                               𝑥− 𝜏𝑖                                             𝜏                 𝑥

                                         𝐵𝑖,𝑗(𝑥)= 𝐵𝑖,𝑗                                                       

 𝜏𝑖+𝑗 − 𝜏𝑖

Drive an expression for 𝐵0,2(𝑥), 𝐵1,2(𝑥) and 𝐵 . Please note that uniform B-Spline means the knots are equidistant 𝜏𝑖+1 − 𝜏𝑖 =constant , 𝑖. For simplicity, let 𝜏𝑖 =𝑖 (this is allowable given that the scaling or translating the knot vector has no effect on the shapes of the 𝐵𝑖,𝑗). The knot vector thus becomes 𝑋={𝜏0,𝜏1,𝜏2,𝜏3,𝜏4,𝜏5}={0,1,2,3,4,5}.

 

 

 

Problem 3. Data provided in this section shows the electrical energy produced by coal in the United States from 1960 to 2018. 

Use the following models to estimate the data:

(a)   Cubic Splines (vary the number knots say, from 6 to 15)

(b)   B-splines (vary the number knots say, from 6 to 15)

(c)   Smoothing Splines (choose the optimal lambda)

(d)   Kernel regression with Gaussian kernel (choose the optimal lambda)

 

Use the leave-one-out cross-validation scheme to compute the mean squared error (MSE) and select the best model. Plot the data along with the fitted curve.

 

Problem 4. Can a machine detect a cardiac abnormality? In medicine, an electrocardiogram (ECG) is an exam that allows physicians to detect a heart disease. In practice, a doctor performs an ECG, and based on the shape of the signal obtained, he determines if the heart is behaving normally. Due to the high mortality rate of cardiac diseases, it is very important to detect correctly and promptly an abnormal ECG. This is why, in recent years, there has been an increasing interest in using computers to detect cardiac abnormalities. The aim of this problem is to achieve recognition of abnormal ECG results, by treating the ECG signals as functional data, extracting relevant features and then using a classification method to discriminate between normal and abnormal ECGs. We will use a public data set available at the UCR Times Series Classification Archive. The training data set can be found as ’ECG200TRAIN’, and the testing data set as “ECG200TEST”.

Use B-splines and FPCA to classify the ECG as normal or abnormal. You can use the classification method of your preference.

More products