Lec 15
Lec 15
○ Confidence Intervals
■ “[0.61,0.66] is a 95% confidence interval for 𝑝”
○ Hypothesis Testing
■ “We find statistical evidence that the coin is biased”
Outline
● Sampling, Random Variables and Distributions
● Assessing Models and Comparing Distributions
● Hypothesis Testing
Review:
1. Random Variables
2. Expectation
3. Distributions
Random Variables (RVs)
● A random variable is a numerical function of a random
sample (also known as a “statistic”)
○ It maps samples (or outcomes of an experiment) to a real number
Population
X(s) = 1
Let s be a sample of size 3
X(s) = 2
Let X be the number of blue people in our sample
X, then, is a random variable! X(s) = 0
Functions of Random Variables
● A function of a random variable is also a random variable!
○ i.e., it is a “function of a function of the sample”
○ If you create multiple random variables based on your sample,
then functions of them are also random variables
Probability Distribution
● Probabilities associated with each value that a random
variable can assume:
○ For instance, P(X = 10) is the chance that X has the value 10
probabilities
of those
values
values
Exercise: Can you prove this empirically by simulating several trials of the
game?