Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Applied Statistics Expert

Assignment

• Write a function to implement regularization based training procedure for 1D regression. The function should have the following form: function a = mytrain (train_x, train_y,n, lamda), where train_x is a column vector containing all the input points in the training, train_y is a column vector containing all the output points in the training, n is the order of the polynomial model, lamda is a non-negative regularization parameter, and a is a column vector containing coefficients of the polynomial model.

• Write a function to implement testing procedure for 1D regression. The function should have the following form: function test_y = mytest (test_x, a), where test_x is a column vector containing all the input points in the test, a is a column vector containing coefficients of the polynomial model, and test_y is a column vector containing all the output points in the test.

• Write a script to do the following experiment

o Create 10 input points for training. They should be evenly distributed between 0 and 1.
o Create 10 corresponding output points for training as follows: cos(2*pi*x)+0.3*randn(10,1)
o Create 100 input points for testing. They should be evenly distributed between 0 and 1.
o Generate models for lamda = 0, and n = 1, 2, 3, 4,5,6,7,8,9, respectively.
o Generate models for n = 3, and lamda = 1e-8, 1e-5, 1e-2, 1, respectively.
o Generate models for n = 9, and lamda = 1e-8, 1e-5, 1e-2, 1, respectively.
o For each model, superimpose the testing results onto cos(2*pi*x)

• Write a report to summarize and discuss your results.

Applied Statistics, Statistics

  • Category:- Applied Statistics
  • Reference No.:- M92404729

Have any Question?


Related Questions in Applied Statistics

As the him member of your research team you are preparing

As the HIM member of your research team, you are preparing for a clinical trial study involving human subjects. The research would track two possible mutually exclusive outcomes, such as survive/did not survive, yes/no, ...

Business analytics and statistics research reportthis

Business Analytics and Statistics Research Report This assignment is based on fictional data. You are creating a business report for the CEO of a retail company called, Athlete Panda. It must be professional in presentat ...

Business statistics assignment -the purpose of this

Business Statistics Assignment - The purpose of this assignment is to improve your understanding in choosing between and using methods to assess the relationship between variables and make comparisons across different se ...

Questions -question 1 - briefly explain what each of the

Questions - Question 1 - Briefly explain what each of the following theories says about corporate cash holdings: The static tradeoff theory: Information asymmetry. The agency costs of debt. Managerial agency theory. The ...

Business statistics project assignment -there will be two

BUSINESS STATISTICS PROJECT ASSIGNMENT - There will be two parts to this assignment: Part A: Group Work (A Business Report) Part B: Individual Reflective Piece (A Ministerial Brief) The response to Part A must be provide ...

Assignment - statistics in educational researchpart a -

Assignment - Statistics in Educational Research Part A - Show all your work Q1) A teacher asked each of her students how many novels they had read in the previous six months. The results are shown below. 0 1 5 4 2 1 3 2 ...

Go to the website of ahrqs website titled advances in

Go to the website of AHRQ's website titled Advances in Patient Safety: From Research to Implementation located in the Webliography and select a specific research article. Bring back to the class, at minimum, the followin ...

Applied statistics homework project -download the data

Applied Statistics Homework Project - Download the data twoGenes.sav from the Week Four content area of brightspace. Each row represents data from a different sample of yeast RNA expression. The data represent the log2 f ...

Linear project instructions -curve-fitting project - linear

Linear Project instructions - Curve-fitting Project - Linear Model For this assignment, collect data exhibiting a relatively linear trend, find the line of best fit plot the data and the line, interpret the slope, and us ...

Business analytics and statistics research report

Business Analytics and Statistics Research Report Assignment - This assignment is based on fictional data - do not contact the company listed below. You are creating a business report for the CEO of a retail company call ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As