Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Constant predictions 3. (9 points) One model that is even simpler than the linear model we talked about in lecture is the constant model 3}

image text in transcribed
image text in transcribed
Constant predictions 3. (9 points) One model that is even simpler than the linear model we talked about in lecture is the constant model 3} = a, i.e. we predict exactly the same 3; for every observation. We might do this if we had no predictor variables. Or, if our predictor variable were categorical (eg, gender; or treatment vs. control group), we might make a different prediction for each gender, estimating a constant model within each group. One benet of studying the constant model is that it is a simple context in which we can build our intuition for how different loss functions differ from each other. Assume that we observe yl, . . . ,yn, and we choose a to minimize the empirical risk of predicting a for every single 3;: so) = igloo) (a) (2 points) If we use the L2 loss L(y, 3}) = (gomg, show that the best-tting estimate is the sample mean; i.e., ti = 3]. (b) (3 points) If we use the L1 loss L(y, 3}) = |y jr}|, show that the besttting estimate is the sample median. To simplify the problem, you may assume that n is odd, so the median is well-dened

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Calculus Single And Multivariable

Authors: Deborah Hughes Hallett, Andrew M Gleason, William G McCallum, Daniel E Flath, Patti Frazer Lock, Sheldon P Gordon, David O Lomen, David Lovelock, Brad

6th Edition

1118475712, 9781118475713

More Books

Students also viewed these Mathematics questions

Question

2. I try to be as logical as possible

Answered: 1 week ago