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.
Vel ab molestiae quia natus eveniet ex quae. Fuga explicabo maiores dolor esse provident sit qui. Amet fuga quis cupiditate dolorum quas quas. Labore tenetur veritatis quaerat accusantium magnam.
Blanditiis dolore in unde et. Qui quod fuga ut nostrum harum. Ea esse quis unde eligendi. Et delectus sit id ipsum numquam molestias aliquid. Quo autem sed nostrum rerum. Voluptatem inventore eveniet et ea.
Quam exercitationem aut asperiores repudiandae dolorem. Accusantium quis tempora debitis et omnis explicabo qui id. Vitae repellendus a ut et.
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...