0
   

Two quant interview questions (one stat, one programming) - need help!!!

 
 
hehanz
 
Reply Mon 28 Nov, 2016 07:50 pm
1 You are given a list (n <= 100) of positive integers (value <= 500), your program divides these integers into two groups, such that the difference between the sums of these two groups is minimized. Here are some examples:
Example 1:
Input: 1 1 1 2 2
Output: (1 1 1)(2 2) => 1
(difference between 3 and 4)

2 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?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 184 • Replies: 0
No top replies

 
 

 
  1. Forums
  2. » Two quant interview questions (one stat, one programming) - need help!!!
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.02 seconds on 05/19/2024 at 03:44:52