Lecture 30: Bayes Rules, Expected Value and Variance, and Binormal Distribution
- Dr. Chengjiang Long
Computer Vision Researcher at Kitware Inc. Adjunct Professor at SUNY at Albany. Email: clong2@albany.edu
Lecture 30: Bayes Rules, Expected Value and Variance, and Binormal - - PowerPoint PPT Presentation
Lecture 30: Bayes Rules, Expected Value and Variance, and Binormal Distribution Dr. Chengjiang Long Computer Vision Researcher at Kitware Inc. Adjunct Professor at SUNY at Albany. Email: clong2@albany.edu Outline Bayes Rule Expected
Computer Vision Researcher at Kitware Inc. Adjunct Professor at SUNY at Albany. Email: clong2@albany.edu
Lecture 30 November 19, 2018 2 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 3 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 4 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 5 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 6 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 7 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 8 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 9 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 10 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 11 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 12 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 13 ICEN/ICSI210 Discrete Structures
=
5 1
i i
Lecture 30 November 19, 2018 14 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 15 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 16 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 17 ICEN/ICSI210 Discrete Structures
8
6
Lecture 30 November 19, 2018 18 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 19 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 20 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 21 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 22 ICEN/ICSI210 Discrete Structures
2 1 2 1
= =
N i i N i i
Division by n-1 reflects the fact that we have lost a “degree of freedom” (piece of information) because we had to estimate the sample mean before we could estimate the sample variance.
Lecture 30 November 19, 2018 23 ICEN/ICSI210 Discrete Structures
x all 2 2
i i
2 2 2 2 x all 2 2
i i
Lecture 30 November 19, 2018 24 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 25 ICEN/ICSI210 Discrete Structures
2 2 2 2 2 2
Lecture 30 November 19, 2018 26 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 27 ICEN/ICSI210 Discrete Structures
n A fixed number of observations (trials), n
n e.g., 15 tosses of a coin; 20 patients; 1000 people surveyed
n A binary outcome
n e.g., head or tail in each toss of a coin; disease or no disease n Generally called “success” and “failure” n Probability of success is p, probability of failure is 1 – p
n Constant probability for each observation
n e.g., Probability of getting a tail is the same each time we toss
Lecture 30 November 19, 2018 28 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 29 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 30 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 31 ICEN/ICSI210 Discrete Structures
3
Lecture 30 November 19, 2018 32 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 33 ICEN/ICSI210 Discrete Structures
10 10 20 10
Lecture 30 November 19, 2018 34 ICEN/ICSI210 Discrete Structures
4 4 7 20 18 2 20 2 5 7 20 19 1 20 1 7 20 20 20
Lecture 30 November 19, 2018 35 ICEN/ICSI210 Discrete Structures
always lie between 0*N-.25 *N p(1-p) reaches maximum at p=.5 P(1-p)=.25
Lecture 30 November 19, 2018 36 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 37 ICEN/ICSI210 Discrete Structures
01 . ) 95 (. ) 05 (. ... ) 95 (. ) 05 (. ) 95 (. ) 05 (. ) 95 (. ) 05 (.
490 10 500 10 498 2 500 2 499 1 500 1 500 500
< ÷ ø ö ç è æ + + ÷ ø ö ç è æ + ÷ ø ö ç è æ + ÷ ø ö ç è æ
Lecture 30 November 19, 2018 38 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 39 ICEN/ICSI210 Discrete Structures
X P(X) 1(.4)8=.00065 1 8(.6)1 (.4) 7 =.008 2 28(.6)2 (.4) 6 =.04 3 56(.6)3 (.4) 5 =.12 4 70(.6)4 (.4) 4 =.23 5 56(.6)5 (.4) 3 =.28 6 28(.6)6 (.4) 2 =.21 7 8(.6)7 (.4) 1=.090 8 1(.6)8 =.0168
Lecture 30 November 19, 2018 40 ICEN/ICSI210 Discrete Structures
P(<2)=.00065 + .008 = .00865 P(>5)=.21+.09+.0168 = .3168
Lecture 30 November 19, 2018 41 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 42 ICEN/ICSI210 Discrete Structures
2
x x x
p p p
ˆ 2 2 ˆ ˆ
P-hat stands for “sample proportion.” Differs by a factor of n. Differs by a factor
Lecture 30 November 19, 2018 43 ICEN/ICSI210 Discrete Structures
Lecture 30 November 19, 2018 44 ICEN/ICSI210 Discrete Structures