basic probability & random variables

32
Basic Probability & Random Variables

Upload: marilu

Post on 23-Feb-2016

50 views

Category:

Documents


1 download

DESCRIPTION

Basic Probability & Random Variables. Axioms of Probability. If are mutually disjoint , then. Conditional Probability. Multiplicative Rule of Probability. BAYES RULE:. Bayes Rule is very important. Why? Often we want to know But what we do know is - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Basic  Probability  &  Random Variables

Basic Probability & Random Variables

Page 2: Basic  Probability  &  Random Variables

Axioms of Probability

• If are mutually disjoint, then

Page 3: Basic  Probability  &  Random Variables

Conditional Probability

𝑆

𝐴

𝐵

𝐴∩𝐵

Page 4: Basic  Probability  &  Random Variables

Multiplicative Rule of Probability

BAYES RULE:

Page 5: Basic  Probability  &  Random Variables

Bayes Rule is very important

Why?• Often we want to know • But what we do know is • We will be able to infer by

Page 6: Basic  Probability  &  Random Variables

Here is a useful application of Bayes

From the graph we can see that,

𝑆

𝐴

𝐵

𝐴∩ 𝐵

Page 7: Basic  Probability  &  Random Variables

Randomization Response Theory

Assume that you need estimate the proportion of narcotic drug consumption among university students. It is unlikely that students would answer your questionnaire honestly. So here is a simple trick you may use.

Instead of asking the question directly, let the student draw a ball from an urn in which there are 8 blue and 2 yellow balls. If a yellow ball is drawn (you do not see the result), student answers the question «Is the last digit of your TC ID number odd?» and if a blue ball is drawn then the student answers «Have you ever used a narcotic drug?» question.

Page 8: Basic  Probability  &  Random Variables

• Assume you have asked this question to 17 students and 13 of them answered YES.

Soon we will be able to compute the error due to …(?)

Page 9: Basic  Probability  &  Random Variables

Random Variables and Probability Distributions

• Random Variable:?

Example: When rolling a two dice, we may be interested in whether or not the sum of the two dice is 7. Or we might be interested in the sum of the two dice.

Page 10: Basic  Probability  &  Random Variables

Example:How long does it take for the next bus to arrive?

Page 11: Basic  Probability  &  Random Variables

• Now, suppose the probability that the T comes in any given minute is a constant , and whether the T comes is independent of what has happened in previous periods.

• What's P(X=1)?

• What's P(X=2)?

• What’s P(X=3)?

• What’s P(X=x)?

Geometric Distribution with a parameter

Page 12: Basic  Probability  &  Random Variables

Probability Density Function

• An alternative model where Y is exact time:

If In class: How probabilities are related with areas under the curve.

Page 13: Basic  Probability  &  Random Variables

Expectation

• Discrete Case

• Continuous Case

Page 14: Basic  Probability  &  Random Variables

• Discrete

• Continuous

Page 15: Basic  Probability  &  Random Variables

Variance

Page 16: Basic  Probability  &  Random Variables

• Typically you need to know what sort of probability distributions are there and for which type of situations thay are used for.

• We will be mostly dealing with Normal Distribution.

Page 17: Basic  Probability  &  Random Variables

INCOME DISTRIBUTION – (Empirical)

Page 18: Basic  Probability  &  Random Variables

INCOME DISTRIBUTION – (Theoretical)

Log

Nor

mal

Did

trib

ution

Page 19: Basic  Probability  &  Random Variables
Page 20: Basic  Probability  &  Random Variables

Normal Distribution• Normal distribution has an unfriendly form

that does not let explicit integration:

• However any normal distribution can be transformed into standard normal distribution

Normal Distribution

xm

s

m=0

s=1

z

Standard Normal Distribution-xz m

s=

Page 21: Basic  Probability  &  Random Variables

P(x < 500) = P(z < 1)

Normal Distribution

600μ =500

P(x < 600)

μ = 500 σ = 100

x

Standard Normal Distribution

600 500 1100

xz ms

= = =

1μ = 0

μ = 0 σ = 1

z

P(z < 1)

Same Area

Page 22: Basic  Probability  &  Random Variables

• Before going any further did you notice that statistical parameters are actually operational definitions for some concepts.

• Let’s discuss these operationalized variables and their corresponding concepts:

Page 23: Basic  Probability  &  Random Variables

Sampling

Probability Sampling Nonprobability Sampling

Page 24: Basic  Probability  &  Random Variables

Probability Sampling

• Sampling element• Population• Target population• Sampling frame• Sampling ratio

Page 25: Basic  Probability  &  Random Variables

There is a classic Jimmy Stewart movie, Magic Town, about "Grandview," a small town in the Midwest that is a perfect statistical microcosm of the United States, a place where the citizens' opinions match perfectly with Gallup polls of the entire nation. A pollster (Jimmy Stewart), secretly uses surveys from this "mathematical miracle" as a shortcut to predicting public opinion. Instead of collecting a national sample, he can more quickly and cheaply collect surveys from this single small town. The character played by Jane Wyman, a newspaper editor, finds out what is going on and publishes her discovery. As a result the national media descend upon the town, which becomes, overnight, "the public opinion capital of the U.S."

Page 26: Basic  Probability  &  Random Variables

Probability Sampling

Page 27: Basic  Probability  &  Random Variables

• Check http://www.socialresearchmethods.net

POPULATION PARAMETERS SAMPLE STATISTICS

To b

e fil

led

in c

lass

Page 28: Basic  Probability  &  Random Variables

Sampling Distribution

Page 29: Basic  Probability  &  Random Variables

Probability Sampling

• Random sample• Sampling error

• Four Ways to Sample Randomly– Simple Random– Systematic– Stratified Sampling– Cluster Sampling

Page 30: Basic  Probability  &  Random Variables

Random Sample

• Sampling Error:

𝑥=0.5

𝜇=0.5625

𝑥=0.75

Variation Component

Sample size Component

Page 31: Basic  Probability  &  Random Variables

Sampling Distribution and Sampling Error

Let’s first see what mathematics have to say.

1. According to Law of Large Numbers:

As sample size increases (approaches to ) sample mean approaches to population mean, in mathematical symbols

2. According to Central Limit Theorem

As the number of samples (not the sample size, this time) increases then sample mean has a normal distribution with mean and standard deviation . Mathematically we say,

Page 32: Basic  Probability  &  Random Variables

Sampling and Confidence

x

𝜇 𝑥𝑢𝑥 𝑙 𝑥

𝑥−(𝑧∗ 𝜎√𝑛 )≤𝜇 ≤𝑥+(𝑧∗ 𝜎

√𝑛 )1. Confidence information is in z.2. can be replaced by .