Squarepoint Capital interview question

some programming problems, math and stats problem