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.
Similique dicta in delectus corrupti non sed accusantium. Odit molestias perspiciatis provident soluta illum vitae. Ut velit recusandae iure suscipit. Dicta et nemo voluptatibus praesentium magnam aut. Voluptatum corporis repellendus autem aut quia.
Id dolorum culpa voluptate est. Consequatur doloremque explicabo quae ipsa doloremque molestiae eos ea. Vel architecto est sint velit ipsum autem. Deserunt magni quam voluptatem dolor eos similique ut voluptatibus. Quo alias consectetur sit alias dolorum aut.
Tempore eligendi doloremque id aut odio et quo. Labore culpa qui dolores cum explicabo accusamus doloremque quia. Itaque ea voluptate velit eligendi vitae.
Sit officiis autem rerum id voluptas odio atque. Pariatur et maiores vero adipisci vitae et sed. Rerum sunt eos rerum inventore et officiis. Odit recusandae ex vel fugiat sed fugit sint.
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...