Final 5 Two-sample T-test

  • Upload
    riddled

  • View
    240

  • Download
    1

Embed Size (px)

Citation preview

  • 8/8/2019 Final 5 Two-sample T-test

    1/29

    TWO-SAMPLE T-TEST

    Test of means for two

    samples when

    combined sample

    sizes is small and

    variances are

    unknown but equal

  • 8/8/2019 Final 5 Two-sample T-test

    2/29

    BASICS

    HYPOTHESES

    Q 1=Q 2

    Q 1 { Q 2

    Q1

    >Q2

    Q 1

  • 8/8/2019 Final 5 Two-sample T-test

    3/29

    BASICS

    CRITICAL VALUES/REJECTIONREGION

    FROM THE T-DISTRIBUTION TABLE

    Tail depends on alpha and H1

    Degrees of freedom: df= n1 + n2 - 2Q 1 { Q 2 t > tE/2 or t < -tE/2

    Q 1 >Q 2 t > tE

    Q 1

  • 8/8/2019 Final 5 Two-sample T-test

    4/29

    BASICS

    TEST STATISTIC

    21

    2121

    11

    )(

    nnS

    xxt

    p

    !

    QQ

    2

    )1()1(

    21

    2

    22

    2

    11

    !

    nn

    snsnSp

  • 8/8/2019 Final 5 Two-sample T-test

    5/29

    Example 2:

    A random sample of15 brand C softdrinks

    showed a mean content of 237 ml withstandard deviation of 2.93 ml while a sample of

    10 brand P softdrinks showed a mean of 240

    ml with a standard deviation of 3.12 ml. Using

    .05 level, is there a difference in the meancontent of the two brands of softdrinks?

  • 8/8/2019 Final 5 Two-sample T-test

    6/29

    Brand

    C

    Mean = 237 ml

    s = 2.93 ml

    n =15

    Brand P

    Mean = 240 ml

    s = 3.12 ml

    n =10

    Do they Differ?

  • 8/8/2019 Final 5 Two-sample T-test

    7/29

    HYPOTHESES

    Ho: Q 1=Q 2 The average

    content of brand Csoftdrinks does not differ

    significantly from the

    average content of brand

    P softdrinks.

    H1:Q 1 { Q 2 The average

    content of brand Csoftdrinks differs

    significantly from the

    average content of brand

    P softdrinks.

    They

    dont have

    the same

    amount!

    They have

    the same

    amount

  • 8/8/2019 Final 5 Two-sample T-test

    8/29

    CRITICAL VALUES/REJECTIONREGION

    Test is two-tailed

    E is divided into two Degree of freedom

    df= n1+ n2 2

    =15+10 2= 23

    .025

    -tcritical 0 tcritical

    .025

  • 8/8/2019 Final 5 Two-sample T-test

    9/29

    CRITICAL VALUES/REJECTIONREGION

    Critical values:

    t = 2.069 Rejection Region:

    t > 2.069 or

    t < -2.069-2.069 0 2.069

  • 8/8/2019 Final 5 Two-sample T-test

    10/29

    TEST STATISTIC: Find Sp first

    2

    )1()1(

    21

    2

    22

    2

    11

    !

    nn

    snsnSp

    23)12

    .

    3)(9

    ()9

    3.

    2)(14(

    22

    !pS

    01.3!pS

    Brand C

    Mean = 237 ml s = 2.93 ml

    n =15

    Brand P

    Mean = 240 ml

    s = 3.12 ml

    n =10

  • 8/8/2019 Final 5 Two-sample T-test

    11/29

    TEST STATISTIC: Solve for t

    Brand C

    Mean = 237 ml

    s = 2.93 ml

    n =15

    Brand P

    Mean = 240 ml

    s = 3.12 ml

    n =10

    44.2

    10

    1

    15

    101.3

    0)240237(!

    !t

    21p

    2121

    n

    1

    n

    1S

    )(xxt

    QQ

    !

  • 8/8/2019 Final 5 Two-sample T-test

    12/29

    -2.44 is less than 2.069

    Reject

    -2.44 2.069

    0

    Reject

    -2.069

  • 8/8/2019 Final 5 Two-sample T-test

    13/29

    CONCLUSION

    Reject Ho. The data provides enough evidence to

    show that the average content of brand Cdiffers significantly with the average content of

    Brand P softdrinks.

    We have enough reason to believe that brand C

    has less content than brand P.

  • 8/8/2019 Final 5 Two-sample T-test

    14/29

    Example 1:

    A study is conducted among female Chinese

    Olympic swimmers and those of femaleAmerican Olympic swimmers in terms of the

    circumference of the upper arm, in centimeters,

    while relaxed. Test the hypothesis that Chinese

    swimmers have larger upper arms thanAmerican swimmers at .01 level.

  • 8/8/2019 Final 5 Two-sample T-test

    15/29

    data

    CHINESE AMERICAN

    N=10 N=11

    MEAN= 26.3 cm MEAN= 24.8 cm

    S=1.8 cm S=1.6 cm

    Bigger?

  • 8/8/2019 Final 5 Two-sample T-test

    16/29

    HYPOTHESES

    Ho: Q 1=Q 2 The average

    circumference ofChinese swimmers does

    not differ significantly

    from the average

    circumference of

    American swimmers

    H1: Q 1 >Q 2 The average

    circumference ofChinese swimmers is

    significantly greater than

    the average

    circumference of

    American swimmers

  • 8/8/2019 Final 5 Two-sample T-test

    17/29

    CRITICAL VALUES/REJECTIONREGION

    Test is one-tailed

    E is retained Degree of freedom

    df= n1+ n2 2

    =10+11 2=19

    T table gives 2.539

    0 ?

  • 8/8/2019 Final 5 Two-sample T-test

    18/29

    CRITICAL VALUES/REJECTIONREGION

    Critical value:

    t = 2.539 Rejection Region:

    t > 2.539

    0 2.539

  • 8/8/2019 Final 5 Two-sample T-test

    19/29

    TEST STATISTIC: Find Sp first

    2

    )1()1(

    21

    2

    22

    2

    11

    !

    nn

    snsnSp

    483.1!pS

    Chinese

    Mean = 26.3 s =1.8

    n =10

    American

    Mean = 24.8

    s =1.6

    n =11

    21110

    )6.1)(111()8.1)(110(

    S

    22

    p

    !

  • 8/8/2019 Final 5 Two-sample T-test

    20/29

    TEST STATISTIC: Solve for t

    019.2

    11

    1

    10

    1483.1

    0)8.243.26( !

    !t

    21p

    2121

    n

    1

    n

    1S

    )(xx

    t

    QQ

    !

    Chinese

    Mean = 26.3 s =1.8

    n =10

    American

    Mean = 24.8

    s =1.6

    n =11

  • 8/8/2019 Final 5 Two-sample T-test

    21/29

    Reject

    2.019 2.539

  • 8/8/2019 Final 5 Two-sample T-test

    22/29

    CONCLUSION

    Do Not Reject Ho. The data does not provide

    enough evidence to show that the averagecircumference ofChinese swimmers is

    significantly greater than the average

    circumference ofAmerican swimmer

  • 8/8/2019 Final 5 Two-sample T-test

    23/29

    Estimating Q1 Q2

    21

    2/2121

    11)(

    nnstxx p s! EQQ

  • 8/8/2019 Final 5 Two-sample T-test

    24/29

    Example:

    The following data shows the sales of rice bowls by twoadjacent stores in XUCanteen:

    Booth 1: 103 94 110 87 98

    Booth 2: 97 82 123 92 175 88 118

    Compute for a 95% confidence interval for the differenceof their mean sales.

  • 8/8/2019 Final 5 Two-sample T-test

    25/29

    Microsoft Excel Output

    2.228t Critical two-tail

    1.812t Critical one-tail

    -0.824t Stat10.000df

    0.000Hypothesized Mean Difference

    652.063Pooled Variance

    7.0005.000Observations1035.90576.300Variance

    110.71498.400Mean

    g2g1

  • 8/8/2019 Final 5 Two-sample T-test

    26/29

    Your Assignment:

    Work by Pairs:

    From your electricity consumption/expenditures:

    compare your homes EC/E with that of a

    friends/classmates.

  • 8/8/2019 Final 5 Two-sample T-test

    27/29

    Your Assignment:

    From your electricity consumption/expenditures:

    compare your homes EC/E with that of afriends/classmates.

    1) Create a 95% confidence interval on the

    difference of mean consumption

    2) Create a 95% confidence interval on the

    difference of mean expenditures

  • 8/8/2019 Final 5 Two-sample T-test

    28/29

    Requirement:

    Photocopy all billing statements for each

    member and insert it with yoursolutions/findings in your designated folder

    Each billing statement must be marked by the name

    of the student researcher (you who obtained the

    statement) Short bond paper

  • 8/8/2019 Final 5 Two-sample T-test

    29/29

    Main Entries

    Cover page Names, Section, Date of

    Submission Raw Data

    Summary Statistics

    Interval Estimates

    Interpretation