Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Homework #5 Constant predictions 6 3. (9 points) One model that is even simpler than the linear model we talked about in lecture is

image text in transcribedimage text in transcribed

Homework #5 Constant predictions 6 3. (9 points) One model that is even simpler than the linear model we talked about in lecture is the constant model = a, i.e. we predict exactly the same y for every observation. We might do this if we had no predictor variables. Or, if our predictor variable were categorical (e.g., gender; or treatment vs. control group), we might make a different prediction for each gender, estimating a constant model within each group. One benefit 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 y.....y, and we choose a to minimize the empirical risk of predicting a for every single y: R(a) == n L(y,a) (a) (2 points) If we use the L2 loss L(y,) = (-), show that the best-fitting estimate is the sample mean; i.e., = . (b) (3 points) If we use the Ll loss L(y,y) = y-y, show that the best-fitting estimate is the sample median. To simplify the problem, you may assume that n is odd, so the median is well-defined. Homework #5 7 (c) (2 points) Another option is to use what we might call the L0 loss L(y, y) = 1{y }. This loss is interesting because it doesn't care the least bit how far y is from , only whether y is perfectly predicted or not. This is a natural loss to use if y is a categorical feature with no ordinal structure. Find what is. You may assume that we have a data set where the loss-minimizing value of a is unique (i.e., assume away the possibility that you would have to break ties to estimate ). (d) (2 points) Finally, consider a weighted version of the L1 loss: |y- L(y, ) = if y> wy if y

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

Step: 3

blur-text-image

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

Effective small business management An Entrepreneurial Approach

Authors: Norman M. Scarborough

10th Edition

132157462, 978-0132157469

More Books

Students also viewed these General Management questions

Question

List several personal qualities that help people to be happy.

Answered: 1 week ago

Question

z-scores and the normal distribution (Chapter 4)

Answered: 1 week ago

Question

probability distributions like the t-distribution (Chapter 5)

Answered: 1 week ago