199
Math Camp Justin Grimmer Associate Professor Department of Political Science Stanford University September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September 11th, 2014 1 / 33

Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Math Camp

Justin Grimmer

Associate ProfessorDepartment of Political Science

Stanford University

September 11th, 2014

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 1 / 33

Page 2: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Math Camp Exam

9/19, (Friday) afternoon.

- Closed book/notes

- Designed to take 1.75 hours, may take longer

- Will cover:

- All of math camp- All content up to 9/18

- Why you should care?:

1) Intrinsic motivation2) Reputation3) Ready for sequence?

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 2 / 33

Page 3: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Math Camp Exam

9/19, (Friday) afternoon.

- Closed book/notes

- Designed to take 1.75 hours, may take longer

- Will cover:

- All of math camp- All content up to 9/18

- Why you should care?:

1) Intrinsic motivation2) Reputation3) Ready for sequence?

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 2 / 33

Page 4: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Math Camp Exam

9/19, (Friday) afternoon.

- Closed book/notes

- Designed to take 1.75 hours, may take longer

- Will cover:

- All of math camp- All content up to 9/18

- Why you should care?:

1) Intrinsic motivation2) Reputation3) Ready for sequence?

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 2 / 33

Page 5: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Math Camp Exam

9/19, (Friday) afternoon.

- Closed book/notes

- Designed to take 1.75 hours, may take longer

- Will cover:

- All of math camp- All content up to 9/18

- Why you should care?:

1) Intrinsic motivation2) Reputation3) Ready for sequence?

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 2 / 33

Page 6: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Math Camp Exam

9/19, (Friday) afternoon.

- Closed book/notes

- Designed to take 1.75 hours, may take longer

- Will cover:

- All of math camp- All content up to 9/18

- Why you should care?:

1) Intrinsic motivation2) Reputation3) Ready for sequence?

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 2 / 33

Page 7: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Math Camp Exam

9/19, (Friday) afternoon.

- Closed book/notes

- Designed to take 1.75 hours, may take longer

- Will cover:

- All of math camp

- All content up to 9/18

- Why you should care?:

1) Intrinsic motivation2) Reputation3) Ready for sequence?

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 2 / 33

Page 8: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Math Camp Exam

9/19, (Friday) afternoon.

- Closed book/notes

- Designed to take 1.75 hours, may take longer

- Will cover:

- All of math camp- All content up to 9/18

- Why you should care?:

1) Intrinsic motivation2) Reputation3) Ready for sequence?

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 2 / 33

Page 9: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Math Camp Exam

9/19, (Friday) afternoon.

- Closed book/notes

- Designed to take 1.75 hours, may take longer

- Will cover:

- All of math camp- All content up to 9/18

- Why you should care?:

1) Intrinsic motivation2) Reputation3) Ready for sequence?

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 2 / 33

Page 10: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Math Camp Exam

9/19, (Friday) afternoon.

- Closed book/notes

- Designed to take 1.75 hours, may take longer

- Will cover:

- All of math camp- All content up to 9/18

- Why you should care?:

1) Intrinsic motivation

2) Reputation3) Ready for sequence?

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 2 / 33

Page 11: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Math Camp Exam

9/19, (Friday) afternoon.

- Closed book/notes

- Designed to take 1.75 hours, may take longer

- Will cover:

- All of math camp- All content up to 9/18

- Why you should care?:

1) Intrinsic motivation2) Reputation

3) Ready for sequence?

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 2 / 33

Page 12: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Math Camp Exam

9/19, (Friday) afternoon.

- Closed book/notes

- Designed to take 1.75 hours, may take longer

- Will cover:

- All of math camp- All content up to 9/18

- Why you should care?:

1) Intrinsic motivation2) Reputation3) Ready for sequence?

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 2 / 33

Page 13: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Where are we going?

Probability Theory:

1) Mathematical model of uncertainty

2) Foundation for statistical inference

3) Continues our development of key skills

- Proofs [precision in thinking, useful for formulating arguments]- Statistical computing [basis for much of what you’ll do in graduate

school]

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 3 / 33

Page 14: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Model of Probability

Three parts to our probability model

1) Sample space: set of all things that could happen

2) Events: subsets of the sample space

3) Probability: chance of an event

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 4 / 33

Page 15: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Model of Probability

Three parts to our probability model

1) Sample space: set of all things that could happen

2) Events: subsets of the sample space

3) Probability: chance of an event

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 4 / 33

Page 16: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Model of Probability

Three parts to our probability model

1) Sample space: set of all things that could happen

2) Events: subsets of the sample space

3) Probability: chance of an event

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 4 / 33

Page 17: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Model of Probability

Three parts to our probability model

1) Sample space: set of all things that could happen

2) Events: subsets of the sample space

3) Probability: chance of an event

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 4 / 33

Page 18: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectlyExamples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}3) Duration of cabinets

- All non-negative real numbers: [0,∞)- S = {x : 0 ≤ x <∞}

Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 19: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectly

Examples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}3) Duration of cabinets

- All non-negative real numbers: [0,∞)- S = {x : 0 ≤ x <∞}

Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 20: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectlyExamples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}3) Duration of cabinets

- All non-negative real numbers: [0,∞)- S = {x : 0 ≤ x <∞}

Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 21: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectlyExamples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}3) Duration of cabinets

- All non-negative real numbers: [0,∞)- S = {x : 0 ≤ x <∞}

Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 22: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectlyExamples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}

- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}3) Duration of cabinets

- All non-negative real numbers: [0,∞)- S = {x : 0 ≤ x <∞}

Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 23: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectlyExamples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}

- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}3) Duration of cabinets

- All non-negative real numbers: [0,∞)- S = {x : 0 ≤ x <∞}

Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 24: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectlyExamples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}3) Duration of cabinets

- All non-negative real numbers: [0,∞)- S = {x : 0 ≤ x <∞}

Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 25: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectlyExamples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}3) Duration of cabinets

- All non-negative real numbers: [0,∞)- S = {x : 0 ≤ x <∞}

Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 26: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectlyExamples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}

3) Duration of cabinets

- All non-negative real numbers: [0,∞)- S = {x : 0 ≤ x <∞}

Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 27: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectlyExamples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}3) Duration of cabinets

- All non-negative real numbers: [0,∞)- S = {x : 0 ≤ x <∞}

Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 28: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectlyExamples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}3) Duration of cabinets

- All non-negative real numbers: [0,∞)

- S = {x : 0 ≤ x <∞}Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 29: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectlyExamples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}3) Duration of cabinets

- All non-negative real numbers: [0,∞)- S = {x : 0 ≤ x <∞}

Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 30: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Sample Spaces: All Things that Can Happen

Definition

The sample space as the set of all things that can occur. We will collectall distinct outcomes into the set S

Known perfectlyExamples:

1) House of Representatives: Elections Every 2 Years

- One incumbent: S = {W ,N}- Two incumbents: S = {(W ,W ), (W ,N), (N,W ), (N,N)}- 435 incumbents: S = 2435 possible outcomes

2) Number of countries signing treaties

- S = {0, 1, 2, . . . , 194}3) Duration of cabinets

- All non-negative real numbers: [0,∞)- S = {x : 0 ≤ x <∞}

Key point: this defines all possible realizations

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 5 / 33

Page 31: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 32: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in set

Congressional Election Example- One incumbent:

- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 33: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 34: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:

- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 35: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W

- F = N- Two Incumbents:

- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 36: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 37: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W- F = N

- Two Incumbents:

- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 38: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}

- F = {(N,N)}- 435 Incumbents:

- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 39: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 40: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:

- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 41: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event

- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 42: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 43: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation:

x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 44: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 45: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

An event, E is a subset of the sample space.E ⊂ S

Plain English: Outcomes from the sample space, collected in setCongressional Election Example

- One incumbent:- E = W- F = N

- Two Incumbents:- E = {(W ,N), (W ,W )}- F = {(N,N)}

- 435 Incumbents:- Outcome of 2010 election: one event- All outcomes where Dems retain control of House: one event

Notation: x is an “element” of a set E :

x ∈ E

{N ,N} ∈ E

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 6 / 33

Page 46: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set

: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 47: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.

Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 48: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:

Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 49: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 50: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}

F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 51: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}

S = {(W ,W ), (W ,N), (N,W ), (N,N)}Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 52: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 53: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 54: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪

- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 55: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set

- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}2) Intersection: ∩

- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 56: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 57: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩

- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 58: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets

- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 59: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}

- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 60: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 61: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

E is a set: collection of distinct objects.Recall three operations on sets (like E ) to create new sets:Consider two example sets (from two incumbent example):

E = {(W ,W ), (W ,N)}F = {(N,N), (W ,N)}S = {(W ,W ), (W ,N), (N,W ), (N,N)}

Operations determine what lies in new set Enew

1) Union: ∪- All objects that appear in either set- E new = E ∪ F = {(W ,W ), (W ,N), (N,N)}

