46
Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Embed Size (px)

Citation preview

Page 1: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Statistics for Neurosurgeons

A David MendelowBarbara A Gregson

Newcastle upon TyneEngland, UK

Page 2: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 3: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 4: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

ctRedirector.jpg

Page 5: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 6: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 7: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 8: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 9: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

The Normal Distribution

Page 10: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 11: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Means and standard errors

Page 12: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 13: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 14: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 15: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Comparison of curves(Sig. dif vs. Sig. bigger)

• Bell shaped: Student’s t test• Paired data: Student’s paired t

test• Skewed curves: Non parametric

tests– Sign test (+ve –ve)– Wilcoxson ranked sum test

Page 16: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 17: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 18: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Types of data

• Binary eg Yes/No, Male/Female

• Nominal eg eye colour (blue/green/brown)

• Ordinal eg normal/weak/paralysed, GCS eye

• Counts no. of aneurysms, no. of operations

• Continuous width of haematoma

Page 19: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Displaying data

• Bar chart• Pie chart

• Histogram

• Box and whisker• Scatterplot

Page 20: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Bar Chart and Pie Chart

Total GCS at randomisation in STICH II Figures for the first 234 cases

Median GCS=13

Males, 54%

Females, 46%

Gender of patients in STICH II Figures for the first 234 cases

Page 21: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Histograms

Figures produced on 19/11/2009: 234 cases

Mean = 63.8 Std = 12.85Median = 65 yearsQuartiles = 55, 74Min = 20 years, Max = 94 years

Mean = 39.5 Std = 21.44Median = 35mlQuartiles = 22, 54Min =10ml, Max =96ml

Page 22: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Boxplot (Box and Whisker Plot)

Plot of volume of haematoma by age group in STICH).

Page 23: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Scatterplot

Plot of 1,490 simultaneous end tidal and arterial CO2 measurements. Dot areas are proportional to

the number of measurements with that combination of values. End tidal CO2 values tend to be

lower than corresponding PaCO2 values (most points are below the equivalence line).

Page 24: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Summarising data

• Central tendency– Mean– Median– Mode

• Spread– Range– Interquartile range– Standard deviation/variance

Page 25: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Confidence intervals

– statistic ± (1.96 x standard error)

– e.g. difference between means ± (1.96 x standard error of difference)

Page 26: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Comparison of means

• Sample mean v population mean– One sample t-test

• Two small sample means– T-test (assuming equal variance)– T-test (assuming unequal variance)

• Two paired samples means– Paired t-test

• Large samples– Z-test

Page 27: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Comparison of tables (2x2)

• Fisher’s exact testp = (r1!r2!c1!c2!)/n!a!b!c!d!

• Chi Squared testObserved vs. expected frequencies

a b r1

c d r2

c1 c2 n

Page 28: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Chi squared testa b r1

c d r2

c1 c2 n

• McNemar’s = (a - d)2/(a + d) • degrees-of-freedom = (rows - 1)

(columns - 1) = 1

Page 29: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Relative risk sensitivity and specificity

Test +ve Test -ve

Disease yes a b r1

Disease no c d r2

• Sensitivity = a/r1• Specificity = d/r2

• Positive predictive value = a/a+c• Negative predictive value = d/b+d

Page 30: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Comparison of related values: a.Linear regression (best

linear fit)

Page 31: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Linear regression (best linear fit)

Page 32: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 33: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 34: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 35: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Comparison of related values: b.Altman Bland Plots

Page 36: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 37: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK
Page 38: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Statistical tests comparing two samples

• Binary – Large frequencies – χ2, compare proportions, odds ratio– Small frequencies – Fisher’s exact

• Nominal not ordered– Large frequencies – χ2, – Small frequencies – combine categories

• Nominal ordered– Large frequencies – χ2 for trend

• Ordinal– Mann-Whitney U test

• Continuous – Large samples – Normal distribution for means– Small normal samples – Two sample t test– Small non normal – Mann-Whitney U test

Page 39: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Statistical tests for paired or matched data

• Binary McNemar

• Nominal Stuart test

• Ordinal Sign test

• Continuous (small, non-normal) Wilcoxonmatched pairs

• Continuous (small, normal) Paired t-test

• Continuous (large) Normal distribution

Page 40: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Choice of test for independent observations

Outcome variable

Nominal Categ >2 Catrg Ordered

Ordinal Non-normal

Normal

Input variable

Nominal χ2

Fisher

χ2 χ2 trend

Mann-Whitney

Mann-Whitney

Mann-WhitneyLog rank

Student’s tNormal test

Categ >2 χ2 χ2 χ2 Kruskal-Wallis

Kruskal-Wallis

Analysis of variance

Categ Ordered

χ2 trend

Mann-Whitney

χ2 Kendall’s rank

Kendall’s rank

Kendall’s rank

Kendall’s rank

Linear regression

Ordinal Logistic regression

Kruskal-Wallis

Kendall’s rank

Spearman rank

Spearman rank

Spearman rank Linear regression

Non-normal

Logistic regression

Kruskal-Wallis

Kendall’s rank

Spearman rank

Spearman rank

Spearman rank and

linear regression

Normal Logistic regression

Logistic regression

Spearman rank

Spearman rank

Spearman rank and

linear regression

Pearson and Linear

regression

Page 41: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Relative risk and odds ratios

With disease Without disease

Male a b r1

Female c d r2

• Risk for men p1 = a/r1• Risk for women p2 = c/r2

– Relative risk = p1/p2• Odds for men = a/b• Odds for women = c/d

– Odds ratio = (a/b)/(c/d) = ad/bc

Page 42: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Multivariate techniques

• Multiple linear regression• Logistic regression• Survival analysis

– Kaplan Meier– Cox proportional hazard model

Page 43: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Survival Functions

days

2101801501209060300

Pro

bab

ility

of s

urvi

val

1.0

.9

.8

.7

.6

Early Surgery

Initial Conservative Treatment

KaplanMeierPlot ofSurvival

Page 44: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Type I and type II errors

Null hypothesis

False True

Test result

Significant

Power(1-)

Type I error ()

Not significant

Type II error ()

Page 45: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

ROC Curves

• Multiple chi squared 2 x 2 tests• See www.

Page 46: Statistics for Neurosurgeons A David Mendelow Barbara A Gregson Newcastle upon Tyne England, UK

Figure 1: ROC curve for % change in SJVO2 as a predictor of clinical ischaemia during awake carotid endarterectomy

Multiple 2x2 tables = ROC Curve