caseism

MONTE CARLE ON STATA SOFTWARE Case Solution & Answer

MONTE CARLE ON STATA SOFTWARE Case Solution

Appendix

Results of Tests before Simulation

Two Sample Mean Comparison test

. ttest MilesperGallonforUSCars == MilesPerGallonforJapaneseCa, unpaired

Two-sample t test with equal variances

——————————————————————————

Variable |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]

———+——————————————————————–

Milesp~s |      80      15.975    .4689657    4.194556    15.04155    16.90845

MilesP~a |      80     30.4625    .6755082    6.041929    29.11793    31.80707

———+——————————————————————–

combined |     160    23.21875    .7056974    8.926444      21.825     24.6125

———+——————————————————————–

diff |            -14.4875    .8223382               -16.11169   -12.86331

——————————————————————————

diff = mean(MilesperGallon~s) – mean(MilesPerGallon~a)        t = -17.6174

Ho: diff = 0                                     degrees of freedom =      158

Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0

Pr(T < t) = 0.0000         Pr(|T| > |t|) = 0.0000          Pr(T > t) = 1.0000

Mann-Whitney Test

. ranksum MilesPerGallon, by(GroupingVariableCars)

Two-sample Wilcoxon rank-sum (Mann-Whitney) test

GroupingVa~s |      obs    rank sum    expected

————-+———————————

0 |       37        1530      1498.5

1 |       43        1710      1741.5

————-+———————————

combined |       80        3240        3240

unadjusted variance    10739.25

adjustment for ties      -37.64

———-

adjusted variance      10701.61

Ho: MilesP~n(Groupi~s==0) = MilesP~n(Groupi~s==1)

z =   0.304

Prob > |z| =   0.7607

Results of Tests after Simulation

Two Sample Mean Comparison Test

. ttest MilesPerGallon == SimulatedrMilesPerGallon, unpaired

Two-sample t test with equal variances

——————————————————————————

Variable |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]

———+——————————————————————–

MilesP~n |      80    23.21875    .3903345    3.491258    22.44181    23.99569

Simula~n |      80     22.0625    .3455613    3.090794    21.37468    22.75032

———+——————————————————————–

combined |     160    22.64063    .2638525      3.3375    22.11952    23.16173

———+——————————————————————–

diff |             1.15625    .5213191                .1265967    2.185903

——————————————————————————

diff = mean(MilesPerGallon) – mean(SimulatedrMile~n)          t =   2.2179

Ho: diff = 0                                     degrees of freedom =      158

Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0

Pr(T < t) = 0.9860         Pr(|T| > |t|) = 0.0280          Pr(T > t) = 0.0140

Mann-Whitney Test

. ranksum SimulatedrMilesPerGallon, by(GroupingVariableCars)

Two-sample Wilcoxon rank-sum (Mann-Whitney) test

GroupingVa~s |      obs    rank sum    expected

————-+———————————

0 |       37      1615.5      1498.5

1 |       43      1624.5      1741.5

————-+———————————

combined |       80        3240        3240

unadjusted variance    10739.25

adjustment for ties     -114.16

———-

adjusted variance      10625.09

Ho: Simula~n(Groupi~s==0) = Simula~n(Groupi~s==1)

z =   1.135

Prob > |z| =   0.2563…………….

This is just a sample partial work. Please place the order on the website to get your own originally done case solution

 

Share This

LOOK FOR A FREE CASE STUDY SOLUTION

JUST REGISTER NOW AND GET 50% OFF ON EACH CASE STUDY