X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=examples%2Ft-test.sps;h=9064d2574bd8e675ae08eafedca4171a398ab42d;hb=refs%2Fheads%2Fctables10;hp=aa8401685e0a0326e823c725547821d23de76f2e;hpb=7a718e594fb0425e1e8f4ebbfa06463de8e88699;p=pspp diff --git a/examples/t-test.sps b/examples/t-test.sps index aa8401685e..9064d2574b 100644 --- a/examples/t-test.sps +++ b/examples/t-test.sps @@ -9,7 +9,7 @@ input program. * Females have gender 0 -* Create 10 female cases +* Create 8 female cases loop #i = 1 to 8. compute weight = rv.normal (65, 10). compute height = rv.normal(170.7,6.3). @@ -36,19 +36,19 @@ end input program. value labels /gender 0 female 1 male. -* Plot the data as boxplot and histogram +* Plot the data as boxplot examine /variables=weight height beauty iq by gender /plot=boxplot. * Do a Scatterplot to check if weight and height -* might be correlated. As both the weight and the +* might be correlated. As both the weight and the * height for males is higher than for females * the combination of male and female data is correlated. * Weigth increases with height. graph /scatterplot = height with weight. - + * Within the male and female groups there is no correlation between * weight and height. This becomes visible by marking male and female * datapoints with different colour. @@ -58,16 +58,16 @@ graph * The T-Test checks if male and female humans have * different weight, height, beauty and iq. See that Significance for the * weight and height variable tends to 0, while the Significance -* for iq should not go to 0. +* for iq should not go to 0. * Significance in T-Test means the probablity for the assumption that the * height (weight, beauty,iq) of the two groups (male,female) have the same * mean value. As the data for the iq values is generated as normal distribution * with the same mean value, the significance should not go down to 0. t-test groups=gender(0,1) - /variables=weight height beauty iq. + /variables=weight height beauty iq. * Run the Code several times to see the effect that different data -* is generated. Every run is like a new sample from the population. +* is generated. Every run is like a new sample from the population. * Change the number of samples (cases) by changing the * loop range to see the effect on significance!