9

3339 FA15 FE Instructions - UHcathy/Math3339/Tests/Final Exam/3339_FA1… · Microsoft Word - 3339_FA15_FE_Instructions.doc Created Date: 20151207224652Z

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

  • R “base” commands for distributions: “_” filled in with d, p or q _binom( ) _exp( ) _gamma( ) _hyper( ) _nbinom( ) _norm( ) _pois( ) _weibull( ) _t( ) _f( ) _tukey( )

  • Formulas for joint distributions:

    ( ) ( )( )( )( )

    , ,|

    X

    P X x Y y p x yP Y y X x

    P X x p x= =

    = = = ==

    ( ) ( )( )( )( )

    , ,|

    Y

    P X x Y y p x yP X x Y y

    P Y y p y= =

    = = = ==

    [ ] ( )( )

    ( ),

    ,X Xx y x

    E X x p x y x p xµ∈

    = = =∑ ∑°

    [ ] ( )( )

    ( ),

    ,Y Yx y y

    E Y y p x y y p yµ∈

    = = =∑ ∑°

    ( ) ( ) ( )( ),

    , , ,x y

    E g X Y g x y p x y∈

    =⎡ ⎤⎣ ⎦ ∑°

    ( ) [ ] [ ] [ ]cov ,X Y E XY E X E Y= − ( )cov ,X Y

    X Yρ

    σ σ=

    Hypothesis tests and confidence intervals: Test Null Hypothesis Test Statistic

    One-sample z-test for means oµ µ= ox

    z

    n

    µσ−=

    ________________________________________________________________________________________

    One-sample t-test for means oµ µ= ox

    tsn

    µ−= ; df = n–1

    ________________________________________________________________________________________

    Matched Pairs t-test µD = µD0

    t =

    w− µD0s / n

    ; df = n – 1

    ________________________________________________________________________________________

    One-sample z-test for proportions op p= ˆ(1 )p pzp pn

    −=−

    ________________________________________________________________________________________

  • Two-sample t-test for means 1 2 0µ µ− = or 1 2µ µ= 1 22 21 2

    1 2

    x xt

    s sn n

    −=

    +

    ; df=v

    v =

    s12

    n1+ s2

    2

    n2⎛⎝⎜

    ⎞⎠⎟

    2

    (s12 / n1)

    2

    n1 −1+ (s2

    2 / n2 )2

    n2 −1

    ________________________________________________________________________________________

    Two-sample z-test for means 1 2 0µ µ− = or 1 2µ µ=

    z =x1 − x2σ1

    2

    n1+σ 2

    2

    n2

    or z =x1 − x2s1

    2

    n1+

    s22

    n2

    Two-sample z-test for proportions 1 2 0p p− = or 1 2p p= 1 2

    1 2

    ˆ ˆ

    1 1ˆ ˆ(1 )

    p pz

    p pn n

    −=⎛ ⎞

    − +⎜ ⎟⎝ ⎠

    χ2 - Goodness of Fit __ is same as _ χ 2 = (O − E)

    2

    E∑ Confidence Intervals

    One-sample z-test: *x znσ± One-sample t-test: * sx t

    One-proportion z-test: ˆ ˆ(1 )ˆ * p pp zn−± Confidence interval for σ2:

    n−1( )S 2χ 2α /2

    ,n−1( )S 2χ 21−α /2

    ⎣⎢⎢

    ⎦⎥⎥

    Two-sample t-test: 2 21 2

    1 21 2

    ( ) * s sx x tn n

    − ± +

    Two-sample z-test: (x1 − x2) ± z *

    σ12

    n1+σ 2

    2

    n2 Tukey’s w: w =Qα ,M ,N−M

    MS(resid)N /M

    Two-proportion z-test: 1 1 2 21 21 2

    ˆ ˆ ˆ ˆ(1 ) (1 )ˆ ˆ( ) * p p p pp p zn n− −− ± +

    Slope of regression line: (ŷ = β̂0 + β̂1x) : β̂1 ± tα /2SEβ̂1