2. In this problem, we will investigate a simple case of bias due to underfitting. Suppose...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. In this problem, we will investigate a simple case of bias due to underfitting. Suppose that training data {(x, yi)} is modeled using a simple linear model of the form y = f (x; B) = Bo+B12. But suppose that the true relationship between x and y is noiseless and quadratic, i.e., y = f(x), f(x) = Boo + Bo1x + Bo2x, for some true parameters Bo (Boo, B01, B02). = (a) Describe how to compute the least-squares fit of the model parameters 3 = (Bo, 3) from the training data (xi, yi), i = 1,..., n. The procedure will involve multiple steps, and you do not need to simplify the equations. Just clearly state how one would compute Bis from the training data. (b) Using the fact that y = f(xi) for the training data {(xi, yi)}, write an expression for is in terms of the training features {x;} and the true parameter values o. Again, you do not need to simplify the equations. Just clearly state how is relates to 3o and {xi}^\_1. (c) Suppose that the true parameters are 3o = (1, 2, -1) and the model is trained using 10 values that are linearly spaced in the closed interval [0, 1]. Write a short Python pro- gram to compute the least-squares parameters 3. Plot the estimated function f(x; 3ls) and the true function f(x) for x = [0,3]. (d) At which of value x [0,3] does bias(x) = ( y) = ((x; ) (x)) grow largest? 2. In this problem, we will investigate a simple case of bias due to underfitting. Suppose that training data {(x, yi)} is modeled using a simple linear model of the form y = f (x; B) = Bo+B12. But suppose that the true relationship between x and y is noiseless and quadratic, i.e., y = f(x), f(x) = Boo + Bo1x + Bo2x, for some true parameters Bo (Boo, B01, B02). = (a) Describe how to compute the least-squares fit of the model parameters 3 = (Bo, 3) from the training data (xi, yi), i = 1,..., n. The procedure will involve multiple steps, and you do not need to simplify the equations. Just clearly state how one would compute Bis from the training data. (b) Using the fact that y = f(xi) for the training data {(xi, yi)}, write an expression for is in terms of the training features {x;} and the true parameter values o. Again, you do not need to simplify the equations. Just clearly state how is relates to 3o and {xi}^\_1. (c) Suppose that the true parameters are 3o = (1, 2, -1) and the model is trained using 10 values that are linearly spaced in the closed interval [0, 1]. Write a short Python pro- gram to compute the least-squares parameters 3. Plot the estimated function f(x; 3ls) and the true function f(x) for x = [0,3]. (d) At which of value x [0,3] does bias(x) = ( y) = ((x; ) (x)) grow largest?
Expert Answer:
Related Book For
Probability And Statistics
ISBN: 9780321500465
4th Edition
Authors: Morris H. DeGroot, Mark J. Schervish
Posted Date:
Students also viewed these computer network questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
In a Hopfield neural network configured as an associative memory, with all of its weights trained and fixed, what three possible behaviours may occur over time in configuration space as the net...
-
A monatomic ideal gas that is initially at a pressure of 1.50 X 105 Pa and has a volume of 0.0800 m' is compressed adiabatically to a volume of 0.0400 m3. (a) What is the final pressure? (b) How much...
-
Performance Report Thorn dark, Inc., produces sandals. Data for the second quarter are as follows: Master Budget Actual Data Budgeted production: 4,500 Actual production: 4,630 units Materials: 2...
-
A bond trader purchased each of the following bonds at a yield to maturity of 8 percent. Immediately after she purchased the bonds, interest rates fell to 7 percent. What is the percentage change in...
-
Identify the main drawbacks of a corporate firm.
-
Teri Hatcher Inc., in its first year of operations, has the following differences between the book basis and tax basis of its assets and liabilities at the end of 2008. It is estimated that the...
-
a) The trial balance of Nyaguthie enterprises prepared as at 30th April, 2016 failed to balance. The difference was posted to a suspense account. On investigation, the following errors were revealed....
-
Using the method of composite areas, find the centroid of the area. Be sure to indicate each part number in the picture below. www.class4me.com/coursedata/statics/Formulas.pdf R100mm 100m 25mm...
-
create an Entity-Relationship Diagram (ERD). Be careful you clearly demonstrate the following: 1- All entities (objects) required to implement your application 2- A primary key must be used to...
-
Tesco.com has established a position of being the worlds leading online grocer with an estimated sales turnover of 401 million and profits up 37 per cent to 21 million (as at 21 September 2005)....
-
Describe and briefly explain the purpose of the different stages involved in updating an existing document on a commercial website.
-
Describe different options for testing the effectiveness of competing offers online.
-
A service is rented rather than owned. Explain what this statement means, and use examples to support your explanation.
-
From a resource-based view, explain the difference between resources and capabilities.
-
Write a thorough conclusion about this info. You need to write a 500 to 1,000 word conclusive analysis comparing the base company to its competitors. You should compare and contrast the analysis that...
-
Using the information presented in Problem 13.4B, prepare a partial statement of cash flows for the current year, showing the computation of net cash flows from operating activities using the...
-
Suppose that the two return random variables R1 and R2 in Examples 4.2.2 and 4.2.3 are independent. Consider the portfolio at the end of Example 4.2.3 with s1 = 54 shares of the first stock and s2 =...
-
Let X have p.d.f. Prove that the m.g.f. (t) is finite for all t 0 but for no t > 0. if x > 1, x 0 otherwise. f(x) =
-
Find the mean a and variance b of the random variable W in Eq. (9.6.15). Now, let a and b be the mean and variance, respectively, of the gamma distribution with parameters and . Prove that 2 equals...
-
Let us consider a call option with maturity \(T=1\) year and strike price \(\$ 11\). The current price of the stock share is \(\$ 10\), and the riskfree interest rate is \(10 \%\). The two possible...
-
Let us consider the PDE with terminal condition In order to apply the representation theorem, we observe that \(r=0\), \((x t)=\), and , so that the underlying stochastic process boils down to a...
-
Let us consider the same setting as Example 13.4: \(S_{0}=K=50\), \(r=01, \quad=04\), and time-to-maturity is \(T=5/12\) (here we take \(t=0)\). The calculation is as follows: This exact result may...
Study smarter with the SolutionInn App