Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can...

27
Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable. I can calculate expected winnings. 6.2a h.w: pg 356: 27 – 30, 37, 39 - 41, 43, 45

Transcript of Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can...

Page 1: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Linear Transformation and Statistical Estimation and the Law of Large NumbersTarget Goal:I can describe the effects of transforming a random variable.I can calculate expected winnings.

6.2a

h.w: pg 356: 27 – 30, 37, 39 -41, 43, 45

Page 2: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Mean and Variance for Continuous Random VariablesFor continuous probability distributions, x and x can be defined and computed using methods from calculus.

The mean value x locates the center of the continuous distribution.

The standard deviation, x, measures the extent to which the continuous distribution spreads out around x.

Page 3: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

A company receives concrete of a certain type from two different suppliers.Let x = compression strength of a randomly selected batch from Supplier 1

y = compression strength of a randomly selected batch from Supplier 2

Suppose that x = 4650 pounds/inch2 x = 200 pounds/inch2

y = 4500 pounds/inch2 y = 275 pounds/inch2

The first supplier is preferred to the second both in terms of mean value and variability.

45004300 4700 4900

y x

Page 4: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Suppose Wolf City Grocery had a total of 14 employees. The following are the monthly salaries of all the employees.

The mean and standard deviation of the monthly salaries are

x = $1700 and x = $603.56

Suppose business is really good, so the manager gives everyone a $100 raise per month. The new mean and standard deviation would be

x = $1800 and x = $603.56

3500 1200 1900 1400 2100 1800 1200

1300 1500 1700 2300 1200 1400 1300

What happened to the means?

What happened to the standard deviations?

What would happen to the mean and standard deviation if we had to deduct $100 from everyone’s salary because of

business being bad?

Let’s graph boxplots of these monthly salaries to see what happens to the distributions . . .

We see that the distribution just shifts to the right 100 units but the spread is the same.

Page 5: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Wolf City Grocery Continued . . .x = $1700 and x = $603.56

Suppose the manager gives everyone a 20% raise - the new mean and standard deviation would be

x = $2040 and x = $724.27

Notice that both the mean and standard deviation increased by 1.2.

Let’s graph boxplots of these monthly salaries to see what happens to the distributions . . .

Notice that multiplying by a constant stretches the distribution, thus, changing the standard deviation.

Page 6: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Mean and Standard Deviation of Linear functions

If x is a random variable with mean, x, and standard deviation, x, and a and b are numerical constants, and the random variable y is defined by

and

y a bx

2 2 2 2 or

y a bx x

y a bx x y x

a b

b b

Page 7: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Consider the chance experiment in which a customer of a propane gas company is randomly selected. Let x be the number of gallons required to fill a propane tank. Suppose that the mean and standard deviation is 318 gallons and 42 gallons, respectively. The company is considering the pricing model of a service charge of $50 plus $1.80 per gallon.Let y be the random variable of the amount billed.

What is the equation for y?

What are the mean and standard deviation for the amount billed?

y = 50 + 1.8(318) = $622.40

y = 50 + 1.8x

y = 1.8(42) = $75.60

Page 8: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Linear TransformationsPete’s Jeep Tours offers a popular half-day trip in a tourist area. There

must be at least 2 passengers for the trip to run, and the vehicle will hold up to 6 passengers. Define X as the number of passengers on a randomly selected day.

Transform

ing and Com

bining Random

Variables

Passengers xi 2 3 4 5 6

Probability pi 0.15 0.25 0.35 0.20 0.05

The mean of X is 3.75 and the standard deviation is 1.090.

Pete charges $150 per passenger. The random variable C describes the amount Pete collects on a randomly selected day.

Collected ci 300 450 600 750 900

Probability pi 0.15 0.25 0.35 0.20 0.05

The mean of C is $562.50 and the standard deviation is $163.50.

Compare the shape, center, and spread of the two probability distributions.

Page 9: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Linear Transformations

How does multiplying or dividing by a constant affect a random variable?

Transform

ing and Com

bining Random

Variables

Multiplying (or dividing) each value of a random variable by a number b:

• Multiplies (divides) measures of center and location (mean, median, quartiles, percentiles) by b.

• Multiplies (divides) measures of spread (range, IQR, standard deviation) by |b|.

• Multiplying does not change the shape of the distribution.

Multiplying (or dividing) each value of a random variable by a number b:

• Multiplies (divides) measures of center and location (mean, median, quartiles, percentiles) by b.

• Multiplies (divides) measures of spread (range, IQR, standard deviation) by |b|.

• Multiplying does not change the shape of the distribution.

