4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011...

12
DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR . Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability and Statistict.. . . . INSTITUTION Hope Coll., Holland, MiCh._ . SPANS AGENCY National Science Foundation, Washington-, D.C., PUB DATE Jdn 73' . NOTE 11p.; Paper presented at the Conference on Computers in the Undergraduate Curricula-(Claremont,: California, June 1e-20, 1973) EDRS PRICE MFz$0.65 HC-$3-.29 DESCRIPTORS College Instruction; *College Mathematics; Computer Assisted_InstrUction; *Computer Based Laboratories; Higher Education; Mathematics- Instruction; - *Probability Theory; Program Descriptiops; Speeches; - *Statistics; StudentAttitudes -- IDENTIFIERS Hbpe College; IBM 1130-Computer . . ABSTRACT A ptoject-conc#inediath-the.modifiaation-of a =Mathematical pkobabiiit-k and- statittidscOUtse_ is described._The -CO--Ai-tie was redesigned -to include- a.Week4-00:_hoUr-libpratory session 411;Which-students-use-an IBM 1110-cOniputer tb_iteiify:e0pikically-the -e0retical pOofs,rearned: in tbLe_clitSroom.--_Thia project report i=the eutirontines-fntniihed-to-the=ttOdents-and-the-topicsHof each of the 15 lab sessions. In additiohl:deediipti:opt of three- 1Abbratory-exerOises are given bymay_of.iiluetkationi fOlikpmed by a =summary -of student,teactiOnt and fadOity attitudes toward the use-of ;the cothpUtet fot ldboratOry siori..(LB)

Transcript of 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011...

Page 1: 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR. Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability

DOCUMENT RESUME

ED_ 079'985 EM 011 3564 ,

AUTHOR . Tanis, Elliot A._TITLE 'A computer Laboratory for Mathematical Probability

and Statistict.. ..

.

INSTITUTION Hope Coll., Holland, MiCh._ .

SPANS AGENCY National Science Foundation, Washington-, D.C.,PUB DATE Jdn 73' .

NOTE 11p.; Paper presented at the Conference on Computersin the Undergraduate Curricula-(Claremont,:California, June 1e-20, 1973)

EDRS PRICE MFz$0.65 HC-$3-.29DESCRIPTORS College Instruction; *College Mathematics; Computer

Assisted_InstrUction; *Computer Based Laboratories;Higher Education; Mathematics- Instruction; -

*Probability Theory; Program Descriptiops; Speeches;- *Statistics; StudentAttitudes --

IDENTIFIERS Hbpe College; IBM 1130-Computer. .

ABSTRACTA ptoject-conc#inediath-the.modifiaation-of a

=Mathematical pkobabiiit-k and- statittidscOUtse_ is described._The-CO--Ai-tie was redesigned -to include- a.Week4-00:_hoUr-libpratory session411;Which-students-use-an IBM 1110-cOniputer tb_iteiify:e0pikically-the-e0retical pOofs,rearned: in tbLe_clitSroom.--_Thia project report

i=the eutirontines-fntniihed-to-the=ttOdents-and-the-topicsHofeach of the 15 lab sessions. In additiohl:deediipti:opt of three-1Abbratory-exerOises are given bymay_of.iiluetkationi fOlikpmed by a=summary -of student,teactiOnt and fadOity attitudes toward the use-of;the cothpUtet fot ldboratOry siori..(LB)

Page 2: 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR. Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability

FROM BEST*AVAILABtE COPY'

rtA Co".fer-evIce b% Co 4,1944 i'ersPA) /Wed i" Proceedi'njr 04:

#01.e .TA e fey- 49, / 734. L: /eAremift Ct"A COMPUTER LABORATORY FOR MATHEMATICAL PROBABILITY AND STATISTICS*

Elliot A. TanisHope College

Holland; Michigan 49423(616) 392-:5111-

1 . . .For a number of years the junior- senior level mathematical probability and statistics'course at Hope College- was a two semester course - meeting for lecture and discussion threeperiods per lure,O., This -project*-concerns,itself with a modification of.the.courseso.that alaboratory which meets two hours each week is an integral paft °fit. one hour of Credit._ isgiven-each semester for this, laboratory which makes*extensiie use of our IBM 1130 computer.'

*.

.

.___, .

The deve16-Pient of the laboratory materials is taking place over a 27 month periO4, 'June, 1971, through August, 1973. Atthe 1972 Conference on Computers in the UndergraduateCarr icdfathis-projedt_was described and a listing of the laboratories for the first semesterwas giiev[ i]. We are now able to list the laboratotiee for the -Second semester, describesome of them, and give a better overall evaluation.ofthe laboratory. . *.

