quantitative methods regression. examples for linear regression do more brightly coloured birds have...
Post on 20-Dec-2015
221 views
TRANSCRIPT
![Page 1: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/1.jpg)
Quantitative Methods
Regression
![Page 2: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/2.jpg)
Regression
Examples for linear regression
• Do more brightly coloured birds have more parasites?• How should we estimate merchantable volume of wood
from the height of a living tree?• How is pest infestation late in the season affected by
the concentration of insecticide applied early in the season?
![Page 3: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/3.jpg)
Regression
Similarities to analysis of variance
![Page 4: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/4.jpg)
x
y
M
Y
Regression
Geometry
![Page 5: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/5.jpg)
x
y
M
Y
Regression
Geometry
![Page 6: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/6.jpg)
x
y
M
Y
Regression
Geometry
![Page 7: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/7.jpg)
x
y
M
Y
Regression
Geometry
![Page 8: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/8.jpg)
x
y
M
Y
Regression
Geometry
![Page 9: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/9.jpg)
x
y
M
Y
Regression
Geometry
![Page 10: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/10.jpg)
x
y
M
Y
F1
Regression
Geometry
![Page 11: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/11.jpg)
x
y
M
Y
F1
Regression
Geometry
![Page 12: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/12.jpg)
x
y
M
Y
Sum of squares of residuals = Squared distance from Y to F1
F1
Regression
Geometry
![Page 13: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/13.jpg)
x
y
M
Y
Regression
Geometry
![Page 14: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/14.jpg)
M
Y
F1 F2F3x
y
Regression
Geometry
![Page 15: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/15.jpg)
M
Y
F1 F2F3x
y
Regression
Geometry
![Page 16: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/16.jpg)
Regression
Geometry
![Page 17: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/17.jpg)
Regression
x F0 F1 F2 F314.9 32.5 32.0 31.6 31.014.3 32.5 31.8 31.1 30.219.3 32.5 33.8 35.1 36.814.7 32.5 31.9 31.4 30.712.4 32.5 31.1 29.6 27.814.7 32.5 31.9 31.4 30.712.5 32.5 31.1 29.7 27.917.9 32.5 33.2 34.0 34.916.5 32.5 32.7 32.9 33.118.6 32.5 33.5 34.5 35.817.5 32.5 33.1 33.6 34.419.5 32.5 33.9 35.3 37.017.5 32.5 33.1 33.6 34.314.4 32.5 31.8 31.1 30.3
Geometry
![Page 18: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/18.jpg)
Regression
Minitab commands
![Page 19: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/19.jpg)
Regression
Minitab commands
![Page 20: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/20.jpg)
Regression
Minitab commands
![Page 21: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/21.jpg)
Regression
Minitab commands
Minitab Supplement is in a PDF file in the same directory as the dataset.
![Page 22: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/22.jpg)
Regression
Regression Output
![Page 23: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/23.jpg)
Regression
Regression Output
![Page 24: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/24.jpg)
Regression
Regression Output
![Page 25: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/25.jpg)
Regression
Confidence intervals and t-tests
![Page 26: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/26.jpg)
Regression
estimate ± tcrit Standard Error of estimate
Coef ± tcrit (on 29 DF) SECoef
1.5433 ± 2.0452 0.3839 = (0.758, 2.328)
Confidence intervals and t-tests
tcrit is always on Error degrees of freedom
![Page 27: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/27.jpg)
Regression
Confidence intervals and t-tests
![Page 28: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/28.jpg)
Regression
t = distance between estimate and hypothesised value, in units of standard error
t=Coef−βSECoef
vs tcrit
CI =Coef±tcrit×SECoef
Confidence intervals and t-tests
![Page 29: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/29.jpg)
Regression
Confidence intervals and t-tests
![Page 30: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/30.jpg)
Regression
Confidence intervals and t-tests
![Page 31: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/31.jpg)
Regression
Regression output
![Page 32: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/32.jpg)
Regression
Regression output
![Page 33: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/33.jpg)
Regression
Extreme residuals
![Page 34: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/34.jpg)
Regression
Outliers
![Page 35: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/35.jpg)
Regression
Regression output
![Page 36: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/36.jpg)
Regression
Low R-sq
High R-sq
Low p-value: significant High p-value: non-significant
Four possible outcomes
![Page 37: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/37.jpg)
Regression
Difference from analysis of variance
Continuous vs Categorical
• Continuously varying• Values have meaning as
numbers• Values are ordered• Interpolation makes
sense• Examples:
– height– concentration– duration
• Discrete values• Values are just “names”
that define subsets• Values are unordered• Interpolation is
meaningless• Examples
– drug– breed of sheep– sex
![Page 38: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/38.jpg)
Regression
• Not because relationships are linear• Good simple starting point - cf recipes• Approximation to a smoothly varying curve
Why linear?
![Page 39: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/39.jpg)
Regression
Last words…
• Regression is a powerful and simple tool, very commonly used in biology
• Regression and ANOVA have deep similarities• Learn the numerical skills of calculating
confidence intervals and testing for non-zero slopes.
![Page 40: Quantitative Methods Regression. Examples for linear regression Do more brightly coloured birds have more parasites? How should we estimate merchantable](https://reader030.vdocuments.net/reader030/viewer/2022032800/56649d425503460f94a1e5a2/html5/thumbnails/40.jpg)
Regression
Last words…
Next week: Models, parameters and GLMs
Read Chapter 3
• Regression is a powerful and simple tool, very commonly used in biology
• Regression and ANOVA have deep similarities• Learn the numerical skills of calculating
confidence intervals and testing for non-zero slopes.