Professional Documents
Culture Documents
Dr Alberto Corrias
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 1 / 35
PollEv game standings
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 2 / 35
End Stage Renal Disease (ESRD) and Dialysis
†
Image by Yassine Mrabet is licensed under CC BY-SA 3.0
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 3 / 35
Dialysis and heart disease
Key message
Dialysis patients are at high risk of cardiac disease. Interaction
between blood and artificial materials during dialysis may play a role?
https://youtu.be/CX8uI4NVLYw https://youtu.be/AgF_GMwJlMA
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 4 / 35
ORAIP: what are these?
†
Betteridge D.J, What is oxidative stress? Metabolism. 2000 Feb;49(2 Suppl 1):3-8.
†
Yao T et al. Oxidative Stress-Responsive Apoptosis Inducing Protein (ORAIP) Plays a Critical Role in High
Glucose-Induced Apoptosis in Rat Cardiac Myocytes and Murine Pancreatic β-Cells. Cells 2017 Oct 18;6(4).
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 5 / 35
What causes oxidative stress?
Three major causes†
1 xenobiotics (”foreign substances”)
2 immune system activation
3 exposure to radiations
†
Francois Gagne. Biochemical Ecotoxicology Principles and Methods. Academic Press. 2014. Credits for the
image: wikimedia commons
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 6 / 35
Our case study: key questions
†
Tanaka et al. Kidney International Reports (2016) 1, 321–326
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 7 / 35
ORAIP data: control versus dialysis patients
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 8 / 35
ORAIP data: control versus dialysis patients
XESRD − Xconrol
tstat = p = 22.84
sp 1/nESRD + 1/ncontrol
q 2 2
(nESRD −1)sESRD +(ncontrol −1)scontrol
where sp = nESRD +ncontrol −2 = 15.02
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 10 / 35
Determination of tcrit using tables - same as week 3
We choose α = 0.05 to
identify tcrit = 1.98
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 11 / 35
Performing the Student t test (95%) - same as week 3
T (100)
|t| > tcrit : we reject the NULL hypothesis (22.84 >> 1..98!)
The sum of the areas in purple is the p-value (very small here)
Without further computations, we already know p < 0.05
The exact p-value can be easily computed by any software or
approximated using tables. In this case, p ∼ 10− 41
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 12 / 35
Power of the test
Before conducting the study, the investigators did not know that
there was such a difference between in ORAIP between control and
ESRD patients. One interesting question for them could have been
Before conducting the study
If the difference in ORAIP is only δ = 5ng /ml, what are the chances
that our test (ncontrol = 40, nESRD = 62, assume σ ∼ sp = 15.02) will
fail to detect such an effect?
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 13 / 35
Power of the test: calculations
−1.98 0 1.98
0 1.64
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 14 / 35
Power of the test: calculations
0 0.34
The power of our test is given by the area under the curve to the
right of 0.34 of the Student t distribution with 62 + 40 − 2 = 100
degrees of freedom. Any statistical software (e.g., Python cdf
function) can calculate such area. Result is 0.366.
Interpretation
If the difference in ORAIP is δ = 5ng /ml, the chances that our test
(ncontrol = 40, nESRD = 62, assuming σ ∼ sp = 15.02) will detect the
effect are 36.6% (β = 100 − 36.6 = 64.4% of missing the effect by
failing to reject the NULL hypothesis).
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 15 / 35
Determinants of the power of a test
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 16 / 35
Determinants of the power of a test
Our test was conducted with ncontrol = 40, nESRD = 62 and yielded a
power of 0.366. Assuming the same values of σ and δ, what is a
plausible value for the same test with ncontrol = 62, nESRD = 40
A 0.1
B 0.6
C 0.366
δ
Answer:0.366. Assuming the same σ, D = √1 will not
σ /ncontrol +1/nESRD
change by swapping nESRD with ncontrol
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 17 / 35
Power versus δ (ncontrol = 40, nESRD = 62, σ ∼ sp = 15.02)
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 18 / 35
Power versus n (σ ∼ sp = 15.02)
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 19 / 35
Determinants of the power of a test
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 20 / 35
Determinants of the power of a test
95%
−tcrit 0 95%
tcrit
0 D
99%
−tcrit 0 99%
tcrit
0 D
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 21 / 35
Power versus σ
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 22 / 35
Calculation question (3 points)
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 23 / 35
Calculation question: answer
−tcrit 0 tcrit
t ∗ = tcrit − D
0 D
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 25 / 35
Calculation question: answer
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 26 / 35
ORAIP before and after dialysis
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 27 / 35
About the paired t test
If the ORAIP data AFTER the dialysis session were collected from a
group of patients that is completely different from the group of
patients used for the ORAIP data before the dialysis session, would
you still use a paired t test for your analysis? Why?
Answer: No, paired t test is only used when data are collected from
the same patient before and after a treatment.
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 28 / 35
ORAIP before and after dialysis
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 29 / 35
Paired t test steps
H0 : mean difference between before and after = 0
H1 : mean difference between before and after 6= 0
1 Compute average of the differences
20.17 − 4.97 − 67.92 + 39.26 + ...
X diff = = −9.48
62
2 Compute standard deviation of the differences
s
(20.17 − (−9.48))2 + (−4.97 − (−9.48))2 + ...
sdiff = = 24.5
62 − 1
X diff − 0
tstat = √
sdiff / 62
= −3.05
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 30 / 35
Determination of tcrit using tables
We choose α = 0.05
to identify tcrit ∼ 2.000
(dof is actually 61)
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 31 / 35
Performing the paired t test
T (61)
†
Note that the numbers in the paper are different from our case study because I had no access to the original data
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 33 / 35
How results are reported
†
Note that the numbers in the paper are different from our case study because I had no access to the original data
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 34 / 35
Lecture Summary
BN2102 Bioengineering Data Analysis Power and sample size case study: dialysis 35 / 35