2) Intersection: ∩- All objects that appear in both sets- E new = E ∩ F = {(W ,N)}- Sometimes written as EF

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 7 / 33

Page 62: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

3) Compliment of set E : E c

- All objects in S that aren’t in E- E c = {(N,W ), (N,N)}- F c = {(N,W ), (W ,W )}- S = < and E = [0, 1]. What is E c?- What is Sc

?

Suppose E = W , F = N. Then E ∩ F = ∅ (there is nothing that lies inboth sets)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 8 / 33

Page 63: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

3) Compliment of set E : E c

- All objects in S that aren’t in E

- E c = {(N,W ), (N,N)}- F c = {(N,W ), (W ,W )}- S = < and E = [0, 1]. What is E c?- What is Sc

?

Suppose E = W , F = N. Then E ∩ F = ∅ (there is nothing that lies inboth sets)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 8 / 33

Page 64: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

3) Compliment of set E : E c

- All objects in S that aren’t in E- E c = {(N,W ), (N,N)}

- F c = {(N,W ), (W ,W )}- S = < and E = [0, 1]. What is E c?- What is Sc

?

Suppose E = W , F = N. Then E ∩ F = ∅ (there is nothing that lies inboth sets)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 8 / 33

Page 65: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

3) Compliment of set E : E c

- All objects in S that aren’t in E- E c = {(N,W ), (N,N)}- F c = {(N,W ), (W ,W )}

- S = < and E = [0, 1]. What is E c?- What is Sc

?

Suppose E = W , F = N. Then E ∩ F = ∅ (there is nothing that lies inboth sets)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 8 / 33

Page 66: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

3) Compliment of set E : E c

- All objects in S that aren’t in E- E c = {(N,W ), (N,N)}- F c = {(N,W ), (W ,W )}- S = < and E = [0, 1]. What is E c?

- What is Sc

?

Suppose E = W , F = N. Then E ∩ F = ∅ (there is nothing that lies inboth sets)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 8 / 33

Page 67: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

3) Compliment of set E : E c

- All objects in S that aren’t in E- E c = {(N,W ), (N,N)}- F c = {(N,W ), (W ,W )}- S = < and E = [0, 1]. What is E c?- What is Sc?

Suppose E = W , F = N. Then E ∩ F = ∅ (there is nothing that lies inboth sets)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 8 / 33

Page 68: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

3) Compliment of set E : E c

- All objects in S that aren’t in E- E c = {(N,W ), (N,N)}- F c = {(N,W ), (W ,W )}- S = < and E = [0, 1]. What is E c?- What is Sc? ∅

Suppose E = W , F = N. Then E ∩ F = ∅ (there is nothing that lies inboth sets)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 8 / 33

Page 69: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

3) Compliment of set E : E c

- All objects in S that aren’t in E- E c = {(N,W ), (N,N)}- F c = {(N,W ), (W ,W )}- S = < and E = [0, 1]. What is E c?- What is Sc? ∅

Suppose E = W , F = N. Then E ∩ F = ∅ (there is nothing that lies inboth sets)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 8 / 33

Page 70: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

Suppose E and F are events. If E ∩ F = ∅ then we’ll say E and F aremutually exclusive

- Mutual exclusivity 6= independence

- E and E c are mutually exclusive events

Examples:

- Suppose S = {H,T}. Then E = H and F = T , then E ∩ F = ∅- Suppose S = {(H,H), (H,T ), (T ,H), (T ,T )}. E = {(H,H)},F = {(H,H), (T ,H)}, and G = {(H,T ), (T ,T )}

- E ∩ F = (H,H)- E ∩ G = ∅- F ∩ G = ∅

- Suppose S = <+. E = {x : x > 10} and F = {x : x < 5}. ThenE ∩ F = ∅.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 9 / 33

Page 71: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

Suppose E and F are events. If E ∩ F = ∅ then we’ll say E and F aremutually exclusive

- Mutual exclusivity 6= independence

- E and E c are mutually exclusive events

Examples:

- Suppose S = {H,T}. Then E = H and F = T , then E ∩ F = ∅- Suppose S = {(H,H), (H,T ), (T ,H), (T ,T )}. E = {(H,H)},F = {(H,H), (T ,H)}, and G = {(H,T ), (T ,T )}

- E ∩ F = (H,H)- E ∩ G = ∅- F ∩ G = ∅

- Suppose S = <+. E = {x : x > 10} and F = {x : x < 5}. ThenE ∩ F = ∅.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 9 / 33

Page 72: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

Suppose E and F are events. If E ∩ F = ∅ then we’ll say E and F aremutually exclusive

- Mutual exclusivity 6= independence

- E and E c are mutually exclusive events

Examples:

- Suppose S = {H,T}. Then E = H and F = T , then E ∩ F = ∅- Suppose S = {(H,H), (H,T ), (T ,H), (T ,T )}. E = {(H,H)},F = {(H,H), (T ,H)}, and G = {(H,T ), (T ,T )}

- E ∩ F = (H,H)- E ∩ G = ∅- F ∩ G = ∅

- Suppose S = <+. E = {x : x > 10} and F = {x : x < 5}. ThenE ∩ F = ∅.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 9 / 33

Page 73: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

Suppose E and F are events. If E ∩ F = ∅ then we’ll say E and F aremutually exclusive

- Mutual exclusivity 6= independence

- E and E c are mutually exclusive events

Examples:

- Suppose S = {H,T}. Then E = H and F = T , then E ∩ F = ∅- Suppose S = {(H,H), (H,T ), (T ,H), (T ,T )}. E = {(H,H)},F = {(H,H), (T ,H)}, and G = {(H,T ), (T ,T )}

- E ∩ F = (H,H)- E ∩ G = ∅- F ∩ G = ∅

- Suppose S = <+. E = {x : x > 10} and F = {x : x < 5}. ThenE ∩ F = ∅.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 9 / 33

Page 74: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

Suppose E and F are events. If E ∩ F = ∅ then we’ll say E and F aremutually exclusive

- Mutual exclusivity 6= independence

- E and E c are mutually exclusive events

Examples:

- Suppose S = {H,T}. Then E = H and F = T , then E ∩ F = ∅

- Suppose S = {(H,H), (H,T ), (T ,H), (T ,T )}. E = {(H,H)},F = {(H,H), (T ,H)}, and G = {(H,T ), (T ,T )}

- E ∩ F = (H,H)- E ∩ G = ∅- F ∩ G = ∅

- Suppose S = <+. E = {x : x > 10} and F = {x : x < 5}. ThenE ∩ F = ∅.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 9 / 33

Page 75: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

Suppose E and F are events. If E ∩ F = ∅ then we’ll say E and F aremutually exclusive

- Mutual exclusivity 6= independence

- E and E c are mutually exclusive events

Examples:

- Suppose S = {H,T}. Then E = H and F = T , then E ∩ F = ∅- Suppose S = {(H,H), (H,T ), (T ,H), (T ,T )}. E = {(H,H)},F = {(H,H), (T ,H)}, and G = {(H,T ), (T ,T )}

- E ∩ F = (H,H)- E ∩ G = ∅- F ∩ G = ∅

- Suppose S = <+. E = {x : x > 10} and F = {x : x < 5}. ThenE ∩ F = ∅.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 9 / 33

Page 76: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

Suppose E and F are events. If E ∩ F = ∅ then we’ll say E and F aremutually exclusive

- Mutual exclusivity 6= independence

- E and E c are mutually exclusive events

Examples:

- Suppose S = {H,T}. Then E = H and F = T , then E ∩ F = ∅- Suppose S = {(H,H), (H,T ), (T ,H), (T ,T )}. E = {(H,H)},F = {(H,H), (T ,H)}, and G = {(H,T ), (T ,T )}

- E ∩ F = (H,H)

- E ∩ G = ∅- F ∩ G = ∅

- Suppose S = <+. E = {x : x > 10} and F = {x : x < 5}. ThenE ∩ F = ∅.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 9 / 33

Page 77: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

Suppose E and F are events. If E ∩ F = ∅ then we’ll say E and F aremutually exclusive

- Mutual exclusivity 6= independence

- E and E c are mutually exclusive events

Examples:

- Suppose S = {H,T}. Then E = H and F = T , then E ∩ F = ∅- Suppose S = {(H,H), (H,T ), (T ,H), (T ,T )}. E = {(H,H)},F = {(H,H), (T ,H)}, and G = {(H,T ), (T ,T )}

- E ∩ F = (H,H)- E ∩ G = ∅

- F ∩ G = ∅- Suppose S = <+. E = {x : x > 10} and F = {x : x < 5}. ThenE ∩ F = ∅.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 9 / 33

Page 78: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

Suppose E and F are events. If E ∩ F = ∅ then we’ll say E and F aremutually exclusive

- Mutual exclusivity 6= independence

