testing
play

Testing Specification testing Michel Bierlaire Introduction to - PowerPoint PPT Presentation

Testing Specification testing Michel Bierlaire Introduction to choice models Differences from classical hypothesis testing Classical hypothesis testing: example Null hypothesis ( H 0 ) A simple hypothesis contradicting a theoretical


  1. Testing Specification testing Michel Bierlaire Introduction to choice models

  2. Differences from classical hypothesis testing

  3. Classical hypothesis testing: example Null hypothesis ( H 0 ) A simple hypothesis contradicting a theoretical assumption. Lady testing tea ◮ Theory: a lady is able to tell if the milk has been poured before of after the tea in a cup. ◮ H 0 : the outcome of the taste is purely random.

  4. Specification testing: example Null hypothesis ( H 0 ) A simple hypothesis contradicting a theoretical assumption. Explanatory variable ◮ Theory: a variable explains the choice behavior. ◮ H 0 : the coefficient of the variable is zero.

  5. Errors in hypothesis testing

  6. Errors in hypothesis testing Type I error

  7. Errors in hypothesis testing Type I error Type II error

  8. Errors in hypothesis testing Type I error Type II error ◮ H 0 rejected and H 0 true.

  9. Errors in hypothesis testing Type I error Type II error ◮ H 0 rejected and H 0 true. ◮ H 0 accepted and H 0 false.

  10. Errors in hypothesis testing Type I error Type II error ◮ H 0 rejected and H 0 true. ◮ H 0 accepted and H 0 false. ◮ Include an irrelevant variable.

  11. Errors in hypothesis testing Type I error Type II error ◮ H 0 rejected and H 0 true. ◮ H 0 accepted and H 0 false. ◮ Include an irrelevant variable. ◮ Omit a relevant variable.

  12. Errors in hypothesis testing Type I error Type II error ◮ H 0 rejected and H 0 true. ◮ H 0 accepted and H 0 false. ◮ Include an irrelevant variable. ◮ Omit a relevant variable. ◮ Loss of efficiency.

  13. Errors in hypothesis testing Type I error Type II error ◮ H 0 rejected and H 0 true. ◮ H 0 accepted and H 0 false. ◮ Include an irrelevant variable. ◮ Omit a relevant variable. ◮ Loss of efficiency. ◮ Specification error.

  14. Errors in hypothesis testing Type I error Type II error ◮ H 0 rejected and H 0 true. ◮ H 0 accepted and H 0 false. ◮ Include an irrelevant variable. ◮ Omit a relevant variable. ◮ Loss of efficiency. ◮ Specification error. ◮ Cost: C I .

  15. Errors in hypothesis testing Type I error Type II error ◮ H 0 rejected and H 0 true. ◮ H 0 accepted and H 0 false. ◮ Include an irrelevant variable. ◮ Omit a relevant variable. ◮ Loss of efficiency. ◮ Specification error. ◮ Cost: C I . ◮ Cost: C II >> C I .

  16. Errors in hypothesis testing Type I error Type II error ◮ H 0 rejected and H 0 true. ◮ H 0 accepted and H 0 false. ◮ Include an irrelevant variable. ◮ Omit a relevant variable. ◮ Loss of efficiency. ◮ Specification error. ◮ Cost: C I . ◮ Cost: C II >> C I . Note In classical hypothesis testing, C I ≈ C II

  17. Impact of an error

  18. Impact of an error Probability of an error P(Type I) =

  19. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true)

  20. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true)

  21. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α

  22. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α λ

  23. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α λ P(Type II) =

  24. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α λ P(Type II) = P( H 0 accepted | H 0 false)

  25. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α λ P(Type II) = P( H 0 accepted | H 0 false) P( H 0 false)

  26. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α λ P(Type II) = P( H 0 accepted | H 0 false) P( H 0 false) β

  27. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α λ P(Type II) = P( H 0 accepted | H 0 false) P( H 0 false) β (1 − λ )

  28. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α λ P(Type II) = P( H 0 accepted | H 0 false) P( H 0 false) β (1 − λ ) Expected cost Expected cost =

  29. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α λ P(Type II) = P( H 0 accepted | H 0 false) P( H 0 false) β (1 − λ ) Expected cost Expected cost = P(Type I) + P(Type II) C I C II

  30. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α λ P(Type II) = P( H 0 accepted | H 0 false) P( H 0 false) β (1 − λ ) Expected cost Expected cost = P(Type I) + P(Type II) C I C II = αλ C I + β (1 − λ ) C II

  31. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α λ P(Type II) = P( H 0 accepted | H 0 false) P( H 0 false) β (1 − λ ) Expected cost Expected cost = P(Type I) + P(Type II) C I C II = αλ C I + β (1 − λ ) C II Classical hypothesis testing λ ≈ 1, C I ≈ C II

  32. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α λ P(Type II) = P( H 0 accepted | H 0 false) P( H 0 false) β (1 − λ ) Expected cost Expected cost = P(Type I) + P(Type II) C I C II = αλ C I + β (1 − λ ) C II Classical hypothesis testing λ ≈ 1, C I ≈ C II : prefer small α .

  33. Impact of an error Probability of an error P(Type I) = P( H 0 rejected | H 0 true) P( H 0 true) α λ P(Type II) = P( H 0 accepted | H 0 false) P( H 0 false) β (1 − λ ) Expected cost Expected cost = P(Type I) + P(Type II) C I C II = αλ C I + β (1 − λ ) C II Specification testing λ ≈ 0 . 5, C II >> C I : larger α can be used.

Recommend


More recommend