File:OLS example weight vs height scatterplot.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 360 × 239 pixels, file size: 22 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Example of OLS regression, 1st step: scatterplot of the data
    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};
    ListPlot[Table[{H[[i]], W[[i]]}, {i, 1, 15}], 
      PlotRange -> {{1.42, 1.88}, {50, 77}}, 
      PlotStyle -> PointSize[0.025],
      AxesOrigin -> {1.42, 50}, 
      Frame -> True, 
      FrameLabel -> {"Height,  m", "Weight,  kg"}, 
      FrameStyle -> Directive[FontFamily->"Helvetica", 14, Thickness->0.003]
      ]
    Export["wh-scatter.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

    22,493 byte

    4efcf61cc43d7dc2b5277e15be9f908f9bb21108

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current22:15, 6 July 2009Thumbnail for version as of 22:15, 6 July 2009360 × 239 (22 KB)wikimediacommons>Stpashacorrected scale (hopefully)

    There are no pages that use this file.