- E and E c are mutually exclusive events

Examples:

- Suppose S = {H,T}. Then E = H and F = T , then E ∩ F = ∅- Suppose S = {(H,H), (H,T ), (T ,H), (T ,T )}. E = {(H,H)},F = {(H,H), (T ,H)}, and G = {(H,T ), (T ,T )}

- E ∩ F = (H,H)- E ∩ G = ∅- F ∩ G = ∅

- Suppose S = <+. E = {x : x > 10} and F = {x : x < 5}. ThenE ∩ F = ∅.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 9 / 33

Page 79: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of Sample Space

Definition

Suppose E and F are events. If E ∩ F = ∅ then we’ll say E and F aremutually exclusive

- Mutual exclusivity 6= independence

- E and E c are mutually exclusive events

Examples:

- Suppose S = {H,T}. Then E = H and F = T , then E ∩ F = ∅- Suppose S = {(H,H), (H,T ), (T ,H), (T ,T )}. E = {(H,H)},F = {(H,H), (T ,H)}, and G = {(H,T ), (T ,T )}

- E ∩ F = (H,H)- E ∩ G = ∅- F ∩ G = ∅

- Suppose S = <+. E = {x : x > 10} and F = {x : x < 5}. ThenE ∩ F = ∅.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 9 / 33

Page 80: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of the Sample Space

Definition

Suppose we have events E1,E2, . . . ,EN .Define:

∪Ni=1Ei = E1 ∪ E2 ∪ E3 ∪ . . . ∪ EN

∪Ni=1Ei is the set of outcomes that occur at least once in E1, . . . ,EN .

Define:

∩Ni=1Ei = E1 ∩ E2 ∩ . . . ∩ EN

∩Ni=1Ei is the set of outcomes that occur in each Ei

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 10 / 33

Page 81: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Events: Subsets of the Sample Space

Definition

Suppose we have events E1,E2, . . . ,EN .Define:

∪Ni=1Ei = E1 ∪ E2 ∪ E3 ∪ . . . ∪ EN

∪Ni=1Ei is the set of outcomes that occur at least once in E1, . . . ,EN .Define:

∩Ni=1Ei = E1 ∩ E2 ∩ . . . ∩ EN

∩Ni=1Ei is the set of outcomes that occur in each Ei

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 10 / 33

Page 82: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

1) Sample Space: set of all things that could happen

2) Events: subsets of sample space

3) Probability: chance of event

- P is a function- Domain: all events E- Describes relative likelihood of all E (events)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 11 / 33

Page 83: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

1) Sample Space: set of all things that could happen

2) Events: subsets of sample space

3) Probability: chance of event

- P is a function- Domain: all events E- Describes relative likelihood of all E (events)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 11 / 33

Page 84: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

1) Sample Space: set of all things that could happen

2) Events: subsets of sample space

3) Probability: chance of event

- P is a function- Domain: all events E- Describes relative likelihood of all E (events)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 11 / 33

Page 85: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

1) Sample Space: set of all things that could happen

2) Events: subsets of sample space

3) Probability: chance of event

- P is a function- Domain: all events E- Describes relative likelihood of all E (events)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 11 / 33

Page 86: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

1) Sample Space: set of all things that could happen

2) Events: subsets of sample space

3) Probability: chance of event

- P is a function

- Domain: all events E- Describes relative likelihood of all E (events)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 11 / 33

Page 87: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

1) Sample Space: set of all things that could happen

2) Events: subsets of sample space

3) Probability: chance of event

- P is a function- Domain: all events E

- Describes relative likelihood of all E (events)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 11 / 33

Page 88: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

Definition

All probability functions, P, satisfy three axioms:

1) For all events E ,0 ≤ P(E ) ≤ 1

2) P(S) = 1

3) For all sequences of mutually exclusive events E1,E2, . . . ,EN (whereN can go to infinity)P(∪Ni=1Ei

)=∑N

i=1 P(Ei )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 12 / 33

Page 89: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

Definition

All probability functions, P, satisfy three axioms:

1) For all events E ,

0 ≤ P(E ) ≤ 1

2) P(S) = 1

3) For all sequences of mutually exclusive events E1,E2, . . . ,EN (whereN can go to infinity)P(∪Ni=1Ei

)=∑N

i=1 P(Ei )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 12 / 33

Page 90: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

Definition

All probability functions, P, satisfy three axioms:

1) For all events E ,0 ≤ P(E ) ≤ 1

2) P(S) = 1

3) For all sequences of mutually exclusive events E1,E2, . . . ,EN (whereN can go to infinity)P(∪Ni=1Ei

)=∑N

i=1 P(Ei )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 12 / 33

Page 91: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

Definition

All probability functions, P, satisfy three axioms:

1) For all events E ,0 ≤ P(E ) ≤ 1

2) P(S) = 1

3) For all sequences of mutually exclusive events E1,E2, . . . ,EN (whereN can go to infinity)P(∪Ni=1Ei

)=∑N

i=1 P(Ei )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 12 / 33

Page 92: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

Definition

All probability functions, P, satisfy three axioms:

1) For all events E ,0 ≤ P(E ) ≤ 1

2) P(S) = 1

3) For all sequences of mutually exclusive events E1,E2, . . . ,EN (whereN can go to infinity)

P(∪Ni=1Ei

)=∑N

i=1 P(Ei )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 12 / 33

Page 93: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

Definition

All probability functions, P, satisfy three axioms:

1) For all events E ,0 ≤ P(E ) ≤ 1

2) P(S) = 1

3) For all sequences of mutually exclusive events E1,E2, . . . ,EN (whereN can go to infinity)P(∪Ni=1Ei

)=∑N

i=1 P(Ei )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 12 / 33

Page 94: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

- Suppose we are flipping a fair coin. Then P(H) = P(T ) = 1/2

- Suppose we are rolling a six-sided die. Then P(1) = 1/6

- Suppose we are flipping a pair of fair coins. Then P(H,H) = 1/4

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 13 / 33

Page 95: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

- Suppose we are flipping a fair coin. Then P(H) = P(T ) = 1/2

- Suppose we are rolling a six-sided die. Then P(1) = 1/6

- Suppose we are flipping a pair of fair coins. Then P(H,H) = 1/4

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 13 / 33

Page 96: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

- Suppose we are flipping a fair coin. Then P(H) = P(T ) = 1/2

- Suppose we are rolling a six-sided die. Then P(1) = 1/6

- Suppose we are flipping a pair of fair coins. Then P(H,H) = 1/4

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 13 / 33

Page 97: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability

- Suppose we are flipping a fair coin. Then P(H) = P(T ) = 1/2

- Suppose we are rolling a six-sided die. Then P(1) = 1/6

- Suppose we are flipping a pair of fair coins. Then P(H,H) = 1/4

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 13 / 33

Page 98: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Example: Congressional Elections

One candidate example:

- P(W ): probability incumbent wins

- P(N): probability incumbent loses

Two candidate example:

- P({W ,W }): probability both incumbents win

- P({W ,W }, {W ,N}): probability incumbent 1 wins

Full House example:

- P({All Democrats Win}) (Cox, McCubbins (1993, 2005), PartyBrand Argument )

We’ll use data to infer these things

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 14 / 33

Page 99: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Example: Congressional Elections

One candidate example:

- P(W ): probability incumbent wins

- P(N): probability incumbent loses

Two candidate example:

- P({W ,W }): probability both incumbents win

- P({W ,W }, {W ,N}): probability incumbent 1 wins

Full House example:

- P({All Democrats Win}) (Cox, McCubbins (1993, 2005), PartyBrand Argument )

We’ll use data to infer these things

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 14 / 33

Page 100: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Example: Congressional Elections

One candidate example:

- P(W ): probability incumbent wins

- P(N): probability incumbent loses

Two candidate example:

- P({W ,W }): probability both incumbents win

- P({W ,W }, {W ,N}): probability incumbent 1 wins

Full House example:

- P({All Democrats Win}) (Cox, McCubbins (1993, 2005), PartyBrand Argument )

We’ll use data to infer these things

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 14 / 33

Page 101: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Example: Congressional Elections

One candidate example:

- P(W ): probability incumbent wins

- P(N): probability incumbent loses

Two candidate example:

- P({W ,W }): probability both incumbents win

- P({W ,W }, {W ,N}): probability incumbent 1 wins

Full House example:

- P({All Democrats Win}) (Cox, McCubbins (1993, 2005), PartyBrand Argument )

We’ll use data to infer these things

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 14 / 33

Page 102: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Example: Congressional Elections

One candidate example:

- P(W ): probability incumbent wins

- P(N): probability incumbent loses

Two candidate example:

- P({W ,W }): probability both incumbents win

- P({W ,W }, {W ,N}): probability incumbent 1 wins

Full House example:

- P({All Democrats Win}) (Cox, McCubbins (1993, 2005), PartyBrand Argument )

