File:OLS example weight vs height residuals.svg
From Wikimedia Commons, the free media repository
OLS_example_weight_vs_height_residuals.svg (SVG file, nominally 360 × 203 pixels, file size: 14 KB)
Contents |
[edit] Summary
| Description |
English: Example of OLS regression, avg weight regressed on height in population of american women; this graph shows the residuals of the regression.
|
|---|---|
| Date |
5 July 2009 |
| Source |
Own work |
| Author | |
| Permission (Reusing this image) |
See below. |
[edit] Source code (Mathematica)
H = {1.47, 1.50, 1.52, 1.55, 1.57, 1.60, 1.63, 1.65, 1.68, 1.70, 1.73, 1.75, 1.78, 1.80, 1.83};
W = {52.21, 53.12, 54.48, 55.84, 57.20, 58.57, 59.93, 61.29, 63.11, 64.47, 66.28, 68.10, 69.92, 72.19, 74.46};
fitted[h_] := 128.8128 - 143.1620 h + 61.9603 h^2;
ListLinePlot[Table[{H[[i]], W[[i]] - fitted[H[[i]]]}, {i, 1, 15}],
PlotStyle -> {PointSize[0.02], Thickness[0.005]},
Mesh -> All,
Filling -> Axis,
AxesOrigin -> {1.45, 0},
PlotRange -> {{1.45, 1.85}, {-0.5, 0.5}},
AxesStyle -> Directive[FontFamily->"Helvetica", 14, Thickness->0.003]
]
Export["wh-residuals.svg", %]
[edit] Licensing:
- Remove redundant categories and try to put this image in the most specific category/categories
- Remove this template
Afrikaans | Alemannisch | Català | Česky | Dansk | Deutsch | Deutsch (Sie-Form) | English | Español | Eesti | Suomi | Français | עברית | Հայերեն | Italiano | 日本語 | Magyar | Македонски | Malti | Plattdüütsch | Nederlands | Polski | Português | Română | Русский | Slovenčina | ไทย | Vèneto | 中文 | +/−
Usage:
Related galleries:
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 21:22, 6 July 2009 | 360×203 (14 KB) | Stpasha (talk | contribs) | (corrected scale) | |
| 06:24, 6 July 2009 | 512×512 (14 KB) | Stpasha (talk | contribs) | ({{Information |Description={{en|1=Example of OLS regression, avg weight regressed on height in population of american women; this graph shows the residuals of the regression.}} |Source=Own work by uploader |Author=Stpasha |Date=2009-07-05) |
- Edit this file using an external application (See the setup instructions for more information)
File links
There are no pages that link to this file.
Global file usage
The following other wikis use this file:
- Usage of OLS example weight vs height residuals.svg on enwiki