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!

 
Best Response

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.

Career Advancement Opportunities

April 2024 Investment Banking

  • Jefferies & Company 02 99.4%
  • Goldman Sachs 19 98.8%
  • Harris Williams & Co. New 98.3%
  • Lazard Freres 02 97.7%
  • JPMorgan Chase 03 97.1%

Overall Employee Satisfaction

April 2024 Investment Banking

  • Harris Williams & Co. 18 99.4%
  • JPMorgan Chase 10 98.8%
  • Lazard Freres 05 98.3%
  • Morgan Stanley 07 97.7%
  • William Blair 03 97.1%

Professional Growth Opportunities

April 2024 Investment Banking

  • Lazard Freres 01 99.4%
  • Jefferies & Company 02 98.8%
  • Goldman Sachs 17 98.3%
  • Moelis & Company 07 97.7%
  • JPMorgan Chase 05 97.1%

Total Avg Compensation

April 2024 Investment Banking

  • Director/MD (5) $648
  • Vice President (19) $385
  • Associates (86) $261
  • 3rd+ Year Analyst (14) $181
  • Intern/Summer Associate (33) $170
  • 2nd Year Analyst (66) $168
  • 1st Year Analyst (205) $159
  • Intern/Summer Analyst (145) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
Secyh62's picture
Secyh62
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
Betsy Massar's picture
Betsy Massar
99.0
5
dosk17's picture
dosk17
98.9
6
GameTheory's picture
GameTheory
98.9
7
kanon's picture
kanon
98.9
8
CompBanker's picture
CompBanker
98.9
9
Linda Abraham's picture
Linda Abraham
98.8
10
numi's picture
numi
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”