We’ll use data to infer these things

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 14 / 33

Page 103: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Example: Congressional Elections

One candidate example:

- P(W ): probability incumbent wins

- P(N): probability incumbent loses

Two candidate example:

- P({W ,W }): probability both incumbents win

- P({W ,W }, {W ,N}): probability incumbent 1 wins

Full House example:

- P({All Democrats Win}) (Cox, McCubbins (1993, 2005), PartyBrand Argument )

We’ll use data to infer these things

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 14 / 33

Page 104: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Example: Congressional Elections

One candidate example:

- P(W ): probability incumbent wins

- P(N): probability incumbent loses

Two candidate example:

- P({W ,W }): probability both incumbents win

- P({W ,W }, {W ,N}): probability incumbent 1 wins

Full House example:

- P({All Democrats Win}) (Cox, McCubbins (1993, 2005), PartyBrand Argument )

We’ll use data to infer these things

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 14 / 33

Page 105: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Example: Congressional Elections

One candidate example:

- P(W ): probability incumbent wins

- P(N): probability incumbent loses

Two candidate example:

- P({W ,W }): probability both incumbents win

- P({W ,W }, {W ,N}): probability incumbent 1 wins

Full House example:

- P({All Democrats Win}) (Cox, McCubbins (1993, 2005), PartyBrand Argument )

We’ll use data to infer these things

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 14 / 33

Page 106: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Example: Congressional Elections

One candidate example:

- P(W ): probability incumbent wins

- P(N): probability incumbent loses

Two candidate example:

- P({W ,W }): probability both incumbents win

- P({W ,W }, {W ,N}): probability incumbent 1 wins

Full House example:

- P({All Democrats Win}) (Cox, McCubbins (1993, 2005), PartyBrand Argument )

We’ll use data to infer these things

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 14 / 33

Page 107: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of ProbabilityWe can derive intuitive properties of probability theory.

Using just theaxioms

Proposition

P(∅) = 0

Proof.

Define E1 = S and E2 = ∅,

1 = P(S) = P(S ∪ ∅) = P(E1 ∪ E2)

1 = P(E1) + P(E2)

1 = P(S) + P(∅)1 = 1 + P(∅)0 = P(∅)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 15 / 33

Page 108: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of ProbabilityWe can derive intuitive properties of probability theory. Using just theaxioms

Proposition

P(∅) = 0

Proof.

Define E1 = S and E2 = ∅,

1 = P(S) = P(S ∪ ∅) = P(E1 ∪ E2)

1 = P(E1) + P(E2)

1 = P(S) + P(∅)1 = 1 + P(∅)0 = P(∅)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 15 / 33

Page 109: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of ProbabilityWe can derive intuitive properties of probability theory. Using just theaxioms

Proposition

P(∅) = 0

Proof.

Define E1 = S and E2 = ∅,

1 = P(S) = P(S ∪ ∅) = P(E1 ∪ E2)

1 = P(E1) + P(E2)

1 = P(S) + P(∅)1 = 1 + P(∅)0 = P(∅)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 15 / 33

Page 110: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of ProbabilityWe can derive intuitive properties of probability theory. Using just theaxioms

Proposition

P(∅) = 0

Proof.

Define E1 = S and E2 = ∅,

1 = P(S) = P(S ∪ ∅) = P(E1 ∪ E2)

1 = P(E1) + P(E2)

1 = P(S) + P(∅)1 = 1 + P(∅)0 = P(∅)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 15 / 33

Page 111: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of ProbabilityWe can derive intuitive properties of probability theory. Using just theaxioms

Proposition

P(∅) = 0

Proof.

Define E1 = S and E2 = ∅,

1 = P(S) = P(S ∪ ∅) = P(E1 ∪ E2)

1 = P(E1) + P(E2)

1 = P(S) + P(∅)1 = 1 + P(∅)0 = P(∅)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 15 / 33

Page 112: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of ProbabilityWe can derive intuitive properties of probability theory. Using just theaxioms

Proposition

P(∅) = 0

Proof.

Define E1 = S and E2 = ∅,

1 = P(S) = P(S ∪ ∅) = P(E1 ∪ E2)

1 = P(E1) + P(E2)

1 = P(S) + P(∅)1 = 1 + P(∅)0 = P(∅)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 15 / 33

Page 113: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of ProbabilityWe can derive intuitive properties of probability theory. Using just theaxioms

Proposition

P(∅) = 0

Proof.

Define E1 = S and E2 = ∅,

1 = P(S) = P(S ∪ ∅) = P(E1 ∪ E2)

1 = P(E1) + P(E2)

1 = P(S) + P(∅)1 = 1 + P(∅)0 = P(∅)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 15 / 33

Page 114: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of ProbabilityWe can derive intuitive properties of probability theory. Using just theaxioms

Proposition

P(∅) = 0

Proof.

Define E1 = S and E2 = ∅,

1 = P(S) = P(S ∪ ∅) = P(E1 ∪ E2)

1 = P(E1) + P(E2)

1 = P(S) + P(∅)

1 = 1 + P(∅)0 = P(∅)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 15 / 33

Page 115: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of ProbabilityWe can derive intuitive properties of probability theory. Using just theaxioms

Proposition

P(∅) = 0

Proof.

Define E1 = S and E2 = ∅,

1 = P(S) = P(S ∪ ∅) = P(E1 ∪ E2)

1 = P(E1) + P(E2)

1 = P(S) + P(∅)1 = 1 + P(∅)

0 = P(∅)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 15 / 33

Page 116: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of ProbabilityWe can derive intuitive properties of probability theory. Using just theaxioms

Proposition

P(∅) = 0

Proof.

Define E1 = S and E2 = ∅,

1 = P(S) = P(S ∪ ∅) = P(E1 ∪ E2)

1 = P(E1) + P(E2)

1 = P(S) + P(∅)1 = 1 + P(∅)0 = P(∅)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 15 / 33

Page 117: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of ProbabilityWe can derive intuitive properties of probability theory. Using just theaxioms

Proposition

P(∅) = 0

Proof.

Define E1 = S and E2 = ∅,

1 = P(S) = P(S ∪ ∅) = P(E1 ∪ E2)

1 = P(E1) + P(E2)

1 = P(S) + P(∅)1 = 1 + P(∅)0 = P(∅)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 15 / 33

Page 118: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

P(E ) = 1− P(E c)

Proof.

Note that, S = E ∪ E c . And that E ∩ E c = ∅. Therefore,

1 = P(S) = P(E ∪ E c)

1 = P(E ) + P(E c)

1− P(E c) = P(E )

In words: Probability an outcome in E happens is 1− probability anoutcome in E doesn’t.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 16 / 33

Page 119: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

P(E ) = 1− P(E c)

Proof.

Note that, S = E ∪ E c . And that E ∩ E c = ∅. Therefore,

1 = P(S) = P(E ∪ E c)

1 = P(E ) + P(E c)

1− P(E c) = P(E )

In words: Probability an outcome in E happens is 1− probability anoutcome in E doesn’t.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 16 / 33

Page 120: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

P(E ) = 1− P(E c)

Proof.

Note that, S = E ∪ E c . And that E ∩ E c = ∅. Therefore,

1 = P(S) = P(E ∪ E c)

1 = P(E ) + P(E c)

1− P(E c) = P(E )

In words: Probability an outcome in E happens is 1− probability anoutcome in E doesn’t.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 16 / 33

Page 121: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

P(E ) = 1− P(E c)

Proof.

Note that, S = E ∪ E c . And that E ∩ E c = ∅.

Therefore,

1 = P(S) = P(E ∪ E c)

1 = P(E ) + P(E c)

1− P(E c) = P(E )

In words: Probability an outcome in E happens is 1− probability anoutcome in E doesn’t.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 16 / 33

Page 122: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

P(E ) = 1− P(E c)

Proof.

Note that, S = E ∪ E c . And that E ∩ E c = ∅. Therefore,

1 = P(S) = P(E ∪ E c)

1 = P(E ) + P(E c)

1− P(E c) = P(E )

In words: Probability an outcome in E happens is 1− probability anoutcome in E doesn’t.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 16 / 33

Page 123: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

P(E ) = 1− P(E c)

Proof.

Note that, S = E ∪ E c . And that E ∩ E c = ∅. Therefore,

1 = P(S) = P(E ∪ E c)

1 = P(E ) + P(E c)

1− P(E c) = P(E )

In words: Probability an outcome in E happens is 1− probability anoutcome in E doesn’t.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 16 / 33

Page 124: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

P(E ) = 1− P(E c)

Proof.

Note that, S = E ∪ E c . And that E ∩ E c = ∅. Therefore,

1 = P(S) = P(E ∪ E c)

1 = P(E ) + P(E c)

1− P(E c) = P(E )

In words: Probability an outcome in E happens is 1− probability anoutcome in E doesn’t.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 16 / 33