Effect on a Random Variable of Multiplying (Dividing) by a Constant

Note: Multiplying a random variable by a constant b multiplies the variance by b2.

Page 10: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Linear TransformationsConsider Pete’s Jeep Tours again. We defined C as the amount of

money Pete collects on a randomly selected day.

Transform

ing and Com

bining Random

Variables

It costs Pete $100 per trip to buy permits, gas, and a ferry pass. The random variable V describes the profit Pete makes on a randomly selected day.

Collected ci 300 450 600 750 900

Probability pi 0.15 0.25 0.35 0.20 0.05The mean of C is $562.50 and the standard deviation is $163.50.

Compare the shape, center, and spread of the two probability distributions.

Profit vi 200 350 500 650 800

Probability pi 0.15 0.25 0.35 0.20 0.05

The mean of V is $462.50 and the standard deviation is $163.50.

Page 11: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Linear Transformations

How does adding or subtracting a constant affect a random variable?

Transform

ing and Com

bining Random

Variables

Adding the same number a (which could be negative) to each value of a random variable:

• Adds a to measures of center and location (mean, median, quartiles, percentiles).

• Adding does not change measures of spread (range, IQR, standard deviation).

• Does not change the shape of the distribution.

Adding the same number a (which could be negative) to each value of a random variable:

• Adds a to measures of center and location (mean, median, quartiles, percentiles).

• Adding does not change measures of spread (range, IQR, standard deviation).

• Does not change the shape of the distribution.

Effect on a Random Variable of Adding (or Subtracting) a Constant

Page 12: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Summary: Linear transformations

Shape: same as the probability distribution of X.

Center: Spread:

y xa b

Y Xb

Page 13: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Recall:Statistics obtained from probability samples are random variables because their values would vary in repeated sampling.

is an estimate for μ. If we choose a different random sample, the

luck of the draw will probably produce a different x

x

Page 14: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Law of Large Numbers Draw independent observations at random

from any population with finite mean μ. As the number of observations increases,

the sample mean approaches mean μ of the population.

The more variation in the outcomes, the more trials are needed to ensure that is close to μ.

Page 15: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

The law of large numbers in action

Suppose the mean is 64.5. What do you notice about the distribution? As we increase the size of our sample, the sample mean

always approaches the mean μ of the population!

Page 16: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

What type of businesses use law of large numbers for pricing ect?

Casinos Insurance Fast food restaurants

Averaging over many individuals produces stable results.

Page 17: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Law of Small Numbers Most people incorrectly think that short

sequences of random events show us the kind of behavior that appears only in the long run.

Write down a sequence of heads and tails for 10 tosses.

Page 18: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

What was the longest run of heads or tails? What do you think the probability of a run of

3 or more heads or tails in 10 is? The probability is > 0.80!

Page 19: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

The probability of both a run of 3 heads and 3 tails is almost 0.2.

Most sequences in the short run don’t seem random to us.

In the long run, they “even” out to the expected mean.

Page 20: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Example: The “Hot Hand in Basketball”

If a basketball player makes several consecutive shots, what do you believe?

She has the hot hand and should make the next shot? or,

She is “due” to miss?

Page 21: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Neither: Random behavior says each shot is

independent of the previous shot. Over the long run the regular behavior

described by probability and law of large numbers takes over.

Example: casinos – the mean guarantees the house a profit.

Page 22: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Exercise: A Game of Chance The law of large numbers says that if we

take enough outcomes, their average value is sure to approach the mean of the distribution.

Would you take this wager … ?

Page 23: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Toss a coin 10 times If there is no run of three or more heads or

tails in the 10 outcomes, I’ll pay you $2. If there is a run of 3 or more, you pay me

$1.

Page 24: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Simulate enough plays of the game to estimate the mean outcome.

The outcomes are +$2 if you win and -$1 if you lose.

Is it to your advantage to play ?

Page 25: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

To simulate: MATH:randint(1,2,10) store in L1 Tally and record L, the length of the longest

run of heads or tails per trail. Do 20 trials

Page 26: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

Calculate your mean winnings.

P(W) = P(1 or 2 in a row, not 3 in a row)

P(L) = 1 – P(W) Expected outcome: $2P(W) + -$1P(L)

Fill in table and report back.

Page 27: Linear Transformation and Statistical Estimation and the Law of Large Numbers Target Goal: I can describe the effects of transforming a random variable.

What is your expected outcome?

The actual expected outcome is: μ = ($2)((0.1738) + (-$1)(0.8262)

= -$0.4785 On the average you would lose about 48

cents each time you play.How close we come to this depends on how many trails.

Let’s pool the class results and recheck.