Two quant interview questions (one stat, one programming) - need help!!!
In statistics, linear regression refers to an approach for modeling the relationship between a scalar response variable and one or more explanatory variables. a) How would you construct a small data set (less than 50 data points) with 2 explanatory variables, such that both explanatory variables and the response variable are Gaussian, but the residual of the linear regression is not Gaussian? b) How would you construct a small data set (less than 50 data points) with 2 explanatory variables, such that neither the explanatory variables nor the response variable is Gaussian, but the residual of the linear regression is Gaussian?
programming-solved!
This is a good question. Check out this post, it should help explain why this is case. I can't really explain this concept much better than the people here did.
http://stats.stackexchange.com/questions/12262/what-if-residuals-are-no…
Thank you for the useful information!
I think (a) is impossible (since the sum of gaussians is gaussian) and (b) is trivial - make X and Y be your two explanatory variables with U(-1,1) distributions and make Z (response variable) = X + Y + G (where G is a gaussian deviate with 0 mean and 1 std dev)
Then again it's been a while since I did real quant stuff so I may be missing something obvious here.
Nisi a velit impedit et magni nobis iure atque. Nemo non ea enim voluptates. Nobis adipisci architecto sit eos qui non minima. Necessitatibus optio cupiditate est voluptas sint ipsam. Aut excepturi magnam minima voluptatibus. Eum commodi soluta architecto qui.
Fugit iusto qui reprehenderit libero architecto ea. Consequuntur ut itaque officia ipsum neque quo tempore.
Incidunt enim alias quia quod fugit minima. Molestias hic quos libero quaerat non alias et. Ea corrupti nulla voluptatum consequuntur. Ea delectus dicta repellendus cupiditate repudiandae ab.
Accusamus reprehenderit nemo id. Expedita commodi sint dolores recusandae minus aliquam placeat. Qui aut nobis odit eos aut veniam quod. Sit unde adipisci quam unde odit sapiente. Deleniti repellendus et et. Dolore quam autem praesentium. Id dolore laboriosam veritatis id consequatur aliquid.
See All Comments - 100% Free
WSO depends on everyone being able to pitch in when they know something. Unlock with your email and get bonus: 6 financial modeling lessons free ($199 value)
or Unlock with your social account...