Skip to content

Commit 7f065d6

Browse files
author
Amogh Singhal
authored
Update interview_prep.md
1 parent 643cce5 commit 7f065d6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

interview_prep.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ Normalization is a scaling technique in which values are shifted and rescaled so
1616
![](https://i.pinimg.com/originals/1c/16/04/1c160466f8bfd26ca66a44f79514fb5d.jpg)
1717

1818
### 3. What is the central limit theorem ? Why is it useful ?
19+
The Central Limit Theorem is about how the sum of many different independent random variables tends towards a normal distribution (bell curve).
20+
21+
For example: suppose you're rolling 2 6-sided dice. The rolls are all independent because one of the rolls doesn't affect any of the other rolls. For a single die, the distribution is the same chance for 1 2 3 4 5 and 6.
22+
23+
But of you add the sum of 2 dice, you will notice that you have a 1/36 chance to get a 2, 2/36 chance to get a 3, 3/36 chance to get a 4, ..., up until 6/36 chance of getting a 7, then the chance decreases again until you're back at 1/36 chance of getting a 12. This is because the values in the middle, like 7, can be reached by getting 1+6, 6+1, 2+5, 5+2, 3+4 and 4+3, whereas the edges like 2 require a single very specific result (1+1) where every single die needs to land on 1.
24+
25+
If you further increase the number of dice you roll, the edge cases become less and less likely, because they keep requiring very specific results, whereas the results in the middle become more likely. The more dice you add, the more it will eventually look like a bell curve.
26+
27+
![](https://prwatech.in/blog/wp-content/uploads/2019/06/CetralLimitThm-1024x512.png)
28+
1929
### 4. What is the inter quartile range ? Why is it useful ?
2030
### 5. What is the difference between t-test and z-test ? Why is it useful ?
2131
### 6. Why do we take n-1 when calculating sample variance? Why is it useful ?

0 commit comments

Comments
 (0)