Advanced Statistics
Janette Walde
janette.walde@uibk.ac.at Department of Statistics University of Innsbruck
Janette Walde Advanced Statistics
Advanced Statistics Janette Walde janette.walde@uibk.ac.at - - PowerPoint PPT Presentation
Advanced Statistics Janette Walde janette.walde@uibk.ac.at Department of Statistics University of Innsbruck Janette Walde Advanced Statistics Introduction We are pattern-seeking story-telling animals. (Edward Leamer) Statistics does
janette.walde@uibk.ac.at Department of Statistics University of Innsbruck
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
1
2
Janette Walde Advanced Statistics
3
4
Janette Walde Advanced Statistics
1
2
Janette Walde Advanced Statistics
3
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
1
2
Janette Walde Advanced Statistics
3
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
σ
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
−2 −1 1 2 −2 −1 1 2 Normal Q−Q Plot Theoretical Quantiles Sample Quantiles −2 −1 1 2 10 20 30 40 50 Normal Q−Q Plot Theoretical Quantiles Sample Quantiles −4 −2 2 4 0.0 0.1 0.2 0.3 0.4 x density
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
58 60 62 64 66 68 70 72 74 76 78 80 58 60 62 64 66 68 70 72 74 76 78 80 Father’s height (in) Son’s height (in)
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
−1.0 −0.5 0.0 0.5 1.0 1.5 2.0 5 10 15 20 NAP Richness
Janette Walde Advanced Statistics
−1.0 −0.5 0.0 0.5 1.0 1.5 2.0 5 10 15 20 NAP Richness
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
b b b b b
Janette Walde Advanced Statistics
b b b b b
Janette Walde Advanced Statistics
b b b b b
bc bc bc bc bc
Janette Walde Advanced Statistics
b b b b b
bc bc bc bc bc
Janette Walde Advanced Statistics
b b b b b
bc bc bc bc bc
Janette Walde Advanced Statistics
b b b b b
Janette Walde Advanced Statistics
b b b b b
bc bc bc bc bc
Janette Walde Advanced Statistics
b b b b b
bc bc bc bc bc
Janette Walde Advanced Statistics
b b b b b
bc bc bc bc bc
1
2
3
4 e2
5
i e2 i = i(yi −
Janette Walde Advanced Statistics
1
2
3
4
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
SStotal
SStotal
Janette Walde Advanced Statistics
5 10 15 4 6 8 10 12 x1 y1 5 10 15 4 6 8 10 12 x2 y2 5 10 15 4 6 8 10 12 x3 y3 5 10 15 4 6 8 10 12 x4 y4
Anscombe’s 4 regression data sets
Reference: Anscombe, Francis J. (1973) Graphs in statistical analysis. American Statistician, 27, 17–21. Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
1
2
3
4
5
6
7
Janette Walde Advanced Statistics
j )
Janette Walde Advanced Statistics
2 4 6 8 10 −5 5 10 15 Fitted values Residuals lm(Richness ~ NAP) Residuals vs Fitted 22 9 10 −2 −1 1 2 −1 1 2 3 Theoretical Quantiles Standardized residuals lm(Richness ~ NAP) Normal Q−Q 22 9 10
Janette Walde Advanced Statistics
n + (xi−¯ x)2
x)2
Yj− ˆ Yj(i)) p·MSE
Janette Walde Advanced Statistics
10 20 30 40 0.02 0.04 0.06 0.08 0.10 Sample index Hat values
10 20 30 40 0.00 0.05 0.10 0.15 0.20 0.25
Cook’s distance lm(Richness ~ NAP) Cook’s distance 22 10 9
Janette Walde Advanced Statistics
10 20 30 40 −0.1 0.1 0.3 Index of omitted observation Intercept 10 20 30 40 −0.2 0.0 Index of omitted observation NAP slope
Janette Walde Advanced Statistics
(yi−ˆ yi)
MSresidual(1−hi)
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
2 4 6 8 10 −1 1 2 3
Standardized residuals
Fitted values Residuals 2 4 6 8 10 −1 1 2 3 4
Studentised residuals
Fitted values Residuals
Janette Walde Advanced Statistics
20000 40000 60000 80000 1000 2000 3000 4000 5000 6000 7000
64 mammals including 3 dinosaurs
body weight [kg] brain weight [g]
Janette Walde Advanced Statistics
1e−02 1e+00 1e+02 1e+04 1e−01 1e+01 1e+03
64 mammals including 3 dinosaurs
body weight [kg] brain weight [g]
Lesser Short−tailed Shrew Little Brown Bat Mouse Big Brown Bat Musk Shrew Star Nosed Mole Eastern American Mole Ground Squirrel Tree Shrew Golden Hamster Mole Rate Galago Rat Chinchilla Desert Hedgehog Rock Hyrax (a) European Hedgehog Tenrec Arctic Ground Squirrel African Giant Pouched Rat Guinea Pig Mountain Beaver Slow Loris Genet Phalanger North American Opossum Tree Hyrax Rabbit Echidna Cat Artic Fox Nine−banded Armadillo Water Opossum Rock Hyrax (b) Red Fox Raccoon Roe Deer Goat Kangaroo Gray Wolf Sheep Giant Armadillo Gray Seal Jaguar Brazilian Tapir Donkey Pig Protoceratops Okapi Camptosaurus Cow Horse Giraffe Stegosaurus Allosaurus Asian Elephant Anatosaurus Iguanodon African Elephant Tyrannosaurus Triceratops Diplodocus Blue Whale Br1e−02 1e+00 1e+02 1e+04 1e−01 1e+01 1e+03
64 mammals including 3 dinosaurs
body weight [kg] brain weight [g]
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
200 500 1000 2000 5000 1000 2000 3000 4000 model$fitted.values model$residuals
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
2 4 6 8 −2 −1 1 logmodel$fitted.values logmodel$residuals
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
sstotal/(n−1)
Janette Walde Advanced Statistics
1
2
Janette Walde Advanced Statistics
3
Janette Walde Advanced Statistics
1
2
Janette Walde Advanced Statistics
3
Janette Walde Advanced Statistics
Janette Walde Advanced Statistics
1
2
3
Janette Walde Advanced Statistics