means, variations and the effect of adding and multiplying textbook, pp. 373-74

25
Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Upload: sterling-peeke

Post on 14-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Means, variations and the effect of adding and multiplying

Textbook, pp. 373-74

Page 2: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Adding and multiplying

• The text is on p. 373 is not tremendously clear on what’s happening here. Let’s see if we can clarify by giving an example.

• You will need to use you TI 83 or 84 calculator. Detailed instructions are presented on the slides. Make sure that your answer matches those on the display.

Page 3: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Outline

• We are going to add, subtract, and multiply a series of six numbers.

• We will calculate the mean, standard deviation, and variance of the series and compare the results.

• Hopefully this will make the text material clearer.• The series is 4 6 7 8 10 13• Starting on the next slide, we will enter this

series and then start manipulating it. The skills in using the calculator are important for further work in this course.

• As always, this PowerPoint is available on the Garfield web site.

Page 4: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Quick review (in case you’ve forgotten about lists!)

• Press the STATS button, and you should get something like this

• Press ENTER to get the list

• Enter the data, pressing ENTER between each item, and each should appear in the list

Page 5: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Add, subtract, and multiply X using the list function of the TI 83/84

• L1 now contains 6 numbers that we’ll use to compare mean (μ), standard deviations (σ) and variance (var)

• First, let’s manipulate X (the numbers you just entered) to show what happens when we add to, subtract from, or multiply a random variable

Page 6: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Finding and clearing what’s already in L2

1. Highlight L2 atop the column using the cursor keys. I’ve left some junk in here to show you how to clear it out.

2. Next, press the CLEAR key to eliminate what’s in L2. You won’t see it disappear immediately, but the cursor moves to the bottom and is ready to receive data.

Page 7: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Reminder on how to enter L1, L2, L3 etc. into formulas on the TI 83/84

TI 83+ TI 84+ • Press the “2nd” key (yellow on TI 83, blue on TI 84)

• While depressing the “2nd” key, depress the “1” key on the keypad.

• This gives you L1. To get L2, L3, L4, etc., depress the 2, 3, or 4 key, respectively

TI 83+ TI 84+ TI 83+ TI 84+

Page 8: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

L2: how to add 6i.e., L2=X+6

• You can add 6 to an existing list easily.

• Insert L1 by following the instructions on the previous slide

• Now, enter “+6” after the inserted L1 and you’re just about ready to go

Page 9: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Getting to L2=L1+3(in stat-talk, Y=X+6)

• Press the ENTER key and you should see everything in L2 replaced

• Check these values against L1, and each should be 6 more than its corresponding entry in L1 (green double arrows)

Page 10: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

L3: subtracting 3i.e., X-3

• Let’s make List 3 (L3) three less than L1, i.e., each value in L3 is 3 less than the corresponding entry in L1

• How to do: enter L3=L1-3 (repeat what we just did with L2, except on L3)

• You should end up with something that looks like the bottom screen on the left, with each entry being 3 less than the corresponding data in L1

Page 11: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

L4: multiply by 3i.e.,3X

• Let’s make List 4 (L4) three times L1; each value in L3 is 3 times as large as the corresponding entry in L1

• Clear L4 as before and enter L4=3*L1, and press ENTER

• Here’s a comparison of L4 with L1, except I copied L1 into L5. L4 should be 3 times larger than the entries in L5

Page 12: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Now, to calculate μ, σ, and var(mean, standard deviation, and variance)

• Push the STAT button to get the Statistics menu

• Use the cursor buttons to select the CALC menu at the top

• As soon as you move the cursor to CALC, you will see the following menu

Page 13: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Calculating statistics variables

• Press the ENTER key and you will get a blank screen like this