,

Laboratotx DesCriplion'

In' the laboratory-the students illuttrate empirically many of the theoretical conceptswhich are- proved in the classtoom. By writing computer ,programs they gain a better -anddeeper understanding of the theory.- In addition they become aware of the capabilities of-thecomputer for= analyzing data..

r We generally -spend the first hour of the laboratorydiscussing. the assignment of theprevious Week and introducing the new assignment. The second hour of the laboratory is usedto design and.writi the program. The format.of the laboratory, would probably be'different-ifthe e-students had access to -terminals.

Several subroutines are furnished for the students. These includp:

(1) a random .numbet generator,

(2) plotting .subroutines for (a) empirical- and theoretical distribution functions,(b) relative frequency histograms and ,probability density. functions, and (a)scatter diagrams with the option of adding the least squares regression line-,

A3) programs which give values of a number of distribution functions, and(4) subroutines which select random samples from the standard distributions.

Phe following listing gives the topics covered.in each of the 15 laboratories during thesecond semester. In section 3 we shall describe three experiments.

U S DEPARTMENT OF HEALTH,EDUCATION SWELFARFNATIONAL INSTITUTE OF

EDUCATIONTHIS 'DOCUMENT HAS SEEN REPRODUCED' EXACTLY AS NecEtveo ;NomTHE PERSON OR ORGANIZATION ORIGINA10.0 IT POINTS OF VIEW OR OPINIONSSTATED DO NOT NECESSARILY REPRESENT OFFICIALNATIONAL INSTITUTE OFEDUCATION POSITION OR POLICY

Page 3: 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR. Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability

=

Ii

H

Laboratory

1

2

3

Topics

Transformations of Random Variables, Cauchy Distribution, N(0,1)Distribution Using Box-Muller Method.

chi-square and Beta Distributions.

?unctions. of Independent and Identically Distributed Normal mendo,Variables.

4 . The t.and r Distributions.

5 Convergence in Probability; Convergence in Distribution.

6 Central Limit Theorem.

7 Normal Approximations for the Binomial Distribution.

8 Estimation.

9 Confidence intervals for Means and Variances;

Confidence Intervals.f or.Proportions.

'11 Tests of SimpleBypotheses.

-12 Thi Power Ptnction.

13 Analysis of variance.

14 A Test of the Equality of Multinomial Didtributions.

15 order Statistics.

LabordtorxExamies

We shall give a brief description of.. parts of three latoratories.

Laboratory 4 - The t and F Distributions: A t random variable with r = 8 degrees offreedam is'defined,by

Z.T =

497Nwhere Z has a normal distribution with seaniu=0 and variance c72 =1 thereafter N(0,1)1, U has achi - square distribution ith r=8 degrees of freedom [hereafter 1L2(8)),' Z and U are

independei. -

fhe students are able to simulate samples from both the normal and chi-square

distributions. Thui they are able to simulate n=300 observations Cf r and obtain a histogramsimilar to that shown in Figure 1. -This is' a relative.freguencyhistOgram iriti the;mobability density function for the t distributionNit* r=8 degrees of freedom

-

superiiposed.-

The importance of the t distribution is its use in normal sampling. To illustrate this,

let X1' 2

X2, . -X be a random sample front a distribution which is N(30,16). Then

-30

(x,i-x)( 8) (8)

has a t distribution with r=8 degrees of freedom. A random sample-of size n =300 observationsof T, generated using this ielaticnship, yielded the hiStOg.rim in Figure 2.a

Students are able to raise arid partially answer questions concerning the hypotheses of

certain theorem's. ?or-example, what if theyando sample in the above exercise does, not come

from a normal distribution. Does T defined above still have a t distribution?

3r suppose the sample does coke from a normal distribution. What effect does roundingoff the observations have.on the distribution of T? This question was investigated by one of

Page 4: 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR. Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability

11

011'

110,

6111

111O

Pyv

q,,,m

1vo

11

Q.4

/00.460 .*

0.'450

'Ir.

0.440

*0.430

*

0.420 A

0.410

*

0.400

*

0.390

*

0.380

*

0.370

*

0.360

*

0.350

*

0.340

.*

0.330

*'

47-

,, ,

,,,,1

1,11

TL,

,wrm

,ri u

r,,,,

,001

1V, ;

4, ,M

1114

,4I,1

.1,q

1.11

,1,A

p#11

.,,,,,

,..,,,

,, ,

,,.

.rir,

,ry

11"1

"'',

++*XXIC

4.0t4.44x+4.t424.4.44.

XX+++++XX++++++,

Xt++++++++X*,4 4.44

X +++++4++++x++++

X+++++++++++X+++

0.320

*++++4++++++++++

0.310

*X'

+44++++++++44++

0.300

sle

4.1.44 +++++++44.4.4.

0.290

*x++4.4..1.++++++.4.4.4.4.+x+

0.280

*4.4.41.++++++++++++++++.4.4.

0.270

*4.41.44x+++4.44.4.+++++++++++40X

0.260

*4.49.x++4,4.4.4.444.4.4.4.4.4.+++++++X

0.250

*++++++++++++++.1k4.4.4.4.4.4.41.+++

0.240

*.

....x4. ++++++++.444+++#4 **** X

0.230

*.11.444.4.4.+++++4."4.444.44.4.111.4t4.41.

0.220

*+Xt+++++++++++++++++44+++

0.210

*+4.11.4 11.41.4.4.4.444.4.11.t4+++++++

0.200

*x4.4.4.4.++++4.++++44++++4.+44.4.44.4.x+

0.190

*+++++44+++++44+,4.4.4.4.444.4444++++

0.180

*X*44 ++++++ 4.4:+4.4.4.+4.4.4.4.4.4.44+++4"4.X

0.170

X 4.44++++44++++++++1.44++++++++++X

0.160

'to

++++++++++++++44++++++++++++++

4.150 A

4.4.x4++++++++++++++++++,+++4++++++4++X

0.140

*4.x+4.4.4,*++.+4.4.4.4.+++.1.4,+++++++++++++44+

X"

0.130

*'4.4.4.4.4.+++++++++++++++++t+++44.4.,4.+++++

0.12C

*x++++++4.t.4.4444.44++++++++++++++++++

1.110

!x4.4.411.41.4+++++4444.4444A++++++444 +++++ r

0.100

*X +++++++++++t++++4.4.444.4.44+++++++++++

X0.090

*x °++.4.4.4.+444++++++4.t++++++++++++++++4.

X"

0.080, *

X++++4.4.4.4.4.4.4.4.,,+++++++++++++++++++++.4.4,444.4,4.4.X++

0.070

*x+4.++++4.4.4.++++++++1.4.+++++++4.4.+4.4.1 ++, ++++ 4.4.#4.4.4.4.4.+Xt

0.060

XX4.4.4.4.44.4.444. *+++tt++++++1.4.4.tm++++.4.4.44444+4.4.4.444.*XX

0.050

*x

4...++++++++4++++++++44.4.4+4.4.44.4.+++.144 ++++4.t+++++++++ X

0.040

*4444 41.xx

++++++++,..4..11.4.4.4.4111.4.11.444.4.4.4.14.4.44.++++++++++.11.f++++++44.4 11.4.44x4

u.030

*4.+XXX44.4.+++++++++++++++++++++++++++4.440.44++++++++++4.4.4.++++++++.+XXX+++

0.020

4+4.4.4

4.4.+XXXX++4++++++++++++++++++++++++++++++4++++++++++++44+++++4++.0.4.4.++++++XXXX

0.010

*41.+44,++++4.xxx+++4.4.441.+++++++t,t11.4.41.4.4.++++++41.4.4.4.++++++4.+11.444.4i4++.4.t++++++++++4.4.+4.4.1144.11.4.11.11. XXX +++.41.44.1164.

0.000 .1XXXAIXXXXI****I****1****1****1****1****I****1****1****1****1****1*******,I4***1****I****IXXXXIXXXXI

1-4.00

:-3.20

-Z.40

. -160

-0:80

'

-0.'00

'I''u.80

,1.60

,

2.40

.3.20

4.00

FREQUENCIES 2

12,

53

818

33

35

48,

46

46

24

99

5'

40

'

/1

ID

THE SAMPLE MEAN AND.SAMPLE VARIANCE ARE

- 0.0716 ANO

'1.2668

PIN- FOR A I DISTRIBUTION KITH 8 DEGREES OF FREEDOM.

111

.FIG

UR

E 1

111

1,111:1,,

Page 5: 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR. Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability

NliN

OM

'tIM

II4,

111

11

11

0.500

*

0.490

0.480'

0.410

0.460

*

0.450

*

0.440

*

0.430

lc'

0.420

*

u.410

*

0.400

30'

0.390

*

0.380

*0.370

*

0.360

*

u.350

*'

0.340

*

0.330

*

0.320

*

0.310

*

0.300

*

0.290

10'

0.280

*0.270

*0.200

*

0.250

*t

0.240

*

0.230

*0.220

*.

0.21

0A

0.200

*

0.19

0*0

0:180

0.17

0*

0.160

*

0.150

*0.140

0.130

*

0.120

*

0.110

*

0.100

*0.090

*

0.080

10

0.070

41

0.060

*

0050, *

0.040

0.030 '

0.020

*0.010 '*

0.00

0IX

XX

XIIX

XX

ImP

l***

*,,1

****

P0*

**1*

***1

****

181*

**1*

**11

****

1***

,

1111

111W

OI

1.4m

UM

W11

4.11

4.4.

,4=

41gg

WIZ

I.1r

1Arr

r=1;

aMm

re,f

tOrl

rg41

404.

4ry,

1MI.

M11

1M40

144.

0440

444.

,.,11

1

11

11

111

. +4444

......

+4444.

x+++XXX

X ++ ",X

'ii

444 ..44+44

x..........X

X

X+44+4+4444 X

.4 ....44444

.x....444 .........x44

++++++..............

X..................x.

4444444444.4.44.4444

xv...................x

x -.4.4.4.44.4444.44.44.44

I

.............44.44.t

n

..

X............44444..

14+++++4..+4+++++44.;

X.....................si

X

+4,444444444+++++.14%

X.........44"..........444444x.

.

4+++++++.+4.444++++4 4.+4.+++'

x........................x.....

.X

0++

4.4t

4.44

444.

44.4

.++

++

++

t1.4

X...

++

+11

+44 ++++++++4.4 ..4 ..+4+444 +444.+44

441.44444.44........44 .4 ...4........x...

.x..........444..................."...x..

...........444.......44 ....4..44 ....4....

.x+44444.444.44.+44.444..4..4.44 ++ 44. + ..x.

X++.44.....44++.4...44 44..4 +4 +4444 .....^

'X

++

++

++

04+

0004

++

1++

+40

00+

++

++

++

++

+ +

++

++

++

4X

II

.

xx

'

+4,....++.+t.....1.4.,+4.....++.4.4.4.+.4++4++4:++ X

44444.4444,444 . 4 4.44. 44.4 4444.444444x..

.

X+

++

+40

.044

++

++

++

++

++

++

++

++

++

++

++

+,t+

++

++

++

++

++

,X0

11

XX++++++++++++++++444.444444.444444 444.44.44.14.4 4e44XX

..

44444

X4444.4444444.44++++.4.44. +++++ .44....................x........

.....xx...............444444.............444444.14................xx...44.

4444.44XXX44.....4..........44444........4.44.44.44................+..xXX.44

...Xxxx.......................v................................44.4444.0sxxx....

. XX

X+

++

++

++

,1+

*++

++

++

++

i++

++

+4+

++

++

,+44

++

?..+

++

++

++

++

++

+X

XX

++

+**

14.7

**1*

**A

1***

*1**

**11

0.**

*IX

XX

XIX

XX

XI

11

Irr

111,

1",1

111'

,11,

1411

0111

1,ill

1

111

-..0

0-3

.20

-t.40

-1.6U

-0.80

'

, -0.09L

,, 0.80

,1.60

t.40,

3.20

4.00

FE

QU

EIC

IES

0'

04

65

a'

lb

'

18

37

53

'

44

37,

24

22,

9.6

624

10

$

TmE SAMPLE.MEAN AND SAMPLE VARIANCE ARE

0.0362040

POF FOR

I DISTRIBuTION wITmq8 DEGREES OF FREEDOM.

11

6.0w

W4m

,

!.,4,

1A,4

16r.

Page 6: 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR. Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability

11/1

1q0,

0111

,,mrq

ww

m,..

,4

11

,,

n00

00,0

,0t

000

111.

0, .1

0 11

111.

0,m

yhr,

11,1

«,:'

VM

101,

111.

401T

1.1,

q111

111,

H H

11q1

,111

1X1,

.rw

,thM

iqP

In.,,

,Otn

i11+

i,ov

rlop

iq,"

,"13

",",

,"po

rpur

0.451!

00.841

111

+++++

01N

I,'

0.824

*

0.806

*

0.789

*11

11

0.772. *

+4.11.44441.44

0.755

*+

4444

44+

44

0.738

*.

4+11

.44+

#4.4

.4.

0.721

*11

HH

+++++++4.4.40,

0.703

*11

1

4.44.4.44+++4.

0.686

*

0.669

*JO

0.652

*

0.635

*

0.618

*t

4444+44444

0.600

*i

'44.444.4.44+

01

0.583

*444444444+

0.566

*44444444.44

0.549

*1

040

444.

444.

44.4

110.532

***********

0.515

*.

.

4444444444

0.497

*.

+444444444.

0.480

*4444444444.,

0.463. *

4444.4.4444

0.446

*4444******

0.429.

*++++++++++

44+4444444

0.412

,++++++++++

4444444444

0.394

.*

4444444***

XXXXXXXXX

i44t4.4.4.4444

0.377

*4444+444++

XX

XX

0.360

*4444444444 XX

XX

*444444444

0.343

*4.444444444x

X44+44+4444

0.326

*++++4+++XX

x7/4444+4444

0.309

*44.44444x++

0.291

0++++++X+++

,44x4.444.444.

9.274 °*

.++++XX++++

4.44XX4.4444

0.257

*444.44444444.44.x+444.44

444.44x4444

.,

.0.240

*444444444444X+++++++

.

444444X+44

0.223

*.

+4.444.444444x44444.444

44444.44x44

0.206

*.

4444444444X44444444*

+444444444.

0.188

*********XX*.**+++*"

4.44444444Xx

11

0.171

*4444444X+44444444444

44.144.44+44

X

f0.154

*44444x************

1

.+

44,4

.4.4

4+4

X01

t 11

0.137

*

0.120

40,

0

4444XX444.4444.4444444.

a

4.44X4444444.4444444444444444444

.

4+44+444+4

444+444444

XXX.

0.103

**xx*********444444444444444444

+++++'4444

XX

0.085

*.

XX********444444444444)44444444

4.44, +4444.

XX

001

0.068

*XX

44444.4444444.4444444444444444

444444444+

XX

110.051

*XXX

++++++++++++++++++++++++++++++

444444444

XXX

.

0.034

*XXXX

444444444444444444444t4444+444

444444444

XXXX

111

0.017

tXX

44444444.44.44444444444t44444444

+444444444

.XX

00000

1,1

J,1

1r

-3.00

-2.40.

-1.80

-1.10

-0.60

-0.00

0.60

1.20

1.80

2.40

3.00

FREQUENCIES

00

30

52

15

0103

'

0.

00

1

.

THE SAMPLE MEAN AND

SAMPLE VARIANCE AR k

0.0174 AND

'1.0092

Na

1

01

11

01. FIGURE 3

IA

it

Page 7: 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR. Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability

our students using different* Combinations of the variance, sample size, and round offaccuracy (2].

Laboritor 6 - The Central Limit Theorem: (This particular example was sotivated by thework of two Hope College students (3,4].)

Tits _experiment 'illustrates the Central_Lieit Theorem and gives students some feelingfor lebiding when n is "sufficiently largee tor using the normal approximation. Thisparticular example also helps to emphasize that the Central Limit Theorem is applicable tocontinuous,-discrete, and mixed distributions.

:onsider the following game. 'Flip a coin. rE the outcome is heads, *in $2: if theoutcome is tails, spin a balanced spinner which his outcomes between 0 and 1 with the payoff'equal to the outcome on the spinner. Let X denote&the payoff for this game. 'Then X has a-mixed eistribetion,p=5/44 az=29/48. Let XI, X2, . . . , Xn denote the outcomes on nindependent plays of this game. Then . AW

v 5/4-.WM .

converges in distribution to the- random variable V which is le(0,1) .

-In the laboratory we would ilrnstrate that TMn has a-distribution which is approximatelyS(00) vhen n is sufficiently large. In this paper we shall use two values of n,- n=1 andn=13: This game vas simulated'200 times yielding 200 observations of VI. The histogram of

--these datA is plotted in Figure 3,:eith the probability density function -for the normallittribution,p=0,. 442=1 superimposed. An observation of.the random variable 413 is Simulatedusing- 13 independent plays of the game. Thus 200 observations of Um are- based _upon 2600plays of the game. The hittogram of 200 obiervailons of V13 is given in Figure 4 with them(0,1) probability density function superimposed. The empirical -distribition- function for

the first 25 observations of 413-is plotted along with fhe V(0,1) iistribetion function inFigure 5. .

Let ill,- X2, . . , Xn denote a random sample of size n from a distribution which hasseenp and variance ez. Let

V =n' 0,6117

A "rule of thumb" given in many -textbooks is that Nn -has a distribution which isapproximatelre(0,1) when n is greater than 25 or 30. Using the techniques learned in theabove- and similar exercises, a student.ii able to test thisA0rule of thumb', empirically forserveral-distributions.

Laboratory 12 - The Power Function: This laboratory illustrates the power-function boththeoretically and empirically. We shall describe the particular exercise which uses a test

oh the variance..;

Get X have a normal distribution with mean)u and variance az. we shall test the nullhypothesis-110:a2=47.5 against the alternative hypothesis-111:0,<47.5.

If the test is based upon a sample of size n=10, a critical region for a significancelevel of

JD

