1 since everything is a reflection of our minds, everything can be changed by our minds

26
1 Since everything is a reflection of our minds, everything can be changed by our minds.

Upload: lindsay-gilmore

Post on 04-Jan-2016

221 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1 Since everything is a reflection of our minds, everything can be changed by our minds

1

Since everything is a reflection of our minds, everything can be changed by our minds.

Page 2: 1 Since everything is a reflection of our minds, everything can be changed by our minds

2

Random Variables

Section 4.6-4.14Types of random variablesBinomial and Normal distributionsSampling distributions and Central limit theoremRandom samplingNormal probability plot

Page 3: 1 Since everything is a reflection of our minds, everything can be changed by our minds

3

What Is a Random Variable?

A random variable (r.v.) assigns a number to each outcome of a random circumstance.

Eg. Flip two coins: the # of heads

When an individual is randomly selected and observed from a population, the observed value (of a variable) is a random variable.

Page 4: 1 Since everything is a reflection of our minds, everything can be changed by our minds

4

Types of Random Variables

A continuous random variable can take any value in one or more intervals. We cannot list down (so uncountable) all possible values of a continuous random variable.

All possible values of a discrete random variable can be listed down (so countable).

Page 5: 1 Since everything is a reflection of our minds, everything can be changed by our minds

5

Distribution of a Discrete R.V.

X = a discrete r.v. x = a number X can take The probability distribution of X is:

P(x) = P(Y=x)

Page 6: 1 Since everything is a reflection of our minds, everything can be changed by our minds

6

How to Find P(x)

P(x) = P(X=x) = the sum of the probabilities for all outcomes for which X=x

Example: toss a coin 3 times

and x= # of heads

Page 7: 1 Since everything is a reflection of our minds, everything can be changed by our minds

7

Expected Value (Mean)

The expected value of X is the mean (average) value from an infinite # of observations of X.

X = a discrete r.v. ; { x1, x2, …} = all possible X valuespi is the probability X = xi where i = 1, 2, …The expected value of X is:

i

ii pxXE )(

Page 8: 1 Since everything is a reflection of our minds, everything can be changed by our minds

8

Variance & Standard Deviation

Variance of X:

Standard deviation (sd) of X:

i

ii pxXV 22 )()(

i

ii px 2)(

Page 9: 1 Since everything is a reflection of our minds, everything can be changed by our minds

9

Binomial Random Variables

Binomial experiments (analog: flip a coin n times):

Repeat the identical trial of two possible outcomes (success or failure) n times

independently The # of successes out of the n trials

(analog: # of heads) is called a binomial random variable

Page 10: 1 Since everything is a reflection of our minds, everything can be changed by our minds

10

Example

Is it a binomial experiment? Flip a coin 2 times The # of defective memory

chips of 50 chips The # of children

with colds in a family of 3 children

Page 11: 1 Since everything is a reflection of our minds, everything can be changed by our minds

11

Binomial Distribution

= the probability of success in a trial n = the # of trials repeated independently Y = the # of successes in the n trialsFor y = 0, 1, 2, …,n, P(y) = P(Y=y)=

Where

yny

yny

n

)1()!(!

!

1)...2)(1(! nnnn

Page 12: 1 Since everything is a reflection of our minds, everything can be changed by our minds

12

Example: Pass or Fail

Suppose that for some reason, you are not

prepared at all for the today’s quiz. (The quiz is

made of 5 multiple-choice questions; each

has 4 choices and counts 20 points.)

You are therefore forced to answer these

questions by guessing. What is the probability

that you will pass the quiz (at least 60)?

Page 13: 1 Since everything is a reflection of our minds, everything can be changed by our minds

13

Mean & Variance of a Binomial R.V.

Notations as before

Mean is

Variance is

n

)1(2 n

Page 14: 1 Since everything is a reflection of our minds, everything can be changed by our minds

14

Distribution of a Continuous R.V.

The probability distribution for a continuous r.v. Y is a curve such that

P(a < Y <b) = the area under the curve over the interval (a,b).

Page 15: 1 Since everything is a reflection of our minds, everything can be changed by our minds

15

Normal Distribution

The most common distribution of a continuous r.v.. The normal curve is like:

The r.v. following a normal distribution is called a normal r.v.

Page 16: 1 Since everything is a reflection of our minds, everything can be changed by our minds

16

Finding Probability

Y: a normal r.v. with mean and standard deviation

1. Finding z scores

2. Shade the required area under the standard normal curve

3. Use Z-Table (p. 1170) to find the answer

y

z

Page 17: 1 Since everything is a reflection of our minds, everything can be changed by our minds

17

Example

Suppose that the final scores of ST6304 students follow a normal distribution with = 80 and = 5. What is the probability that a ST6304 student has final score 90 or above (grade A)?

Between 75 and 90 (grade B)? Below 75 (Fail)?

Page 18: 1 Since everything is a reflection of our minds, everything can be changed by our minds

18

Sampling Distribution

A parameter is a numerical summary of a population, which is a constant.

A statistic is a numerical summary of a sample. Its value may differ for different samples.

The sampling distribution of a statistic is the distribution of possible values of the statistic for repeated random samples of the same size taken from a population.

Page 19: 1 Since everything is a reflection of our minds, everything can be changed by our minds

Sampling Distribution of Sample Mean

Example: suppose the pdf of a r.v. X is as follows:

Its mean and variance

19

x 0 1 3

f(x) 0.5 0.3 0.2

Page 20: 1 Since everything is a reflection of our minds, everything can be changed by our minds

Sampling Distribution of Sample Mean

20

All possible samples of n=2:

Page 21: 1 Since everything is a reflection of our minds, everything can be changed by our minds

Sampling Distribution of Sample Mean

21

Page 22: 1 Since everything is a reflection of our minds, everything can be changed by our minds

Sampling Distribution of Sample Mean

22

Page 23: 1 Since everything is a reflection of our minds, everything can be changed by our minds

23

Central Limit Theorem

nyy / and

When n is large, the distribution of y is approximately normal.

Page 24: 1 Since everything is a reflection of our minds, everything can be changed by our minds

24Central Limit Theorem Central Limit Theorem (uniform[0,1])(uniform[0,1])

Page 25: 1 Since everything is a reflection of our minds, everything can be changed by our minds

Normal Approximation to Binomial Distribution

The binomial distribution is approximately normal when the sample size is large enough:

Continuity correction

25

5;5 nn

Page 26: 1 Since everything is a reflection of our minds, everything can be changed by our minds

Others

Random sampling and Normality checking are in Lab 2

Poisson Distribtion

26