• No products in the cart.

204.4.9 Model-Bias Variance Tradeoff

Sweet spot for Bias and Variance.
Link to the previous post : https://course.dvanalyticsmds.com/204-4-8-problem-of-under-fitting/

Model Bias and Variance

  • Over fitting
    • Low Bias with High Variance
    • Low training error – ‘Low Bias’
    • High testing error
    • Unstable model – ‘High Variance’
    • The coefficients of the model change with small changes in the data
  • Under fitting
    • High Bias with low Variance
    • High training error – ‘high Bias’
    • testing error almost equal to training error
    • Stable model – ‘Low Variance’
    • The coefficients of the model doesn’t change with small changes in the data

The Bias-Variance Decomposition

Y=f(X)+ϵ Var(ϵ)=σ2 SquaredError=E[(Yf^(x0))2|X=x0]

= σ2+[Ef^(x0)f(x0)]2+E[f^(x0)Ef^(x0)]2

= σ2+(Bias)2(f^(x0))+Var(f^(x0))

Overall Model Squared Error = Irreducible Error + \(Bias^2\) + Variance

Bias-Variance Decomposition

  • Overall error is made by bias and variance together.
  • High bias low variance, Low bias and high variance, both are bad for the overall accuracy of the model.
  • A good model need to have low bias and low variance or at least an optimal where both of them are jointly low.
  • How to choose such optimal model. How to choose that optimal model complexity.

Choosing optimal model-Bias Variance Tradeoff

Bias Variance Tradeoff

Test and Training Error

Choosing Optimal Model

  • Unfortunately,there is no scientific method of choosing optimal model complexity that gives minimum test error.
  • Training error is not a good estimate of the test error.
  • There is always bias-variance tradeoff in choosing the appropriate complexity of the model.
  • We can use cross validation methods, boot strapping and bagging to choose the optimal and consistent model.

The next post is about cross validation.

Link to the next post : https://course.dvanalyticsmds.com/204-4-10-cross-validation/

DV Analytics

DV Data & Analytics is a leading data science,  Cyber Security training and consulting firm, led by industry experts. We are aiming to train and prepare resources to acquire the most in-demand data science job opportunities in India and abroad.

Bangalore Center

DV Data & Analytics Bangalore Private Limited
#52, 2nd Floor:
Malleshpalya Maruthinagar Bengaluru.
Bangalore 560075
India
(+91) 9019 030 033 (+91) 8095 881 188
Email: info@dvanalyticsmds.com

Bhubneshwar Center

DV Data & Analytics Private Limited Bhubaneswar
Plot No A/7 :
Adjacent to Maharaja Cine Complex, Bhoinagar, Acharya Vihar
Bhubaneswar 751022
(+91) 8095 881 188 (+91) 8249 430 414
Email: info@dvanalyticsmds.com

top
© 2020. All Rights Reserved.