Sta$s$cs ¡& ¡Experimental ¡Design ¡ with ¡R ¡
Barbara ¡Kitchenham ¡ Keele ¡University ¡
1 ¡
Sta$s$cs & Experimental Design with R Barbara - - PowerPoint PPT Presentation
Sta$s$cs & Experimental Design with R Barbara Kitchenham Keele University 1 Quasi-Experiments 2 Quasi-Experiments Experiments where it is
1 ¡
2 ¡
– When ¡factor ¡of ¡interest ¡cannot ¡be ¡changed ¡
– Difficult ¡to ¡find ¡large ¡number ¡of ¡qualified ¡par$cipants ¡ – So ¡use ¡individuals ¡as ¡their ¡own ¡control ¡
– Are ¡used ¡to ¡assess ¡impact ¡of ¡program ¡change ¡
– In ¡context ¡of ¡SE ¡
¡
3 ¡
4 ¡
5 ¡
6 ¡
– Most ¡quasi-‑experiments ¡take ¡place ¡over ¡a ¡$me ¡period ¡
– A ¡policy ¡or ¡method ¡intended ¡to ¡cause ¡some ¡measurable ¡affect ¡ to ¡change ¡
– Units ¡not ¡receiving ¡the ¡treatment ¡that ¡are ¡matched ¡in ¡some ¡way ¡ to ¡the ¡units ¡receiving ¡treatment ¡
– Measurements ¡taken ¡before ¡the ¡treatment ¡condi$on ¡is ¡applied ¡
– Measurements ¡taken ¡before ¡the ¡treatment ¡condi$on ¡is ¡applied ¡
7 ¡
8 ¡
– Read ¡a ¡program ¡and ¡iden$fy ¡defects ¡ – Receive ¡training ¡in ¡defect ¡detec$ng ¡method ¡ – Read ¡another ¡program ¡and ¡iden$fy ¡defects ¡
9 ¡
10 ¡
– Weak ¡because ¡the ¡groups ¡may ¡differ ¡on ¡more ¡than ¡just ¡ treatment ¡
– Students ¡volunteer ¡for ¡extra ¡courses ¡on ¡Formal ¡ methods ¡ – Volunteers ¡and ¡non-‑volunteers ¡compared ¡on ¡ examina$on ¡results ¡ – Results ¡aXributed ¡benefits ¡of ¡Formal ¡methods ¡
X ¡ O1 ¡ O1 ¡
11 ¡
12 ¡
O1 ¡ ¡ ¡ ¡ ¡ ¡ ¡X ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡O2 ¡ O1 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡O2 ¡
13 ¡
0.50 0.55 0.60
DinD plot
time
mean of abscore 1 ist 1
¡
14 ¡
15 ¡
X1 ¡ O1 ¡ X2 ¡ O2 ¡ X2 ¡ O1 ¡ X1 ¡ O2 ¡
2 ¡
for ¡analysis, ¡assumed ¡approximately ¡0 ¡
16 ¡
Par$cipant ¡ Expected ¡Response ¡ Cross-‑Over ¡ Difference ¡ Period ¡ Difference ¡ Period ¡1 ¡ Period ¡2 ¡ TA-‑TB ¡ P2-‑P1 ¡ j ¡ ¡ (Treatment ¡A) ¡ ¡ (Treatment ¡B) ¡ k ¡ ¡ (Treatment ¡B) ¡ ¡ (Treatment ¡A) ¡ Sum ¡ ¡ ¡
¡
17 ¡
Histogram of OOmFP - FPA
OOmFP - FPA Density
10 20 30 40 50 60 0.000 0.005 0.010 0.015 0.020 0.025 0.030 10 20 30 40 50
Box plot of Treatment effect of OOmFP
OOmFP-FPA
– 10 ¡used ¡FPA ¡first ¡ – 10 ¡used ¡OOmFPA ¡first ¡
– Use ¡standard ¡“t” ¡test ¡on ¡Cross-‑over ¡values ¡(i.e. ¡differences) ¡
– Alterna$vely ¡use ¡trimmed ¡mean ¡
18 ¡
19 ¡
FPA OOmFP 120 130 140 150 160 170
FPA counts for subjects in Cross-Over
Label indicates which treatment was first FPA OOmFP 150 155 160 165 170
OOmFPA counts for subjects in Cross-Over
Label indicates which treatment was first
20 ¡
21 ¡
1984 1986 1988 1990 1992 1994 1996 1998 1.0 1.5 2.0 2.5 3.0 3.5
Productivity per year (Effort per unit size)
Year Productivity
periods ¡
the ¡second ¡$me ¡period ¡
22 ¡
23 ¡
– Due ¡to ¡text ¡book ¡& ¡ar$cles ¡in ¡early ¡2000’s ¡
– Subjec$ve ¡assessment ¡ – Quality ¡scale ¡based ¡on ¡9 ¡ques$ons ¡
– 70 ¡ar$cles ¡in ¡all, ¡ – Assessed ¡separately ¡by ¡three ¡different ¡people ¡
– OmiXed ¡years ¡2003-‑2005 ¡ ¡ – Because ¡those ¡would ¡be ¡a ¡period ¡of ¡transi$on ¡
24 ¡
25 ¡
5 10 15 20 25 30 1992 1996 2000 2004 2008 2012 Year Total ¡Score
26 ¡
OA ¡ C ¡ X ¡ O2 ¡ OA ¡ C ¡ O2 ¡
27 ¡ 4.5 5.0 5.5 6.0 6.5 7.0 7 8 9 10 Assignment Variable Score Post test score) 4.5 5.0 5.5 6.0 6.5 7.0 7 8 9 10 Assignment Variable Score Post test score)
Before ¡ Aeer ¡
28 ¡