File:OLS example weight vs height fitted line.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file(SVG file, nominally 360 × 239 pixels, file size: 23 KB)

Summary

Description
English: Example of OLS: regression of weight against height of american women; this picture shows dataset and fitted regression line
Date
Source Own work
Author Stpasha

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};
Show[
  Plot[128.8128 - 143.1620 h + 61.9603 h^2, {h, 1.45, 1.85}, 
    PlotStyle -> {Thickness[0.005], Hue[0]}, 
    PlotRange -> {{1.42, 1.88}, {50, 78}}, 
    AxesOrigin -> {1.42, 78}, 
    Frame -> True, 
    FrameLabel -> {"Height,  m", "Weight,  kg"}, 
    FrameStyle -> Directive[FontFamily->"Helvetica", 14, Thickness->0.003]
  ],
  ListPlot[Table[{H[[i]], W[[i]]}, {i, 1, 15}], 
    PlotStyle -> PointSize[0.02]
  ]
]
Export["wh-fitted.svg", %];

Licensing

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

5 July 2009

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:18, 6 July 2009Thumbnail for version as of 21:18, 6 July 2009360 × 239 (23 KB)Stpashacorrected scale
06:16, 6 July 2009Thumbnail for version as of 06:16, 6 July 2009512 × 512 (23 KB)Stpasha{{Information |Description={{en|1=Example of OLS: regression of weight against height of american women; this picture shows dataset and fitted regression line}} |Source=Own work by uploader |Author=Stpasha |Date=2009-07-05 |Permission= |o
The following pages on the English Wikipedia use this file (pages on other projects are not listed):