Page 125: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

P(E ) = 1− P(E c)

Proof.

Note that, S = E ∪ E c . And that E ∩ E c = ∅. Therefore,

1 = P(S) = P(E ∪ E c)

1 = P(E ) + P(E c)

1− P(E c) = P(E )

In words: Probability an outcome in E happens is 1− probability anoutcome in E doesn’t.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 16 / 33

Page 126: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

P(E ) = 1− P(E c)

Proof.

Note that, S = E ∪ E c . And that E ∩ E c = ∅. Therefore,

1 = P(S) = P(E ∪ E c)

1 = P(E ) + P(E c)

1− P(E c) = P(E )

In words: Probability an outcome in E happens is 1− probability anoutcome in E doesn’t.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 16 / 33

Page 127: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

P(E ) = 1− P(E c)

Proof.

Note that, S = E ∪ E c . And that E ∩ E c = ∅. Therefore,

1 = P(S) = P(E ∪ E c)

1 = P(E ) + P(E c)

1− P(E c) = P(E )

In words: Probability an outcome in E happens is 1− probability anoutcome in E doesn’t.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 16 / 33

Page 128: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

If E ⊂ F then P(E ) ≤ P(F ).

Proof.

We can write F = E ∪ (E c ∩ F ). (Why?)Further, (E c ∩ F ) ∩ E = ∅ThenP(F ) = P(E ) + P(E c ∩ F ) (Done!)

As you add more “outcomes” to a set, it can’t reduce the probability.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 17 / 33

Page 129: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

If E ⊂ F then P(E ) ≤ P(F ).

Proof.

We can write F = E ∪ (E c ∩ F ). (Why?)Further, (E c ∩ F ) ∩ E = ∅ThenP(F ) = P(E ) + P(E c ∩ F ) (Done!)

As you add more “outcomes” to a set, it can’t reduce the probability.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 17 / 33

Page 130: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

If E ⊂ F then P(E ) ≤ P(F ).

Proof.

We can write F = E ∪ (E c ∩ F ). (Why?)Further, (E c ∩ F ) ∩ E = ∅ThenP(F ) = P(E ) + P(E c ∩ F ) (Done!)

As you add more “outcomes” to a set, it can’t reduce the probability.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 17 / 33

Page 131: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

If E ⊂ F then P(E ) ≤ P(F ).

Proof.

We can write F = E ∪ (E c ∩ F ). (Why?)

Further, (E c ∩ F ) ∩ E = ∅ThenP(F ) = P(E ) + P(E c ∩ F ) (Done!)

As you add more “outcomes” to a set, it can’t reduce the probability.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 17 / 33

Page 132: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

If E ⊂ F then P(E ) ≤ P(F ).

Proof.

We can write F = E ∪ (E c ∩ F ). (Why?)Further, (E c ∩ F ) ∩ E = ∅

ThenP(F ) = P(E ) + P(E c ∩ F ) (Done!)

As you add more “outcomes” to a set, it can’t reduce the probability.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 17 / 33

Page 133: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

If E ⊂ F then P(E ) ≤ P(F ).

Proof.

We can write F = E ∪ (E c ∩ F ). (Why?)Further, (E c ∩ F ) ∩ E = ∅Then

P(F ) = P(E ) + P(E c ∩ F ) (Done!)

As you add more “outcomes” to a set, it can’t reduce the probability.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 17 / 33

Page 134: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

If E ⊂ F then P(E ) ≤ P(F ).

Proof.

We can write F = E ∪ (E c ∩ F ). (Why?)Further, (E c ∩ F ) ∩ E = ∅ThenP(F ) = P(E ) + P(E c ∩ F ) (Done!)

As you add more “outcomes” to a set, it can’t reduce the probability.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 17 / 33

Page 135: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

If E ⊂ F then P(E ) ≤ P(F ).

Proof.

We can write F = E ∪ (E c ∩ F ). (Why?)Further, (E c ∩ F ) ∩ E = ∅ThenP(F ) = P(E ) + P(E c ∩ F ) (Done!)

As you add more “outcomes” to a set, it can’t reduce the probability.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 17 / 33

Page 136: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Properties of Probability

Proposition

If E ⊂ F then P(E ) ≤ P(F ).

Proof.

We can write F = E ∪ (E c ∩ F ). (Why?)Further, (E c ∩ F ) ∩ E = ∅ThenP(F ) = P(E ) + P(E c ∩ F ) (Done!)

As you add more “outcomes” to a set, it can’t reduce the probability.

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 17 / 33

Page 137: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Examples in R

Simulation: use pseudo-random numbers, computers to gain evidence forclaimTradeoffs:

Pro Deep understanding of problem, easier than proofs

Con Never as general, can be deceiving if not done carefully (also, never amonte carlo study that shows a new method is wrong)

Walk through R code to simulate these two results

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 18 / 33

Page 138: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

To the R code!

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 19 / 33

Page 139: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 20 / 33

Page 140: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Inclusion/Exclusion

Proposition

P(E1 ∪ E2 ∪ · · · ∪ En) =N∑i=1

P(Ei )−∑i1<i2

P(Ei1 ∩ Ei2) + · · ·

+(−1)r+1∑

i1<i2<···<ir

P(Ei1 ∩ Ei2 ∩ · · · ∩ Eir )

+ · · ·+ (−1)n+1P(E1 ∩ E2 ∩ · · ·En)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 21 / 33

Page 141: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, Intuition

- Suppose that we have an outcome.

- If it isn’t in the event sequence, doesn’t appear anywhere.

