Write a function to implement regularization based training

Assignment Help Applied Statistics
Reference no: EM131596016

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.

Reference no: EM131596016

Questions Cloud

Explore how a theorist explicates his or her philosophy : Purpose The purpose of this Assignment is to explore how a theorist explicates his or her philosophy and thoughts behind a theoretical field.
Discuss the various types of critical incidents : The chief of police of the City of San Bernardino County Police Department (California) has approached your team to develop an Interagency Mental Health.
Discuss your results from the eq assessment : Discuss your results from the EQ assessment. How do your results provide insight into how you interact with family members, friends, and coworkers?
What is your estimate of the stock current price : A company has just paid a dividend of $ 2 per share, D0=$ 2. What is your estimate of the stock's current price?
Write a function to implement regularization based training : Write a function to implement regularization based training procedure for 1D regression. Write a report to summarize and discuss your results.
White-collar crime and bribery versus extortion : Discuss the key elements of identifying white-collar crimes. Next, determine at least two (2) federal criminal statutes that government agencies commonly use.
What is the present value of your winnings : You have just won the lottery and will receive $550,000 in one year. What is the present value of your winnings?
Prepare income statement and retained earnings statement : Prepare an income statement and retained earnings statement for the month of June and a balance sheet at June 30, 2017
Describing your emotional intelligence findings : Describing your Emotional Intelligence (EQ) findings. Being aware of what emotional responses look like and its importance when interacting in social settings.

Reviews

Write a Review

Applied Statistics Questions & Answers

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd