, " U.l."5J-r'\t

advertisement
o\ -1\
v'D(r4n,T
l'111(q\qrr-tc
c^
Lo^gJetr
r co0B3! ol colp0rll6
," U.l."5J-r'\t
ttD stltlstlcs
!08 soclll
\*.rt*1,.
ScIEtcS s!0D!r!s
a€tDGrt !. D€Esler
{oP€ colleqe
8o1I.ril, lttchig.; {9{2r
t e l e p h o n e : ( 6 t 6 1 3 9 2 -5 1 t r
qrrcu
9E !!9 e9!E€9
aefor.
rLe i.t..oitucli.oo
oi
!n€ cou.se to b€
9 o c i r l 3 c j ' . ! c 6 3 t u i l e ! t s a t l l o D e c o l I € 9 e 6 ! ! o I l e t t 1 ! i i . . -d' si isl cJrii ii a
i .d" " i ! t h r s
iotroilucto.r
st.tistics
ara cirorter. pioqrar!i'g.
r! rhe .;.d;;;;-;;;;
occqrreit rlich potnted ro tbe rdiisablii.ti
or co;bi.!ioq .!;;;-;;;;.G:'
paper, rost ecotoricB rld
re6e_?o tro rterolop.€!ts
rilst.
Dr' Jar rortelt
cooilucteit- €rperirsltlt
secti.ons ot tne rlt[oalucto!r st.tistlcs
course at rop€ col).eqe i!
rbi:[
ha .!se.. tie
corputer
;;--;a;.i
to obtai.
i.lrustrlti,e
inroE!atio!.
Be itid thrs
b, arrorile
studsnk t;';;;-pr;;i.i.ri-iii..""
p.oeEals on p!epa!€<r
drta dsct5. riis ras itoae in c;'ruDctto!
rir!
tIe projocr'!o stucy ttl ose of
tne co!pur.!
ir
stati'tic,r
iDstrlctiotr
sponsotei uv tbe rstro!.r
i.,;.."
i;";;;;i.;-;!o
tie utrrv€lsrt, o! north
cirorilr'
i! urlcr Dr. lorrelt
ras ; p.EticiprDt.
rt il"-"iiJi-ii--iliit
,as Dr.
ror"rartis. re:'1!s
trat
tre :oopntei *i."!
i;-;r;;-;-c;;!,;-;ut
" ,tpn.a. it. . osto l e r ! r ! e , a s r o ' t
b € c a u s e r ! € s t u i l e l t s r € r e l o t i b r € r o p . r t i c i p a t"s* . ! i o t l " p . " p r . " i i " n
;; .," p."e..nr.
a collE:E o! colpqtios ror soci.r sci.s.ce stod.nts ras rlrlorruc6d
-r -o-p- e cl :o, !rfr:i-c: u
1 l!u' :r: .l e , r b i s
cou.se is basic.llr
I ronTErn p.osE!!!r;t
;;;;;;.rh..e rho rere
rit!
reaclilg
this
cours€ (ornd.rir!
sot6 inort6age-of
D6 'arlabl€
s!0denrs €uorrsd.
rirL sole sratrstics
b & i e r o u n d , t 6 o i t , r"ai i"i tr.i itiii-.--i,i.u"irdc
b
s
a*it;;d
pe.ti!€trt to t!€1! tistils ot irrer€sE.
rr
fas tb.refore the conseDsus oa
!o'e y.lubte
to co.bi!e st.tisrics.lit
st!deDts
c.th..
tha! to contitrue rit!
19t0 to th. xariooal scieoce ajun.lrtloo
ritb t!€ il€r€lopreEr ot a raboratort !o!
this p.oject ras funited.
!!lcs
i,!to tle
iorot,eir
to rhos€
;;.j;;i;
the lope corr.g€.rtho.ctr,c.
depa.rnerr tbat 1t fourd be
co'prter p'ogE;rlr[q
i,n!o one couEs€ !or sociat
sct€nce
rro s.prrit6 c.".;";.-r
v.s !a.e i! the parr or
i.;;;s;r
to! th; der€rop!€lr.r,icl'
iconjuDctio!
th. rath€lari;ar
p".ooriiitr-"oo
sratrstics
cou.se, ard
e€ !-!c gglp4er
rn6.6 rre trr6€ raloE r.asons that th6 colput6E is an lss€t to t!€
.luctoft
statisttcs
c o u r s 6 . ! 1 l : E t , o r p o s u r € t o t h e c o l p u r e . - a l d c o ! i u r i ! 9 r s a o " " . s s . i v e i p e irriter o
rce for'anr
soci;l
sci€oc€ s:r.teBt.
H6 should D6 arar6 of th. econortc, sociologtc.I'arit
p s y c h o . r o g r c a l i l p-rrcnt s o ,
rne:orpurDr.s
r€ll rs th€.appticatioD of rn€ coDputerto rb;
soluuon
of p;oDt€ls
!16
second, t!€
corpur€E c.! se.r€ rs.... a1d ir t€nchiDg stati6ti,cs theort. fhe stud€nt las a
lucn greater r.st€rt
oa a corcspr !fte!
!e las orprai!6d ii to
soieotre €lE;.
rtrer a striaeai
rritEs a progla! h€ i5 iloiag Jusr !h1s' erpral.ini
to tle corput€! i'oi to
tl" prorr"..
ioi
€rarpte, in the rasigllent
s r o . [ 1 n r i g u [ e 3 , t h e s t u d 6 D t i s i s t e d t o 6 r p l a"!onr t . t o
hor to t€et hvporheses. lLso the corputef cao be useit ro ploriil. the student ritb ti"
i . t r u s r"roaripi oults. i
Hhich furtter enhance his undersrandins,
An exdpre of rhis is founal in the.""ig"^.rt
i"
si"..
risule 2 irL which lhe sludent ts asked ro irrus!!;re
the nornal ippi.*i..ti*
to irre uin6niur.
tlirit,
tle
colputeE allrrs
!h€.stud€ar to.ppll
tte strtis!rcat
proccalrles !e is tea!!1E9
to. serul sets o! .rata' rhuE 9iviD9 bt! varuaore iipirieace
to toti.i"..roq
.€surrs ard .o
r!(eEescrD9
teaE!inq tbe statistics.
DiesllP!f,g!
9E !!9
- ,a. r-y. 1
: ,c: :e!g! iu:r $ r e
p .! E
o
eact sereste!. tt
99.9!s9
b e l ' e d e v e r o p e di s e ! t i t l e d r r p p l i . a d s r a t i s t i c s a B i l c o r p q r e r ! . o e r a , r t n 9 . r r r e
rs lrgh schoor.rgebla.
rt is i tro seleste! co!.se
fo!
thfee boufs credit
oqtlile of the toli.cs p!6seateil i! the coolse is foqn; i. fiqure 1,
tbe studslts ale irtroduc.d
ro a-silpritied
forr o! iDpnt ald oulput so tlat the! cao b€91!
prograr.r'!g ritnolt
bellg etposeil to tostAr srarele!rs.
Thii is doDe bi sulrorrioes riitter
ior
.:l:::
b e c a u s es o p e
ns a! r8r riJo rhicb !.s no sirpriiieir ioput/outpqt irctqded
!r fni : ,t i e s t s r e . - r n e a u r l o f c o r pr er eg pe r h
reit !ot.s to s€rte.s a r.tt loE the cl.ss
!a5
to.
i[e
roBrRrd
ot
Decauso ertstilg
tetrs presert rh. Ianguag€ i,! a s€qrerce difle.elr
Pottroo
fro!
rnar dsteErileil to be opti,lar for tLi,s couse. aoE eralpre,
ri
sdDscrtpted rarlables
iceseat
rery
earrt
1! tle
course because thet
are D€eitsil to
prog!|r erarpfes aoa plocedsEes i!
desc.iptire
statlstics.
525
i .
E
f ; E i
.
f i
i 5 : ' E ' ; - s E
?
!
u4 :i i i!
=i r r i l - i A l
;
a
E
;
:
e
i
i
E
t
E
iq;
i ? . n i ; E E l E: rE i
b ;*E
; [ ; ; i t i ; i i i li t r * ii i ! i
i E I ; I ; ; ; ; i :i E i ! ? i i e } i I ; E !
rg ?B ;; i; ; r : F !!
P
;
i
;
;
F
;
i
E
i
;
;
:
[ ; ir E
"
r
f
l
.
:
,
r
:
!
i
i
;
r
3
{
i
=
i *
: i EEi i ; 3 F E
E r ;
<
P
E F . : E ; = E i :s !
i;
; I t ; H :i i , ? ;: i [ ; l ! : : = :
3 ;i ii i ; i i r : $ 3 n ; ;
r i l i ; 3 i: iH
i :; Ee! ; :$is }= : i : i tI Ir; ii I f i Ii
;
i E: s f l i l , l i i; t r a i . :* i
g ::lf , ;i i;?a ri if l iti: ;i ! f ,i ti
ti +1
-
s
E
5. Et \- Ee 8
'j ;;
6
i
E
0" --? :
-*B:;
? p;";^ ! E
e
;
9.
6 3? 3
r
*
q
!
'ai
:
z;
.
3
I
t
ii '
i;- bs u ,i
':l $ i i :' E s r
: Ii
$ . ;
i o
:
I
C
:.H
*
.-
.
d
,t
:
fl*
-'c 3
Ee
a E i t
16
i H i E
.,'E it
r l !g: c l
;
l
l
r
!
*
l
i
o
E
e
c
r
;" :!
*" d 3' E
E E asF E' . ?: iE 6€ 6E
: E
I
EE
Ft
iE 4
,;.i?;
h :l
.
,: ei F
E ,
ioiq
*i
;
id
*- . i.2 ' b b
;,.:
c a ea
'3 t- &.: $ej
r.
', E
2
F e
i 6
.
ao+'
A e A i
E s i a
i,!19
Ls t t :
E: : E
I I i si ;i ; ?'x!
'
i
t
g
i
g
i
i
i
i
t
':El
1 t ;l!i ! i i B E
u,) t
b
ol<
. 3 " 6 r . ^ y t l : 3 , ? : Y ' "
l 1 - r l " ! ! - - z j g i
3 3
{ r 9i .Er d e E t Ei
E i ;o te i 9.! F 4.-
*- r.
! 'l1--'- tF s IF a . E
;I o o d c P
?'
Ff! - l : P - E - : 6 i t f f o - . -
I E ! I f . r * ! 5 .o Y "I rfo ri t
h:
i
;j ijd
d>
I
?.
i t qq
[ 9 ; i iri €a i { Ei n B
P 3 H
R e
t
)a I
r +r.E
' I 6 ; d d d b r < . : E a o c a
,
t -t;
*."--!Fr-a: :
>.Eieiii'{iqfr8
E3 3 C5 s s
s a p p5
j
. t i " i
526
; ; " : J d
EIgEgt
The purpoEe o! thls asEignment ls to lntroduce
the student to teEting a hypoth€sis about a Banple rncan
and lllustrate
type I and type II
wrlie
D€scrlptionr
errora.
a function subprogran whlch has the
arFunentBt Xlruo' the hypothesiz€d msan' XflU'
following
the actual neanr slc the actuat standard devlation,
N, ths sanl]e slze,
Ths subprogramls io g€nerate 100
sanple6 of s1z6 N fron a nornal dlst.lbution
XMUsnd standald dsvlation SIc.
confldence lntervel
tith
m€an
Fo! each samPre, a 95F
i3 constructsd assumlng slana kno\rn,
and a test !s nade as to
1.e,, {h6therf
lnterval,
and
hether Xl'{Uois In th€ confldence
= xliuo is accepted. A count
is nade of th€ nunber of tines the hypotheEiE 16 accepted
This is th€ value to be returned for the function.
wrlte a callinF pro8rarnwhlch call.s thlE function four
tln6s, each tlne 1|lih XIru0=20,SICE5' N=l0' snd fo.
XMU=20
t22,25'30,
g$allt
Your output should conalst of xlllJo, xllu, 5I0r
N and th€ value of ths tunction for sach ca}l of the tunctlon.
gr.€.llgnE ' 1. R€late th€ r6sults
to elths|lyp6
of each calL !o functlon
I or type II €rrorB,
Spsclfy which.
2. Puncha card sunnarizlng your !'6ault6.
3. lhat would be the offect on your answ€rBlf SIO w€re
10 ln8t€ad of 5? what lf N w€re 20 instead of 10?
what lt llveused a 994 lnstead of 95t confldsnce ihtervaL?
4. conpute lhe th€or3tlcal probabillty ot maklng an
error ln each of the four perforned tesls of hylotheses.
Indiiato for each whether it is a -iype I or a typ€ 1I
€rrorr
conpare the6e with your results!
5, ?he above progran teat6 the hypothesj.s A = ?0
asalnst the two-Eid€d altelnative / / ?0r Ho{ wourd
your ans*ers b€ changed i! a one-sidsd alteinatlve
> 20 were used? tlhat lf /r< 20 werc the a]t€rnative?
!&Ig jli4el
!9 jIX' Add enough genorality to your
A
program that you can try sone of the things suggested
in queEtionE , and 5 above.
riqure 3..
SaElPleAssigrnent
527
testins
of l{yPothese6
!i
,",.":':,"";:::::l::,::':,"il:"?"*
iitiF:ttt r'*€."'olill.-3rl;",1i':":tili!!rli:'!!i
rrd
tith toilili
tlot ti€ ;tudeDts rli 9rr! soro !!rlli;!itt
,.o
plob.btlftr
iliscusstot t5
sote
".o..
desclrittre
for
're-o'eoeo
betore tr'1
:!9-t1:1'* iD t[oi! qse rt'! r'r'Iot
aubscrioted tsi.bles
'rg€rlelce
arorg
- -i'-t'*{i'h
aailen coocerdlg !a!do! ourDsr -i""tii'"tt
osire carrea sublouthss alo
:'i
'""
si
sarprilq ig tre.t6.. rrsor "* "*Jiil'ii!ibsrr !€sorts toE leeE6ssio! 'rd An'rv'rs or "Er'!c€'
iiiSiiiJ.i"c
sets.
eac!
colsrstiDg
of
s'r€lat
sa'i'bl's'
at6
stolott
o! a ilisi'
t!€
stqnents
67
6a
6e
tl
qsed ror
7z
lhes€ s€ts- ate -itata aclualLt
data'
this
lear! €allv ir tle coulse lor to aciili
hn" b6'D 'r
!
r
i
t
6
c
o
!
o
'
i
c
s
'
€
d
r
c
'
t
i
o
!
r
l
i
t
#;';;;;'
i!!i;'r;'g1'
Eeserrch pcEFos.s t! tre..€ts
".
'sserrch ruil flor dthe' boots 'od a!trcI's'
co!tEibul€d bt l.culty on tbe doPe carprs iior_tleir
lstt I€aE' 8'ch stud€lt is assiqlsd onq 70
t"
'"t"
tb!€e !dtlir!o!.r
75
rl!e.dv
rhe Far. Ih15 use !a!q6s fror
". "- '"; ; : ; ' !; !; i -; r, ioi !"i -"ial - " " " . - i r ' . " g u . i .
drrr s.r .od o.e irliabr€,,..
co!fidslcsirtervnrs76
FIr€
A.t.
a€:':ii::-iili:ii:i-i:'*i::i:'::.:'.:::'in
i,. .€.!.a,ds,a,i,a!d
rrc' '
iiiirii
to co!.6I.tiotr.!il
r69Eessro!
cours€' Inste'rl'
Problers thrD ia t!€ strldr!d-statistics
Tbo stuilents eoEt teter-tertboot
to tleiE
irin .ppr.y_tr"". Proer.t.
;
;
d
.
"
.
.
"
i
;
i
.
;
'
;
;
;
;
"
;
;
;
i
"
;
;
p
l
o
e
r
r
!
5
rh.y rlrr€ corrut€E
.
thsrcoPut...:::;:::;::
l
l
v
o
t
i
r
.
c
a
s
3
i
9
!
r
o
!
t
3
r!€ 3r{d€trrs .." 9.,";';-a"a;t-;f't5
'ets.
iata
on' nssiqlrert
PeE
; ;!
a t s E a g € 6 o u t t o s l r g b t r v r 6 s s t-hI a
tlr.
ii.-r.".rppricntror ot tbat Prod.rr. a!d t!e asseeri!e
;";:.;;;;.
tne frrtror
iu,or,.
t,orc.rrv
'sted
'!s
stud€sts
;i".s
".
rr.'a'r
o i s : r e q u e s t i o r s t D t € D . r e d t . o " " " g ' " i i - l i l - i ' i i i t i l i -spoi i' "t tb"a' t a ; 6 . r
!esdt !aI ba obtaileil toE the sltire
surrc!rzro9
ro Duac! crr.s
tbe b€tter
to cb'll€!es
" " . , ,. "; ;: ;; "- i; ;i .; ; ' g - - " a i u
e*t
-r l"q" ' r g' ' o n e r t
crrs3. Ettra cr.dit Ptobrers "'
2
l
i
e
u
r
'
s
ar€ rould ir
r'. s!.Pr; assielr'ots
iiia.iti-
78
7r
"'
dr
ar
8:r
d{
a7
s.cCqie-rlgs 9l !.h9 er9l99!
to!
Tb€ pcolq:t
oEetolz€d
d't€loProt
' " " ' J i " i l i - - i t-- i
rrt!
*'
rrtb6'!tj'cs
rarots
rho
seilor
ro'rr
r€rl as t6strne th€ co'p;tsr assre!r€'ts' r!€
l
p
r
"
'
p
"
r
'
i
i
i
i
s
u
b
r
o
u
t
!
!
"
.
.
"
"
a staEtrng
!.cos6t.t
" t';;;'
rcadsric lo'E 1e7r-?2 rit!
i o " 't l t
litt'
c o ! ! 3 6 i s D e r s st t u g h i t o E t *
coulse 'ccorar!e
ib€
E€lisiDq
io
u'
a.rot"a
etr.otr!€ot ot 26 stsdoots' '"" '"ii"''i?-rgii
t r!
a c"iii
t d ' r i c I c a E ' . r b 6 c o u E s er i l l t h e r b e t a urqr b
ro rh.6tp.Ei€oce srt!6d trrrr!e t'j--pii"!ir"g
sutror t rrrar rsPoE! rr be
t
h
;
l
o
l
r
o
r
r
l
e
'
n
d
!.vrs6il for| dulils th€
roctuE€ 3ot65 ald
'""r as cooEs€ outri!€'
" a l " " ; ; ; ; ; - i i t ' - 7iii!'iiri
1
to t.tcb tne
.rae !ro!s trt! tb. lroar Pt"P""';"1-;i
16rb€ra
sr'rr
otho.
to rrror
;; l;;;;i;;';a
!!€ss r!t€rtar3
as6iq!.s!ts.
"ii'
!E grlr
el
e'l
er
e{
vr
too e'rIy fo'
t € a ! o t l h e P ' o l s c th ' 5l a ibl ' on!€ l cl oes t
trtt,.!9 it ts tle rtildLe o! t!e fir't
tbls
trvoEaore'
It
e
t
u
d
e
o
t
s
o
t
!
!
'
r€actio;
tiil-Li-tli
discussroo of losuLts'
,h' ri!t
to 'roil'rBt'nd bv the use ol the
r
a
d
e
€
a
s
i
€
E
i
"
to'l
croods tns
srrPrr
sore !.te ililic.ted.n."
tor rbot th6 colput€r
" ' ^ - i i " -;!;i:t;i'r;!;t;i;';"; ; ! 5
tna! Yrs
co!DrtoE. t suspect, lorsver' '""
rsslq!i6lts
o
t
r
b
e
p
o
r
t
t
o
D
c
r
e
a
i
t
-liiiii-.i-.1.-eiira
sto.relts hare *""
no!.
issuB-
100
rul
r0z
are !!c! groat'r io thls
o! t!e-E![il€!ts
'oil tlts!€st
tne lorale
that
lLe author tesls
Pre'sEr€
t
b
i
s
r
€
a
5
o
!
'
t
h
€
f
o
E
.!il
p o r l i i - -i or ioi .i .reaso, r i
course tb.D i.D eitheE of tt" tro
to this cou!6€ tror ou! socrrl
r
e
s
p
o
o
s
e
as
ro ieacb. there las ".".
etcouraging trei! 6tudeors to take !t
""".--ifaculty tho teel !t !5 " '*"""obi";;;-;;-;;d-;;:
us io rts ilereroPoe!r'
".ii-i!
"".i".i"s
l0l
rob
"r -v r
loa
Download