Skip to content

Commit 2bec118

Browse files
author
Amogh Singhal
authored
Update interview_prep.md
1 parent 2a2d03a commit 2bec118

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

interview_prep.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,22 @@ Target mean encoding
5858
* R-squared does not measure how one variable explains another.
5959

6060
Ref:- https://data.library.virginia.edu/is-r-squared-useless/#:~:text=Let's%20recap%3A-,R%2Dsquared%20does%20not%20measure%20goodness%20of%20fit.,how%20one%20variable%20explains%20another.
61+
62+
### 24. What is the difference between probability and likelihood ?
63+
### 25. What is the difference between generative and discriminative models ?
64+
### 26. How is a decision tree pruned ?
65+
### 27. What do you understand by the bias variance tradeoff ?
66+
67+
![](https://djsaunde.files.wordpress.com/2017/07/bias-variance-tradeoff.png)
68+
69+
Bias ia how well the model fits the data. Variance tells us the magnitude of change in the model based on the change in data
70+
a. Very simple models have high bias and low variance eg. linear models
71+
b. Very complex models have low bias and high variance eg. tree based models. Hence they are more prone to overfitting.
72+
73+
How to deal with them ?
74+
75+
| High Bias | High Variance | |
76+
|----------------------------------------------|---------------|---|
77+
| Try getting additional features | Try getting more training examples | |
78+
| Try adding polynomial features | Try smaller set of features | |
79+
| Try to decrease the regularization parameter | Try to increase the regularization parameter | |

0 commit comments

Comments
 (0)