- If it is in the event sequence, appears once in ∪ni=1Ei (contributesonce to P(∪ni=1Ei ).

- How many times on the other side? Suppose it appears in m of the Ei

m > 0

count =

(m

1

)−(m

2

)+

(m

3

)− · · ·+ (−1)m+1

(m

m

)count =

m∑i=1

(m

i

)(−1)i+1

count = −m∑i=1

(m

i

)(−1)i

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 22 / 33

Page 142: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, Intuition

- Suppose that we have an outcome.

- If it isn’t in the event sequence, doesn’t appear anywhere.

- If it is in the event sequence, appears once in ∪ni=1Ei (contributesonce to P(∪ni=1Ei ).

- How many times on the other side? Suppose it appears in m of the Ei

m > 0

count =

(m

1

)−(m

2

)+

(m

3

)− · · ·+ (−1)m+1

(m

m

)count =

m∑i=1

(m

i

)(−1)i+1

count = −m∑i=1

(m

i

)(−1)i

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 22 / 33

Page 143: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, Intuition

- Suppose that we have an outcome.

- If it isn’t in the event sequence, doesn’t appear anywhere.

- If it is in the event sequence, appears once in ∪ni=1Ei (contributesonce to P(∪ni=1Ei ).

- How many times on the other side? Suppose it appears in m of the Ei

m > 0

count =

(m

1

)−(m

2

)+

(m

3

)− · · ·+ (−1)m+1

(m

m

)count =

m∑i=1

(m

i

)(−1)i+1

count = −m∑i=1

(m

i

)(−1)i

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 22 / 33

Page 144: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, Intuition

- Suppose that we have an outcome.

- If it isn’t in the event sequence, doesn’t appear anywhere.

- If it is in the event sequence, appears once in ∪ni=1Ei (contributesonce to P(∪ni=1Ei ).

- How many times on the other side? Suppose it appears in m of the Ei

m > 0

count =

(m

1

)−(m

2

)+

(m

3

)− · · ·+ (−1)m+1

(m

m

)count =

m∑i=1

(m

i

)(−1)i+1

count = −m∑i=1

(m

i

)(−1)i

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 22 / 33

Page 145: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, Intuition

- Suppose that we have an outcome.

- If it isn’t in the event sequence, doesn’t appear anywhere.

- If it is in the event sequence, appears once in ∪ni=1Ei (contributesonce to P(∪ni=1Ei ).

- How many times on the other side? Suppose it appears in m of the Ei

m > 0

count =

(m

1

)−(m

2

)+

(m

3

)− · · ·+ (−1)m+1

(m

m

)

count =m∑i=1

(m

i

)(−1)i+1

count = −m∑i=1

(m

i

)(−1)i

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 22 / 33

Page 146: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, Intuition

- Suppose that we have an outcome.

- If it isn’t in the event sequence, doesn’t appear anywhere.

- If it is in the event sequence, appears once in ∪ni=1Ei (contributesonce to P(∪ni=1Ei ).

- How many times on the other side? Suppose it appears in m of the Ei

m > 0

count =

(m

1

)−(m

2

)+

(m

3

)− · · ·+ (−1)m+1

(m

m

)count =

m∑i=1

(m

i

)(−1)i+1

count = −m∑i=1

(m

i

)(−1)i

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 22 / 33

Page 147: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, Intuition

- Suppose that we have an outcome.

- If it isn’t in the event sequence, doesn’t appear anywhere.

- If it is in the event sequence, appears once in ∪ni=1Ei (contributesonce to P(∪ni=1Ei ).

- How many times on the other side? Suppose it appears in m of the Ei

m > 0

count =

(m

1

)−(m

2

)+

(m

3

)− · · ·+ (−1)m+1

(m

m

)count =

m∑i=1

(m

i

)(−1)i+1

count = −m∑i=1

(m

i

)(−1)i

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 22 / 33

Page 148: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, intuition

count = −∑m

i=1

(mi

)(−1)i

Binomial Theorem: (x + y)n =∑n

i=0

(ni

)(x)n−iy i .

0 = (−1 + 1)m =m∑i=0

(m

i

)(−1)i

0 = 1 +m∑i=1

(m

i

)(−1)i

0 = 1− count

1 = count

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 23 / 33

Page 149: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, intuition

count = −∑m

i=1

(mi

)(−1)i

Binomial Theorem: (x + y)n =∑n

i=0

(ni

)(x)n−iy i .

0 = (−1 + 1)m =m∑i=0

(m

i

)(−1)i

0 = 1 +m∑i=1

(m

i

)(−1)i

0 = 1− count

1 = count

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 23 / 33

Page 150: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, intuition

count = −∑m

i=1

(mi

)(−1)i

Binomial Theorem: (x + y)n =∑n

i=0

(ni

)(x)n−iy i .

0 = (−1 + 1)m =m∑i=0

(m

i

)(−1)i

0 = 1 +m∑i=1

(m

i

)(−1)i

0 = 1− count

1 = count

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 23 / 33

Page 151: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, intuition

count = −∑m

i=1

(mi

)(−1)i

Binomial Theorem: (x + y)n =∑n

i=0

(ni

)(x)n−iy i .

0 = (−1 + 1)m =m∑i=0

(m

i

)(−1)i

0 = 1 +m∑i=1

(m

i

)(−1)i

0 = 1− count

1 = count

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 23 / 33

Page 152: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, intuition

count = −∑m

i=1

(mi

)(−1)i

Binomial Theorem: (x + y)n =∑n

i=0

(ni

)(x)n−iy i .

0 = (−1 + 1)m =m∑i=0

(m

i

)(−1)i

0 = 1 +m∑i=1

(m

i

)(−1)i

0 = 1− count

1 = count

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 23 / 33

Page 153: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof: Version 1, intuition

count = −∑m

i=1

(mi

)(−1)i

Binomial Theorem: (x + y)n =∑n

i=0

(ni

)(x)n−iy i .

0 = (−1 + 1)m =m∑i=0

(m

i

)(−1)i

0 = 1 +m∑i=1

(m

i

)(−1)i

0 = 1− count

1 = count

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 23 / 33

Page 154: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Inclusion/Exclusion

Corollary

Suppose E1 and E2 are events. Then

P(E1 ∪ E2) = P(E1) + P(E2)− P(E1 ∩ E2)

R Code!

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 24 / 33

Page 155: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Consider events E1 and E2. Then

P(E1 ∩ E2) = P(E1)− P(E1 ∩ E c2 )

Proof.

E1 = (E1 ∩ E2) ∪ (E1 ∩ E c2 )

P(E1) = P(E1 ∩ E2) + P(E1 ∩ E c2 )

P(E1 ∩ E2) = P(E1)− P(E1 ∩ E c2 )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 25 / 33

Page 156: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Consider events E1 and E2. Then

P(E1 ∩ E2) = P(E1)− P(E1 ∩ E c2 )

Proof.

E1 = (E1 ∩ E2) ∪ (E1 ∩ E c2 )

P(E1) = P(E1 ∩ E2) + P(E1 ∩ E c2 )

P(E1 ∩ E2) = P(E1)− P(E1 ∩ E c2 )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 25 / 33

Page 157: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Consider events E1 and E2. Then

P(E1 ∩ E2) = P(E1)− P(E1 ∩ E c2 )

Proof.

E1 = (E1 ∩ E2) ∪ (E1 ∩ E c2 )

P(E1) = P(E1 ∩ E2) + P(E1 ∩ E c2 )

P(E1 ∩ E2) = P(E1)− P(E1 ∩ E c2 )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 25 / 33

Page 158: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Consider events E1 and E2. Then

P(E1 ∩ E2) = P(E1)− P(E1 ∩ E c2 )

Proof.

E1 = (E1 ∩ E2) ∪ (E1 ∩ E c2 )

P(E1) = P(E1 ∩ E2) + P(E1 ∩ E c2 )

P(E1 ∩ E2) = P(E1)− P(E1 ∩ E c2 )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 25 / 33

Page 159: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Boole’s Inequality

P(∪Ni=1Ei ) ≤N∑i=1

P(Ei )

Proof.Prooced by induction. Trivially true for n = 1. Now assume theproposition is true for n = k and consider n = k + 1.

P(∪ki=1Ei ∪ Ek+1) = P(∪ki=1Ei ) + P(Ek+1)− P(∪ki=1Ei ∩ Ek+1)

P(Ek+1)− P(∪ki=1Ei ∩ Ek+1) ≤ P(Ek+1)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 26 / 33

Page 160: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Boole’s Inequality

P(∪Ni=1Ei ) ≤N∑i=1

P(Ei )

Proof.

Prooced by induction. Trivially true for n = 1. Now assume theproposition is true for n = k and consider n = k + 1.

P(∪ki=1Ei ∪ Ek+1) = P(∪ki=1Ei ) + P(Ek+1)− P(∪ki=1Ei ∩ Ek+1)

P(Ek+1)− P(∪ki=1Ei ∩ Ek+1) ≤ P(Ek+1)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 26 / 33

Page 161: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Boole’s Inequality

P(∪Ni=1Ei ) ≤N∑i=1

P(Ei )

Proof.Prooced by induction. Trivially true for n = 1. Now assume theproposition is true for n = k and consider n = k + 1.

P(∪ki=1Ei ∪ Ek+1) = P(∪ki=1Ei ) + P(Ek+1)− P(∪ki=1Ei ∩ Ek+1)

P(Ek+1)− P(∪ki=1Ei ∩ Ek+1) ≤ P(Ek+1)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 26 / 33

Page 162: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Boole’s Inequality

P(∪Ni=1Ei ) ≤N∑i=1

P(Ei )

Proof.Prooced by induction. Trivially true for n = 1. Now assume theproposition is true for n = k and consider n = k + 1.

P(∪ki=1Ei ∪ Ek+1) = P(∪ki=1Ei ) + P(Ek+1)− P(∪ki=1Ei ∩ Ek+1)

P(Ek+1)− P(∪ki=1Ei ∩ Ek+1) ≤ P(Ek+1)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 26 / 33

Page 163: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Boole’s Inequality

P(∪Ni=1Ei ) ≤N∑i=1

P(Ei )

Proof.Prooced by induction. Trivially true for n = 1. Now assume theproposition is true for n = k and consider n = k + 1.

P(∪ki=1Ei ∪ Ek+1) = P(∪ki=1Ei ) + P(Ek+1)− P(∪ki=1Ei ∩ Ek+1)

P(Ek+1)− P(∪ki=1Ei ∩ Ek+1) ≤ P(Ek+1)

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 26 / 33

Page 164: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof Continued

P(∪ki=1Ei ) ≤k∑

i=1

P(Ei )

P(∪ki=1Ei ) + P(Ek+1)− P(∪ki=1Ei ∩ Ek+1) ≤k∑

i=1

P(Ei ) + P(Ek+1)

P(∪k+1i=1 Ei ) ≤

k+1∑i=1

P(Ei )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 27 / 33

Page 165: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof Continued

P(∪ki=1Ei ) ≤k∑

i=1

P(Ei )

P(∪ki=1Ei ) + P(Ek+1)− P(∪ki=1Ei ∩ Ek+1) ≤k∑

i=1

P(Ei ) + P(Ek+1)

P(∪k+1i=1 Ei ) ≤

k+1∑i=1

P(Ei )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 27 / 33

Page 166: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof Continued

P(∪ki=1Ei ) ≤k∑

i=1

P(Ei )

P(∪ki=1Ei ) + P(Ek+1)− P(∪ki=1Ei ∩ Ek+1) ≤k∑

i=1

P(Ei ) + P(Ek+1)

P(∪k+1i=1 Ei ) ≤

k+1∑i=1

P(Ei )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 27 / 33

Page 167: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proof Continued

P(∪ki=1Ei ) ≤k∑

i=1

P(Ei )

P(∪ki=1Ei ) + P(Ek+1)− P(∪ki=1Ei ∩ Ek+1) ≤k∑

i=1

P(Ei ) + P(Ek+1)

P(∪k+1i=1 Ei ) ≤

k+1∑i=1

P(Ei )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 27 / 33

Page 168: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Bonferroni’s Inequality

P(∩ni=1Ei ) ≥ 1−n∑

i=1

P(E ci )

Proof.

∪ni=1Eci = (∩ni=1Ei )

c . So,

P(∪Ni=1Eci ) ≤

N∑i=1

P(E ci )

P(∪Ni=1Eci ) = P((∩ni=1Ei )

c))

= 1− P(∩ni=1Ei )

P(∩ni=1Ei ) ≥ 1−n∑

i=1

P(E ci )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 28 / 33

Page 169: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Bonferroni’s Inequality

P(∩ni=1Ei ) ≥ 1−n∑

i=1

P(E ci )

Proof.

∪ni=1Eci = (∩ni=1Ei )

c . So,

P(∪Ni=1Eci ) ≤

N∑i=1

P(E ci )

P(∪Ni=1Eci ) = P((∩ni=1Ei )

c))

= 1− P(∩ni=1Ei )

P(∩ni=1Ei ) ≥ 1−n∑

i=1

P(E ci )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 28 / 33

Page 170: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Bonferroni’s Inequality

P(∩ni=1Ei ) ≥ 1−n∑

i=1

P(E ci )

Proof.

∪ni=1Eci = (∩ni=1Ei )

c . So,

P(∪Ni=1Eci ) ≤

N∑i=1

P(E ci )

P(∪Ni=1Eci ) = P((∩ni=1Ei )

c))

= 1− P(∩ni=1Ei )

P(∩ni=1Ei ) ≥ 1−n∑

i=1

P(E ci )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 28 / 33

Page 171: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Bonferroni’s Inequality

P(∩ni=1Ei ) ≥ 1−n∑

i=1

P(E ci )

Proof.

∪ni=1Eci = (∩ni=1Ei )

c . So,

P(∪Ni=1Eci ) ≤

N∑i=1

P(E ci )

P(∪Ni=1Eci ) = P((∩ni=1Ei )

c))

= 1− P(∩ni=1Ei )

P(∩ni=1Ei ) ≥ 1−n∑

i=1

P(E ci )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 28 / 33

Page 172: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Proposition

Bonferroni’s Inequality

P(∩ni=1Ei ) ≥ 1−n∑

i=1

P(E ci )

Proof.

∪ni=1Eci = (∩ni=1Ei )

c . So,

P(∪Ni=1Eci ) ≤

N∑i=1

P(E ci )

P(∪Ni=1Eci ) = P((∩ni=1Ei )

c))

= 1− P(∩ni=1Ei )

P(∩ni=1Ei ) ≥ 1−n∑

i=1

P(E ci )

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 28 / 33

Page 173: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Suprising Probability Facts

Formalized Probabilistic Reasoning: helps us to avoid silly reasoning

- “What are the odds” not great, but neither are all the othernon-pattens that are missed

- “There is no way a candidate has a 80% chance of winning, theforecasted vote share is only 55%” confuses different events

- “Group A has a higher rate of some behavior, therefore most of thebehavior is from group A” confuses two different problems (explainmore tomorrow)

- “This is a low probability event, therefore god designed it” (1)Even if we stipulate to a low probability event, intelligent design is anassumption (2) Low probability obviously doesn’t imply divineintervention. Take 100 balls and let them sort into an undeterminedbins. You’ll get a result, but probability of that result= 1/(1029 × Number of Atoms in Universe)

Easy Problems

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 29 / 33

Page 174: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Suprising Probability Facts

Formalized Probabilistic Reasoning: helps us to avoid silly reasoning

- “What are the odds”

not great, but neither are all the othernon-pattens that are missed

- “There is no way a candidate has a 80% chance of winning, theforecasted vote share is only 55%” confuses different events

- “Group A has a higher rate of some behavior, therefore most of thebehavior is from group A” confuses two different problems (explainmore tomorrow)

- “This is a low probability event, therefore god designed it” (1)Even if we stipulate to a low probability event, intelligent design is anassumption (2) Low probability obviously doesn’t imply divineintervention. Take 100 balls and let them sort into an undeterminedbins. You’ll get a result, but probability of that result= 1/(1029 × Number of Atoms in Universe)

Easy Problems

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 29 / 33

Page 175: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Suprising Probability Facts

Formalized Probabilistic Reasoning: helps us to avoid silly reasoning

- “What are the odds” not great, but neither are all the othernon-pattens that are missed

- “There is no way a candidate has a 80% chance of winning, theforecasted vote share is only 55%” confuses different events

- “Group A has a higher rate of some behavior, therefore most of thebehavior is from group A” confuses two different problems (explainmore tomorrow)

- “This is a low probability event, therefore god designed it” (1)Even if we stipulate to a low probability event, intelligent design is anassumption (2) Low probability obviously doesn’t imply divineintervention. Take 100 balls and let them sort into an undeterminedbins. You’ll get a result, but probability of that result= 1/(1029 × Number of Atoms in Universe)

Easy Problems

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 29 / 33

Page 176: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Suprising Probability Facts

Formalized Probabilistic Reasoning: helps us to avoid silly reasoning

- “What are the odds” not great, but neither are all the othernon-pattens that are missed

- “There is no way a candidate has a 80% chance of winning, theforecasted vote share is only 55%”

confuses different events

- “Group A has a higher rate of some behavior, therefore most of thebehavior is from group A” confuses two different problems (explainmore tomorrow)

- “This is a low probability event, therefore god designed it” (1)Even if we stipulate to a low probability event, intelligent design is anassumption (2) Low probability obviously doesn’t imply divineintervention. Take 100 balls and let them sort into an undeterminedbins. You’ll get a result, but probability of that result= 1/(1029 × Number of Atoms in Universe)

Easy Problems

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 29 / 33

Page 177: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Suprising Probability Facts

Formalized Probabilistic Reasoning: helps us to avoid silly reasoning

- “What are the odds” not great, but neither are all the othernon-pattens that are missed

- “There is no way a candidate has a 80% chance of winning, theforecasted vote share is only 55%” confuses different events

- “Group A has a higher rate of some behavior, therefore most of thebehavior is from group A” confuses two different problems (explainmore tomorrow)

- “This is a low probability event, therefore god designed it” (1)Even if we stipulate to a low probability event, intelligent design is anassumption (2) Low probability obviously doesn’t imply divineintervention. Take 100 balls and let them sort into an undeterminedbins. You’ll get a result, but probability of that result= 1/(1029 × Number of Atoms in Universe)

Easy Problems

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 29 / 33

Page 178: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Suprising Probability Facts

Formalized Probabilistic Reasoning: helps us to avoid silly reasoning

- “What are the odds” not great, but neither are all the othernon-pattens that are missed

- “There is no way a candidate has a 80% chance of winning, theforecasted vote share is only 55%” confuses different events

- “Group A has a higher rate of some behavior, therefore most of thebehavior is from group A”

confuses two different problems (explainmore tomorrow)

- “This is a low probability event, therefore god designed it” (1)Even if we stipulate to a low probability event, intelligent design is anassumption (2) Low probability obviously doesn’t imply divineintervention. Take 100 balls and let them sort into an undeterminedbins. You’ll get a result, but probability of that result= 1/(1029 × Number of Atoms in Universe)

Easy Problems

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 29 / 33

Page 179: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Suprising Probability Facts

Formalized Probabilistic Reasoning: helps us to avoid silly reasoning

- “What are the odds” not great, but neither are all the othernon-pattens that are missed

- “There is no way a candidate has a 80% chance of winning, theforecasted vote share is only 55%” confuses different events

- “Group A has a higher rate of some behavior, therefore most of thebehavior is from group A” confuses two different problems (explainmore tomorrow)

- “This is a low probability event, therefore god designed it” (1)Even if we stipulate to a low probability event, intelligent design is anassumption (2) Low probability obviously doesn’t imply divineintervention. Take 100 balls and let them sort into an undeterminedbins. You’ll get a result, but probability of that result= 1/(1029 × Number of Atoms in Universe)

Easy Problems

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 29 / 33

Page 180: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Suprising Probability Facts

Formalized Probabilistic Reasoning: helps us to avoid silly reasoning

- “What are the odds” not great, but neither are all the othernon-pattens that are missed

- “There is no way a candidate has a 80% chance of winning, theforecasted vote share is only 55%” confuses different events

- “Group A has a higher rate of some behavior, therefore most of thebehavior is from group A” confuses two different problems (explainmore tomorrow)

- “This is a low probability event, therefore god designed it”

(1)Even if we stipulate to a low probability event, intelligent design is anassumption (2) Low probability obviously doesn’t imply divineintervention. Take 100 balls and let them sort into an undeterminedbins. You’ll get a result, but probability of that result= 1/(1029 × Number of Atoms in Universe)

Easy Problems

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 29 / 33

Page 181: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Suprising Probability Facts

Formalized Probabilistic Reasoning: helps us to avoid silly reasoning

- “What are the odds” not great, but neither are all the othernon-pattens that are missed

- “There is no way a candidate has a 80% chance of winning, theforecasted vote share is only 55%” confuses different events

- “Group A has a higher rate of some behavior, therefore most of thebehavior is from group A” confuses two different problems (explainmore tomorrow)

- “This is a low probability event, therefore god designed it” (1)Even if we stipulate to a low probability event, intelligent design is anassumption (2) Low probability obviously doesn’t imply divineintervention. Take 100 balls and let them sort into an undeterminedbins. You’ll get a result, but probability of that result= 1/(1029 × Number of Atoms in Universe)

Easy Problems

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 29 / 33

Page 182: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Suprising Probability Facts

Formalized Probabilistic Reasoning: helps us to avoid silly reasoning

- “What are the odds” not great, but neither are all the othernon-pattens that are missed

- “There is no way a candidate has a 80% chance of winning, theforecasted vote share is only 55%” confuses different events

- “Group A has a higher rate of some behavior, therefore most of thebehavior is from group A” confuses two different problems (explainmore tomorrow)

- “This is a low probability event, therefore god designed it” (1)Even if we stipulate to a low probability event, intelligent design is anassumption (2) Low probability obviously doesn’t imply divineintervention. Take 100 balls and let them sort into an undeterminedbins. You’ll get a result, but probability of that result= 1/(1029 × Number of Atoms in Universe)

Easy Problems

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 29 / 33

Page 183: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts:Birthday Problem

Probabilistic reasoning pays off for harder problems

Suppose we have a room full of N people. What is the probability at least2 people have the same birthday?

- Assuming leap year counts, N = 367 guarantees at least two peoplewith same birthday (pigeonhole principle)

- For N < 367?

- Examine via simulation

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 30 / 33

Page 184: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts:Birthday Problem

Probabilistic reasoning pays off for harder problemsSuppose we have a room full of N people. What is the probability at least2 people have the same birthday?

- Assuming leap year counts, N = 367 guarantees at least two peoplewith same birthday (pigeonhole principle)

- For N < 367?

- Examine via simulation

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 30 / 33

Page 185: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts:Birthday Problem

Probabilistic reasoning pays off for harder problemsSuppose we have a room full of N people. What is the probability at least2 people have the same birthday?

- Assuming leap year counts, N = 367 guarantees at least two peoplewith same birthday (pigeonhole principle)

- For N < 367?

- Examine via simulation

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 30 / 33

Page 186: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts:Birthday Problem

Probabilistic reasoning pays off for harder problemsSuppose we have a room full of N people. What is the probability at least2 people have the same birthday?

- Assuming leap year counts, N = 367 guarantees at least two peoplewith same birthday (pigeonhole principle)

- For N < 367?

- Examine via simulation

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 30 / 33

Page 187: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts:Birthday Problem

Probabilistic reasoning pays off for harder problemsSuppose we have a room full of N people. What is the probability at least2 people have the same birthday?

- Assuming leap year counts, N = 367 guarantees at least two peoplewith same birthday (pigeonhole principle)

- For N < 367?

- Examine via simulation

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 30 / 33

Page 188: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Number of People

Pro

b. s

ame

birt

hday

0.00

0.25

0.50

0.75

1.00

0 50 100 150 200 250 300

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 31 / 33

Page 189: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts: the E-Harmony Problem

Curse of dimensionality and on-line dating:

Suppose (for example) 29 dimensions are binary (0,1):Suppose dimensions are independent:Pr(2 people agree) = 0.5

Pr(Exact) = Pr(Agree)1 × Pr(Agree)2 × . . .× Pr(Agree)29= 0.5× 0.5× . . .× 0.5

= 0.529

≈ 1.8× 10−9

1 in 536,870,912 peopleAcross many “variables” (events) agreement is harder

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 32 / 33

Page 190: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts: the E-Harmony Problem

Curse of dimensionality and on-line dating:

Suppose (for example) 29 dimensions are binary (0,1):

Suppose dimensions are independent:Pr(2 people agree) = 0.5

Pr(Exact) = Pr(Agree)1 × Pr(Agree)2 × . . .× Pr(Agree)29= 0.5× 0.5× . . .× 0.5

= 0.529

≈ 1.8× 10−9

1 in 536,870,912 peopleAcross many “variables” (events) agreement is harder

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 32 / 33

Page 191: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts: the E-Harmony Problem

Curse of dimensionality and on-line dating:

Suppose (for example) 29 dimensions are binary (0,1):Suppose dimensions are independent:

Pr(2 people agree) = 0.5

Pr(Exact) = Pr(Agree)1 × Pr(Agree)2 × . . .× Pr(Agree)29= 0.5× 0.5× . . .× 0.5

= 0.529

≈ 1.8× 10−9

1 in 536,870,912 peopleAcross many “variables” (events) agreement is harder

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 32 / 33

Page 192: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts: the E-Harmony Problem

Curse of dimensionality and on-line dating:

Suppose (for example) 29 dimensions are binary (0,1):Suppose dimensions are independent:Pr(2 people agree) = 0.5

Pr(Exact) = Pr(Agree)1 × Pr(Agree)2 × . . .× Pr(Agree)29= 0.5× 0.5× . . .× 0.5

= 0.529

≈ 1.8× 10−9

1 in 536,870,912 peopleAcross many “variables” (events) agreement is harder

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 32 / 33

Page 193: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts: the E-Harmony Problem

Curse of dimensionality and on-line dating:

Suppose (for example) 29 dimensions are binary (0,1):Suppose dimensions are independent:Pr(2 people agree) = 0.5

Pr(Exact) = Pr(Agree)1 × Pr(Agree)2 × . . .× Pr(Agree)29

= 0.5× 0.5× . . .× 0.5

= 0.529

≈ 1.8× 10−9

1 in 536,870,912 peopleAcross many “variables” (events) agreement is harder

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 32 / 33

Page 194: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts: the E-Harmony Problem

Curse of dimensionality and on-line dating:

Suppose (for example) 29 dimensions are binary (0,1):Suppose dimensions are independent:Pr(2 people agree) = 0.5

Pr(Exact) = Pr(Agree)1 × Pr(Agree)2 × . . .× Pr(Agree)29= 0.5× 0.5× . . .× 0.5

= 0.529

≈ 1.8× 10−9

1 in 536,870,912 peopleAcross many “variables” (events) agreement is harder

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 32 / 33

Page 195: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts: the E-Harmony Problem

Curse of dimensionality and on-line dating:

Suppose (for example) 29 dimensions are binary (0,1):Suppose dimensions are independent:Pr(2 people agree) = 0.5

Pr(Exact) = Pr(Agree)1 × Pr(Agree)2 × . . .× Pr(Agree)29= 0.5× 0.5× . . .× 0.5

= 0.529

≈ 1.8× 10−9

1 in 536,870,912 peopleAcross many “variables” (events) agreement is harder

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 32 / 33

Page 196: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts: the E-Harmony Problem

Curse of dimensionality and on-line dating:

Suppose (for example) 29 dimensions are binary (0,1):Suppose dimensions are independent:Pr(2 people agree) = 0.5

Pr(Exact) = Pr(Agree)1 × Pr(Agree)2 × . . .× Pr(Agree)29= 0.5× 0.5× . . .× 0.5

= 0.529

≈ 1.8× 10−9

1 in 536,870,912 peopleAcross many “variables” (events) agreement is harder

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 32 / 33

Page 197: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts: the E-Harmony Problem

Curse of dimensionality and on-line dating:

Suppose (for example) 29 dimensions are binary (0,1):Suppose dimensions are independent:Pr(2 people agree) = 0.5

Pr(Exact) = Pr(Agree)1 × Pr(Agree)2 × . . .× Pr(Agree)29= 0.5× 0.5× . . .× 0.5

= 0.529

≈ 1.8× 10−9

1 in 536,870,912 people

Across many “variables” (events) agreement is harder

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 32 / 33

Page 198: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Surprising Probability Facts: the E-Harmony Problem

Curse of dimensionality and on-line dating:

Suppose (for example) 29 dimensions are binary (0,1):Suppose dimensions are independent:Pr(2 people agree) = 0.5

Pr(Exact) = Pr(Agree)1 × Pr(Agree)2 × . . .× Pr(Agree)29= 0.5× 0.5× . . .× 0.5

= 0.529

≈ 1.8× 10−9

1 in 536,870,912 peopleAcross many “variables” (events) agreement is harder

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 32 / 33

Page 199: Justin Grimmer - Stanford Universitystanford.edu/~jgrimmer/Math14/mc8_14.pdf · 2014. 9. 12. · September 11th, 2014 Justin Grimmer (Stanford University) Methodology I September

Probability Theory

- Today: Introducing probability model

- Conditional probability, Bayes’ rule, and independence

Justin Grimmer (Stanford University) Methodology I September 11th, 2014 33 / 33