• Enter L1 to determine the which list you want the statistics on (press 2nd, followed by the 1 key on the keypad as entered earlier

• Now press ENTER, and we’ll see what we get on the next slide

Page 14: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Output from 1-VAR STATS

• After pressing ENTER, your screen should look like this

• μ=8, which the TI lists as • So where’s the VAR?• Even if we scroll down,

we only find median, max, min and IQR data

x

Page 15: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Relation between standard deviation (σ) and variance (var)

• VAR = σ2

• For TI calculators, the standard deviation calculated by 1-VAR STATS is the Sx variable

• Here, σ = Sx = 3.16227766

• σ2 in this cases therefore equals 10 (3.1622772)

• (Note that is therefore a good approximation of π)

10

Page 16: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

What next?• We are going to be

making a table to compare for each of L1, L2, L3, and L4

• You need to set up a table that looks like the one to the right, with appropriate labels

• Make a table like this one in your notes, and we’ll get the relevant statistics for you to fill in

X X+6 X-3 3X

μ

σ

VAR

Page 17: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Running 1-VAR STATS on L2

Do the same as we did on L1• Select 1-VAR STATS

after going to STAT and CALC

• Press ENTER while outlining 1-VAR STATS

• Add “L2” in the blank screen (press “2nd” key and “2” on the keypad simultaneously)

Page 18: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Results for running 1-VAR STATS on L2

• And you should get the equivalent of what we got before (see screen at left).

• Enter the data for μ, σ (Sx), and VAR in the table you created in your notes

• Remember to calculate VAR by squaring σ (Sx in the TI)

• (Notice what has changed and what hasn’t)

Page 19: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Results for L3 and L4

• Repeat for L3 and L4.• You should get screens

like this for L3....• ….and like this for L4• Be sure to copy all the

relevant data into the table, and don’t forget to square Sx to get VAR

Page 20: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Comparison of results of calculations on L1, L2, L3, and L4

• What stays the same as X is reduced or increased by addition or subtraction?

• What happens when we multiply? (e.g., L4)

• How does this correlate with what you read in the text?

X(L1)

X+6(L2)

X-3(L3)

3X(L4)

μ 8 14 5 24

σ 3.16.. 3.16..3.16.. 9.48..

VAR(σ2)

10 10 10 90

Page 21: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Explanation of calculations on L1, L2, L3, and L4

• Increasing or decreasing X does not change σ

• Multiplying X by 3 triples σ

• Multiplying X by 3 increases the VAR by 9, or 32 (variance increases by the square of multiplier)

X(L1)

X+6(L2)

X-3(L3)

3X(L4)

μ 8 14 5 24

σ 3.16.. 3.16..3.16.. 9.48..

VAR(σ2)

10 10 10 90

Page 22: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Summary of adding and multiplying X, means, standard deviation, and variances• E(X±c)=E(X)±c

• Var(X±c)= Var(X)

• E(aX)=aE(X)

• Var(aX)=a2Var(X)

X(L1)

X+6(L2)

X-3(L3)

3X(L4)

μ 8 14 5 24

σ 3.16.. 3.16..3.16.. 9.48..

VAR(σ2)

10 10 10 90

Page 23: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Let’s put the equations into words before we move on

1. E(X±c)=E(X)±c

2. Var(X±c)= Var(X)

1. If we change a random variable simply by adding or subtracting a constant, we simply add the constant to the mean of X

2. Having changed a random variable in this way, the variance DOES NOT CHANGE

Page 24: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

Let’s put the equations into words before we move on

3. E(aX)=aE(X)

4. Var(aX)=a2Var(X)

3. If we change a random variable by multiplying it by a constant, the new mean is simply the constant times the original mean before multiplication

4. When we change a random variable by multipying by a constant, the variance increases by the square of the constant

Page 25: Means, variations and the effect of adding and multiplying Textbook, pp. 373-74

So why do we even care?Answer: to save ourselves a LOT of work• If we add or subtract from X, we don’t have to

recalculate ANYTHING.– The variance doesn’t change (nor does the standard

deviation, since σ=VAR½

– The mean increases by whatever we added or subtracted

• If we multiply X by a constant a, the new mean is just a times the original mean, and the VAR is now the old VAR times the square of the constant a (i.e., multiply VAR by a2)

• THIS MEANS WE DON’T HAVE TO DO ANY LABORIOUS CALCULATIONS!

</end of slide show>