Diff for "FAQ/ChiTrend" - CBU statistics Wiki
location: Diff for "FAQ/ChiTrend"
Differences between revisions 1 and 10 (spanning 9 versions)
Revision 1 as of 2006-08-17 09:26:06
Size: 984
Editor: PeterWatson
Comment:
Revision 10 as of 2006-08-17 14:18:26
Size: 2699
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Line 6: Line 5:
                     Time1 Time2 Time3
Correct 3 6 10
Incorrect 9 6 2
||||||||<25% style="TEXT-ALIGN: center"> ||<25% style="TEXT-ALIGN: center"> '''Time 1''' ||<25% style="TEXT-ALIGN: center"> '''Time 2'''||<25% style="TEXT-ALIGN: center"> '''Time 3''' ||
||||||||<25% style="VERTICAL-ALIGN: top"> Correct ||<25% style="VERTICAL-ALIGN: top"> 3 ||<25% style="VERTICAL-ALIGN: top"> 6 ||<25% style="VERTICAL-ALIGN: top"> 10 ||
||||||||<25% style="VERTICAL-ALIGN: top"> Incorrect ||<25% style="VERTICAL-ALIGN: top"> 9 ||<25% style="VERTICAL-ALIGN: top"> 6 ||<25% style="VERTICAL-ALIGN: top"> 2 ||
Line 14: Line 13:
Chi-square Degrees of Freedom

Linear 7.96 on 1 p=.005
Lack of fit 0.29 on 1 p=.130

Total 8.25 on 2 (Pearson chi-square)
||||||||<25% style="TEXT-ALIGN: center"> '''Model''' ||<25% style="TEXT-ALIGN: center"> '''Chi-square''' ||<25% style="TEXT-ALIGN: center"> '''Df'''||<25% style="TEXT-ALIGN: center"> '''p-value''' ||
||||||||<25% style="VERTICAL-ALIGN: top"> Linear ||<25% style="VERTICAL-ALIGN: top"> 7.96 ||<25% style="VERTICAL-ALIGN: top"> 1 ||<25% style="VERTICAL-ALIGN: top"> 0.005 ||
||||||||<25% style="VERTICAL-ALIGN: top"> Lack of Fit ||<25% style="VERTICAL-ALIGN: top"> 0.29 ||<25% style="VERTICAL-ALIGN: top"> 1 ||<25% style="VERTICAL-ALIGN: top"> 0.130 ||
||||||||<25% style="VERTICAL-ALIGN: top"> Total ||<25% style="VERTICAL-ALIGN: top"> 8.25 ||<25% style="VERTICAL-ALIGN: top"> 2 ||<25% style="VERTICAL-ALIGN: top"> 0.004 ||
||||||||<25% style="VERTICAL-ALIGN: top"> ||<25% style="VERTICAL-ALIGN: top"> (Pearson Chi-square) ||<25% style="VERTICAL-ALIGN: top"> ||<25% style="VERTICAL-ALIGN: top"> ||
Line 24: Line 22:
Denoting the time points by –1,0 and 1 and regressing these on the observed Denoting the time points by –1,0 and 1 and regressing these on the observed proportions correct give regression estimates of the above linear trend


||||||||<70% style="VERTICAL-ALIGN: top"> Observed proportion correct ||<10% style="VERTICAL-ALIGN: top"> 0.33 ||<10% style="VERTICAL-ALIGN: top"> 0.50 ||<10% style="VERTICAL-ALIGN: top"> 0.83 ||
||||||||<70% style="VERTICAL-ALIGN: top"> Expected proportion correct ||<10% style="VERTICAL-ALIGN: top"> 0.30 ||<10% style="VERTICAL-ALIGN: top"> 0.55 ||<10% style="VERTICAL-ALIGN: top"> 0.80 ||
||||||||<70% style="VERTICAL-ALIGN: top"> (Fitting a linear trend) ||<10% style="VERTICAL-ALIGN: top"> ||<10% style="VERTICAL-ALIGN: top"> ||<10% style="VERTICAL-ALIGN: top"> ||

A more powerful form of chi-square specifically tests for a linear trend in proportions across groups. For example, proportion remembered correctly using a memory aid.

Example

Time 1

Time 2

Time 3

Correct

3

6

10

Incorrect

9

6

2

Does the proportion correct change linearly over time?

The chi-square testing the presence of a linear trend is outputted by SPSS CROSSTABS as the Linear-by-Linear association term. The lack of fit is the difference between the Pearson chi-square value and the linear-by-linear one.

Model

Chi-square

Df

p-value

Linear

7.96

1

0.005

Lack of Fit

0.29

1

0.130

Total

8.25

2

0.004

(Pearson Chi-square)

So there is a linear trend providing a reasonable fit.

Denoting the time points by –1,0 and 1 and regressing these on the observed proportions correct give regression estimates of the above linear trend

Observed proportion correct

0.33

0.50

0.83

Expected proportion correct

0.30

0.55

0.80

(Fitting a linear trend)

None: FAQ/ChiTrend (last edited 2013-08-28 10:47:50 by PeterWatson)