t-test for one sample & descriptive statistics

5
%t-test for one, two sample [h,p,ci,stats] = ttest(A1,10, 0.05, 'left') h = 1 %Hipótesis nula rechazada p = 1.2332e-06 ci = -Inf 5.6410 stats = tstat: -6.6204 df: 19 sd: 3.9855 %t-test for one, two sample [h,p,ci,stats] = ttest(A2,10, 0.05, 'left') h = 0 %Hipótesis nula aceptada p = 0.0541 ci = -Inf 10.0635 stats = tstat: -1.6854 df: 19 sd: 6.5008 %t-test for one, two sample [h,p,ci,stats] = ttest(B1,10, 0.05, 'right') h = 1 %Hipótesis nula rechazada p = 1.2332e-06 ci = 14.3590 Inf stats = tstat: 6.6204 df: 19 sd: 3.9855 %t-test for one, two sample [h,p,ci,stats] = ttest(B2,10, 0.05, 'right') h = 0 %Hipótesis nula aceptada p = 0.1647 ci = 8.8728 Inf stats = tstat: 1.0011 df: 19 sd: 6.9242 %t-test for one, two sample [h,p,ci,stats] = ttest(C1,10, 0.05, 'both') h = 0 %Hipótesis nula aceptada p = 0.2718 ci = 8.2904 10.5096 stats = tstat: -1.1318 df: 19 sd: 2.3709 %t-test for one, two sample [h,p,ci,stats] = ttest(C2,10, 0.05, 'both') h = 0 %Hipótesis nula aceptada p = 0.4049 ci = 8.8342 12.7658 stats = tstat: 0.8518 df: 19 sd: 4.2003

Upload: roberto-garcia

Post on 17-Nov-2015

215 views

Category:

Documents


1 download

DESCRIPTION

T-test for One Sample & Descriptive Statistics

TRANSCRIPT

  • %t-test for one, two sample

    [h,p,ci,stats] = ttest(A1,10, 0.05, 'left')

    h =

    1 %Hiptesis nula rechazada

    p =

    1.2332e-06

    ci =

    -Inf

    5.6410

    stats =

    tstat: -6.6204

    df: 19

    sd: 3.9855

    %t-test for one, two sample

    [h,p,ci,stats] = ttest(A2,10, 0.05, 'left')

    h =

    0 %Hiptesis nula aceptada

    p =

    0.0541

    ci =

    -Inf

    10.0635

    stats =

    tstat: -1.6854

    df: 19

    sd: 6.5008

    %t-test for one, two sample

    [h,p,ci,stats] = ttest(B1,10, 0.05, 'right')

    h =

    1 %Hiptesis nula rechazada

    p =

    1.2332e-06

    ci =

    14.3590

    Inf

    stats =

    tstat: 6.6204

    df: 19

    sd: 3.9855

    %t-test for one, two sample

    [h,p,ci,stats] = ttest(B2,10, 0.05, 'right')

    h =

    0 %Hiptesis nula aceptada

    p =

    0.1647

    ci =

    8.8728

    Inf

    stats =

    tstat: 1.0011

    df: 19

    sd: 6.9242

    %t-test for one, two sample

    [h,p,ci,stats] = ttest(C1,10, 0.05, 'both')

    h =

    0 %Hiptesis nula aceptada

    p =

    0.2718

    ci =

    8.2904

    10.5096

    stats =

    tstat: -1.1318

    df: 19

    sd: 2.3709

    %t-test for one, two sample

    [h,p,ci,stats] = ttest(C2,10, 0.05, 'both')

    h =

    0 %Hiptesis nula aceptada

    p =

    0.4049

    ci =

    8.8342

    12.7658

    stats =

    tstat: 0.8518

    df: 19

    sd: 4.2003

  • %t-test for one, two sample

    [h,p,ci,stats] = ttest(D1,10, 0.05, 'both')

    h =

    0 %Hiptesis nula aceptada

    p =

    0.2718

    ci =

    9.4904

    11.7096

    stats =

    tstat: 1.1318

    df: 19

    sd: 2.3709

    %t-test for one, two sample

    [h,p,ci,stats] = ttest(D2,10, 0.05, 'both')

    h =

    0 %Hiptesis nula aceptada

    p =

    0.5040

    ci =

    8.7565

    12.4435

    stats =

    tstat: 0.6812

    df: 19

    sd: 3.9390

  • Descriptive statistics Group 1

    muA1 =

    4.1000

    sigmaA1 =

    3.9855

    muB1 =

    15.9000

    sigmaB1 =

    3.9855

    muC1 =

    9.4000

    sigmaC1 =

    2.3709

    muD1 =

    10.6000

    sigmaD1 =

    2.3709

    Descriptive statistics Group 2

    muA2 =

    7.5500

    sigmaA2 =

    6.5008

    muB2 =

    11.5500

    sigmaB2 =

    6.9242

    muC2 =

    10.8000

    sigmaC2 =

    4.2003

    muD2 =

    10.6000

    sigmaD2 =

    3.9390

  • A B C D0

    2

    4

    6

    8

    10

    12

    14

    16

    18

    20Comparacin de Preferencias en Dinero Real

    Preferencias

    Frec

    uenc

    ia d

    e la

    pre

    fere

    ncia

  • A B C D0

    2

    4

    6

    8

    10

    12

    14

    16

    18

    20Comparacin de Preferencias en Dinero Falso

    Preferencias

    Frec

    uenc

    ia d

    e la

    pre

    fere

    ncia