Chengwei LEI, Ph.D.    Associate Professor

Department of Computer and Electrical Engineering and Computer Science
California State University, Bakersfield

Probability Basics



Basics

 



 

The box of dice:

  • 99% fair, 1% loaded (50% at six)
  • randomly pick a die and roll
  • If we get 3 six in a row, what’s the chance that the die is loaded?
  • If we get 5 six in a row, what’s the chance that the die is loaded?

Bayes Theorem

 

 

Am I dying ?:

  • There is a rare deadly disease is present in the population at 1 in 100,000
  • A test for this disease will report positive for 99.5% of people with disease, and negative 99.9% of time for those without.
  • One day, I took this test, and got a Postivite result. Am I dying?

Bayes Disease



 

Is there any gender bias?

  Admitted Rejected Total Percentage
Men 209 95 304 68.8%
Women 143 110 253 56.5%

Unfair?

Let's find out which school is more unfair!!!

 

 

Law School
  Admitted Rejected Total Percentage
Men 8 45 53 15.1%
Women 51 101 152 33.6%

 

Business School
  Admitted Rejected Total Percentage
Men 201 50 251 80.1%
Women 92 9 101 91.1%

 

 

Simpson's paradox