kA=0.05 is c.((xl,-y.f, . . x10):i:(xi

2/117.5 <'3.325).

The power function for this test is defined by

se

(Z) = p

.

72

- a(3.325 ) 47.

/

)

sr2'

where j(Xi-X)?Iez has a- distribution which islcz(9). subroutine for the chi-squaredistribution function permits us to graph this power functicn.

To illustrate the-power function empirically., for 0,2=2.5, 47.5, 5, we generated sorandom samples of size 10 from a distribution which was m(0,01. For each Of the- 10 values

of aq, we counted the number -of times that Hco was rejected. The-relative frequency ofrejections for a particular value of (e2 should be close to 11(0).

Page 8: 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR. Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability

q21111033

rFT

= N

.

ZM0

ONV 6,700"0-

3)1IV' 30NVINVA rldWVS ONV NV3W 3idWVS

3,41

T,

4.

'

LT

SE

9,

,Ot

'

OE

OZ

L0

ISZiorznbasi

001.

()eel

,OPT

O2"1"

09'0

rar0-

0940-

.02'7-

.03'7-

Ot't-

00',E-

.

IXXXY4:****1*******I*******************7***p****1********1*********1*********1*********T*****XXXXI

000'0

+++++XXX++++4,444.o+++4++.1.+++++++,++++++rnt+4444+++.+40"++++++++4.04.4,++++++++.1.44+++++++++++"

XXX

*070'0.

xxx.44.+++++4.4.4.++++++++++++++4.4.4.4+++++++++.+4,+++++.1.4.+++++++++++.4.4.4.++++++44+++++++++xXx

*070r.0

+xxx*i************44+**A****+*t+++++*****4****,,*++4*********************4+++xxx

*ocvo

XX

11.4.44.4.4.+4.4.+++.4.4.4.4+++++.1.4114#4.44,+++.1.4.+++.441.4.4414.1.4.4.4.+44.4.+++++ 4.1.4.44.14XX+++

*° 0900

X'

++4+44+++++t+++++.4i44++++++++44+444+4++++++4+4.4.+4,4+44#4.4++.04.1.4.44+44++

*Oc0.0

XX 4+++44++.1.4,+++.1.f.1.4.444.1.4.444+++++ifii+++41.4.ii+++++.+4+4,444.44.1.4.4.4.ii+XX+44+44

*.

'090"0..

'y4.411.444.+444.+

4,44.t.±4,+

++

++

+.+

++

.4.4,44,..++

++

+.+

.4,.+4,4.4:+

tt++

++

++

++

y*

010'0

,

111

4,60Nm

riiiirf,1111a00,064

'61,E1'404.4.4,41pall,p0,4140Y

40,4

X+++44*,.**;****4. *****4 +t+++++++++++++44*++++++++++++++++4.4.4.+x

*"OW()

oc++4.4.44+++++++tt+++++++++4444++444.4.4,stist+++++44.441,++++++4+X

*060'0

'

.4.40(444+4***++++++*4.4.44.+44srt+++.4.t++++++4+++.4.4.*++4.4.+4.+4.4.+4.x+

*00'10

+++x++++++++++t4+44..++++++,++4+++++44++++++++++4,44+++++x++

*017*0

++++x++++++++++444++++++++,1.4.4,4+4.444.4,+++++++4.44+.404+,

+++++x+44+ ++++++4.+++++4.4*++++++++44++44.4.+++++44+++++++++x++++

.

*lur

021 ^'0

0E1'0

++++++X++++++++++++++*+++4+++++4.44.4.+++++++++444+4.x4

.4.4.4.

*0,7'0

X14+++++4.4.44+++4+++++++++44+++++44.4.+4.4.44++++4X+44+++

0

+4++++++44++++++++4**++44+44+++44.4.4.**++44+++++

'

**061"0

'

097'0

.

X ++++++4t44+++++,..s++++.4.4.4.4.44.4.4.++.4..+4+++,+4.4.x+4.44444

*00'0

X+++++++++++444os..........+44.+4.+++++.44.0.4..+4+

Xx+44+++++++++++++t+++++++44t+4441 +++++.4,x

*,

*091'0

0,67'0

11.01.44+44+++++++++.1.4.+4.+++++++444444,4.444.t++

*00Z°0

4.,X++44.44+++++;+4 44.4+++++44+4+++++X

*OiZ70

++X++4A++++++++144+++++++++++++44++4.0.0X+

*'0U°0

'

+++++++4++4++,++++++++++++++44++++++,++++++ '

*OU'O

4

***X****++440++++++++.+++++++++++++++++X"

*041,V0

**4.*X++4++++++++++.0t+++.44++++++.1.t+.440(+4.4.

1

*OS7*0

'

++++1.+4.+t+4+...+++++.4.4.t+++++

1

*09Z'O

+++++X++++++++4+++++++++++++4,4

.X

*0/2'0

4.4++44x++++++.i+++444++.44.4.4.

X*

09?"0

++++++06,.....+++rn++++++++,44+

x4.

06?"0

44++++4.1.++ ++ 4 + +++4.

*001"0'

X 44444M++++4,4p++++++

X.

*OTf'O

x++.4.4.4'++++++++.4.4.4,44,, X

'

*.02E*0

X+++++++++44.++++++'4-+X

'

*OO

'4x+++44++4

x4,

0',E0

++++++++++,

*OSE*0

+4,i(4,++++++

X.

w*

09E°0

'

444.XX+++++,

XX

cqtr...o

.014O

1.11 .401

****frx****

X4

409E'0'

XX

XX

*05E'0

XXXXX

'00',"0

*OT',"0

*.02'1'0

.

OE',"0

*OVe0

*OSIP*0

*094'0

*Ov.0

fia.en

k,,,7,,,.4,,,,,1111,111111,11P1111,411,4 .0.11411,1.MO

ltu.H411,m

111,1,401,0.1,111,0114,11WIIIII,41,1,114

th4J11,10,,i141114h111111

Page 9: 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR. Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability

P,1111'P

,t44r "

4,4r

44.4

,r

4 4o 4. 4144,14i,4444 4.4

, 4, mr. r

w M

M4A

,4144

n I.

n1,0%, 1v11

t

1,0119.1.03Hk

31,0 433"130 3?%3W

1100 mn01 siso

lo41

,do*c

69'T.

00'0-ost-

.00*E

-.

/++

++

+'+

++

+4+

++

++

++

+ +

++

++

441,++

++

++

++

++

+1+

+44+

4.44.4.4.44++

t44+441+

44.4++

,44.4.44+4.+

Z00

*****************90'0

.11114M410

+900

*--+

90'0111

-*W

O"***

210*

91'1004*******

91"O*

4910

*****O

ro,*

+Z

Z '0

*NO

* *

'WO

*97.'0

0*9Z

G*

WO

ZE

0*-

tf'04*

9E.0

111

*".+

OE

" 0*

04'029.0

+ .990

*4

99'0*0000*

94O04'0

0***co Z

*+

45'0re

950*

495'0

** 0!*09.0.

4-114

29'000

**4

99'0*

11

-99°0

**-+

99'00

0-11

OL

O*7*

4W

O***

+9".0

-*1

4St 0

-**09'0Z

R0

***99'0

-*

90'0--

*1

* WO

.--

506'0

--'

*****M

+Z

6.0--

*.96'0

"--*****,

a960

*. 4

96.00 ******'00*0*************

00' I.

4,44,4r,4,,,,...110,014.0.001,04,444114,101,4A

oIrt,'4,41,.0,..4.4404.4111,44.,10,1141.

,111 jili,M,I1111411,11101111/11,41,111,1V

/1,11,1,1.11

11' .141,111,,,I11111,114W

11111411,1111,114111111011.1111/1101141 irrr,,111firri41,4111110,1Ir1144. Or4141,1414111140111,,141Y

7.44,..;17.;...:..711'11,7,:rtxxx

111r

'r rir,1Irr

"JAW

""ra:;:741i,;K

MiC

iglIEIR

k

Page 10: 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR. Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability

IN1,

1111

1,11

11Pt

irff

ill1

1.00

*XXXXXXXXXXXXXX+.

0.98

+XXX

.0.96

*+

+X

0.94

*+

+X

-

0.92

*4..

XX

0.90

*+

+

0.118

*+

+X

+

0.86

*+

+X +

0.84

*+

+X+

0.82

*4.'

+X

0.80

*.+

4.

+X

0.78

* '

++

+

0.76

++

+ X

0.14

*4.

'4.

+x

0.72

*,

++

w

+X

0.70

*+

+'

+x

0.68

*+

++

,

0.66

*+

++

X0.64

*+

++

X

0.62

*+

++

0.60

*,

++

+

0.58

+4,

+.X+

0.56

*+

++

0.54

*+

++

+X

0.52

*+

++

+ X

0.50

*+

++

X

0.48

*+

+4

®+

X

0.46 A

++

+4

X

0.44

*.

++

++

k'

0.42

*+

++

+X

0.40

*+

+'

+4

X*

0.38

.*

+:-

4.

X.

0.36

*4

++

+*

0.34

4'

4,

++

+XX

0.32

*.

++

++

+X

J.30

*+

++

XX

0

0.28.

*+.

++

+..4

X.

0.26

*4

-

++

++

XX

0.24

*+

+.4

+XX

'

0.22

*+

'+

++

+XX

.

0.20

*+

++

++

.XX'

0.18

*+

++

'

++.

+XXX

0.16

*+

+4

+4'

+XXX

0.14

*4*

++

+4

+*XXXX

P

0.12

*+

++

*+

4+

XXXX

0.10

*+

+'4

++

.4

+'

XXiXX

0.08

'*

++

++

++4"

++

XXXXXXX

+

0.06

*+

'+

++

t lit

+.

+.

XXXXXXXXX+

0:04

*+

++

+.

+,

++

++

*XXXXX

0.02

*+

+4

1*

++

+'

+'

++

'NO,

'

r*********1*********1********* I*********1********* I it********1*********1*********1**44***1!*1********* I

0.00

5.00

10.00

15.00

2a...00

'25.0,0

30.00

35.00

40.00

45.00

50.00

FRE

QU

EN

CIE

S50 .

50

44

30'.

20'

96

,4

't2'

'4

.1-

^.--

'.-"

--"';

'"*'-"

.7"'"

-Orm

irT.'1

4

FIGURE

6

Page 11: 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR. Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability

re Figure 6 the power function is graphed along with.the relative frequencies of

rejections for the 10 values ofcr2.

With the techni es learned in .this example, a student is.able to compare two power

functions for the Same est which differ only in the size of the critical region. A student

is° also able to define a power function empirically when he is perhaps not able to define it

theoretically. -

Student Reaction

This laboratory has been taken by two classes of junior and senior mathematics and

science majors. The general reaction of most of the students -'to the laboratory has been-

favorable. Of the -25.students in this year's class who responded'to the question "'Did the

laboratory help you understand more clearly the theoretical concepts?, 19 said yes, 4 said

no, and 3 said somewhat...

3ne student thought the laboratory was very helpful in highlighting the material in

class. Another said it took a lot of tine but was interesting and helpful. 'Still- another

student -felt that many of the theoretical principles of.dtatistics were reinforced by the lab

moil. A few students suggested that the use of more data which had been collected-in science

laboratories would have been.interesting. For one student the laboratory was not beneficial

bidause she generallybelieved the theoretical concepts without the empirical printout.

I believe that in general the reaction of a student to the liboratorf depends largely

upon his-like or dislike of the computer.

Faculty Evaluation

August 14-18, 1972, we held a conference at-lope_College for 51 college teachers of

statistics-from the midwest and eat.. During this conferene-ire described our use of the

computer in Our statistics -curriculum. From this conference we received both written and

verbal comments, some of which I would like to summarize.

It is' not always =possible to add a laboratory -because of insufficient staff time Or

ir,adeauats scaputsi facilities. 'In such cases it is perbeps possible for the students to

writs only a few comvuter-prbgrams while the_instructor illustrates most of the ideas with -

printouts or transparencies. However mathematics majors might be less intrigued with just

seeing others' results without -actually being able to perform the exercised on their own.

Also students seem tc gain intuition when they use the computer.

A valuable by-product of the statistics laboratory is the opportunity for students-to do

some research as undergraduates. Their mathematical- maturity and background may not be

sufficient to 'prove certain - results _theoretically but they are able to obtain answers

empirically.

Some of our conference participants are-using part of our materials during the 1972-73

academic year. We hope to receive summaries of their experiences by the end of this academic

pear.

Summail

A computer laboratory in statistics provides new and interesting_challenges to both

- student-and teacher. A lot of extra time is required. However if the exercises are

meaningful and not just busywork, the time-is well spent,

Page 12: 4 , AUTHOR Tanis, Elliot A. TITLE 'A computer Laboratory for ...DOCUMENT RESUME ED_ 079'985 EM 011 356 4 , AUTHOR. Tanis, Elliot A._ TITLE 'A computer Laboratory for Mathematical Probability

Y--

1.

REFERENCES

Elliot A. Tanis, Theory of. probabil.t.ty weld statistics illustrated by the computer.Proceedings of the 1972 Conference on-Computers in undergraduate Curricula, 1972, 513--

.520.'

2. Joyce A. Newell, Effects of violation of kyootheses for the t distribution. UnpublishedSenior Hokors Project, Hope College, 1970.

Deanna Gross Snyder, How large is large enough? A study of the ramifications of the:entral Limit Theorem through simulation. techniques. ,Unpublished Senior .Honors Project,Hope College; 1968.

U. Patricia Lang Young, kpplicaticin of the Central limit Theorem to a mixed distribution.Unpublished Independent Study Project, Hope College, 1969.

* This-project is being supported by the'lational Sbience Foundation through Grant G.- 28786.