Statistics Assignment Help now at e-Assignmenthelp
-
Upload
angeline-sussane -
Category
Education
-
view
97 -
download
1
description
Transcript of Statistics Assignment Help now at e-Assignmenthelp
![Page 1: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/1.jpg)
Statistics Assignment Help
e-Assignmenthelp
© e-Assignmenthelp, 2014
![Page 2: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/2.jpg)
Topic: Smoothing of data
Problem statement1. Produce a discrete time series by
super positioning 5 cosinusoidal components
for your own choice of the amplitudes and frequencies .
© e-Assignmenthelp, 2014
![Page 3: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/3.jpg)
Topic: Smoothing of data
Problem statement2. Add some Gaussian noise to each
digitised value. Experiment with amplitudes (including that of the noise term), and frequencies, showing results
graphically. Then smooth your noisy time series with at least two different filters, e.g., a simple moving average smoother
and an order two binomial filter.
© e-Assignmenthelp, 2014
![Page 4: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/4.jpg)
Topic: Smoothing of data
Problem statement3. Verify the validity of the
expression below, for your chosen smoother.
© e-Assignmenthelp, 2014
![Page 5: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/5.jpg)
Part 1: Data Initialization
• The set of amplitudes chosen was [0.5, 1.0, 1.5, 2.0, 2.5].
• The set of frequencies chosen was [0.2, 04, 0.6, 0.8, 1.0].
• A floating point array of length 300 was created to represent the ‘time instants’ and the ‘noise’.
• A random number generator would then compound this noise to the original signal after multiplying by a factor of 0.5. Thus, a time-series was created, consisting of discrete amplitudes at different time instants.
© e-Assignmenthelp, 2014
![Page 6: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/6.jpg)
Part 1: Generation of the sinusoidal plot
• A noiseless sinusoidal plot of the time series was generated by using the equation
which superimposed four different amplitudes
and four corresponding frequencies respectively.
• In the program, this was done by using two ‘for’ loops on the equation.
© e-Assignmenthelp, 2014
![Page 7: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/7.jpg)
Part 1: Plots and Results
© e-Assignmenthelp, 2014
Plot of the sinusoidal signal created by superimposition of amplitudes and frequencies.
![Page 8: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/8.jpg)
Part 2: Data Smoothing
© e-Assignmenthelp, 2014
The signal, with noise added with varying parameters,was smoothed using two different filters: 1. 5 point centred moving average filter.2. Binomial filter.
![Page 9: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/9.jpg)
Part 2: 5 point centred moving average filter
The 5 point centred moving average filter was created using the following formula:
The use of this filter was found to remove the noise of the sinusoidal signal significantly by use of a 5-point moving average.
© e-Assignmenthelp, 2014
![Page 10: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/10.jpg)
5 point centred moving average filter: Results
© e-Assignmenthelp, 2014
Plot of the smoothed signal, using a 5 point centred moving average filter
![Page 11: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/11.jpg)
5 point centred moving average filter: Results
© e-Assignmenthelp, 2014
Plot of the smoothed signal vs that of the original noisy signal, using a 5 point centred moving average filter.
![Page 12: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/12.jpg)
Part 2: Binomial Filter
© e-Assignmenthelp, 2014
• The binomial filter was implemented using the following formula.
• In this formula, we differ from the earlier in the aspect that the coefficients of the weighted terms are binomial coefficients of degree 5. The weight, 16, is the sum of all the individual weights.
![Page 13: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/13.jpg)
Binomial Filter: Results
© e-Assignmenthelp, 2014
• Plot of the sinusoidal filter, smoothed using a 5th order binomial filter.
![Page 14: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/14.jpg)
Part 3: Comparison of smoothing methods
© e-Assignmenthelp, 2014
The final part of the experiment was the comparison of smoothing done by each filtering method. For this, the mean and variance of the noisy signal and the smoothed signal, done by both filters, was compared.
Mean Mean difference Variance Variance difference
Original 0.012425 0 11.8078 0
5 point centred moving average filter
0.013343 0.0009183 11.271 0.5368
5th order binomial filter
0.012716 0.0002907 11.3401 0.4677
![Page 15: Statistics Assignment Help now at e-Assignmenthelp](https://reader036.fdocuments.in/reader036/viewer/2022082804/54746ed4b4af9fb90a8b577d/html5/thumbnails/15.jpg)
Results and Conclusions
© e-Assignmenthelp, 2014
1. The use of the 5 point moving average filter was found to remove the noise of the sinusoidal signal significantly by use of a 5-point moving average.
2. On the contrary, the binomial filter gives more weight to the point being replaced, since its coefficient is the highest among the five points being considered.
3. Since the mean and variance of the 5th order binomial filter were closer to the expected values, it is found to be the better of the two for smoothing noisy sinusoidal signals.