Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Scatter plot
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Plot using the dispersal of scattered dots to show the relationship between variables}} {{distinguish|Correlogram|Scatter matrix}} {{refimprove|date=April 2024}} <div class=skin-invert-image>{{Infobox quality tool | image = Scatter diagram for quality characteristic XXX.svg | category = One of the '''[[Seven Basic Tools of Quality]]''' | describer = [[John Herschel]] | purpose = To identify the type of relationship (if any) between two quantitative variables}}</div> [[Image:oldfaithful3.png|class=skin-invert-image|thumb|240px|Waiting time between eruptions and the duration of the eruption for the [[Old Faithful Geyser]] in [[Yellowstone National Park]], [[Wyoming]], USA. This chart suggests there are generally two types of eruptions: short-wait-short-duration, and long-wait-long-duration.]] [[Image:Scatter plot.jpg|thumb|240px|A 3D scatter plot allows the visualization of multivariate data. This scatter plot takes multiple scalar variables and uses them for different axes in phase space. The different variables are combined to form coordinates in the phase space and they are displayed using glyphs and coloured using another scalar variable.<ref>[https://wci.llnl.gov/codes/visit/gallery.html Visualizations that have been created with VisIt] at wci.llnl.gov. Last updated: November 8, 2007.</ref>]] A '''scatter plot''', also called a '''scatterplot''', '''scatter graph''', '''scatter chart''', '''scattergram''', or '''scatter diagram''',<ref>{{cite book |last=Jarrell |first=Stephen B. |title=Basic Statistics |year=1994 |publisher=Wm. C. Brown Pub. |location=Dubuque, Iowa |isbn=978-0-697-21595-6 |edition=Special pre-publication |page=492 |quote=When we search for a relationship between two quantitative variables, a standard graph of the available data pairs (X,Y), called a ''scatter diagram'', frequently helps...}}</ref> is a type of [[Plot (graphics)|plot]] or [[mathematical diagram]] using [[Cartesian coordinate system|Cartesian coordinates]] to display values for typically two [[Variable (mathematics)|variables]] for a set of data. If the points are coded (color/shape/size), one additional variable can be displayed. The data are displayed as a collection of points, each having the value of one variable determining the position on the horizontal axis and the value of the other variable determining the position on the [[vertical axis]].<ref>Utts, Jessica M. ''Seeing Through Statistics'' 3rd Edition, Thomson Brooks/Cole, 2005, pp 166-167. {{isbn|0-534-39402-7}}</ref> == History == {{See also|Data and information visualization#History}} According to Michael Friendly and Daniel Denis, the defining characteristic distinguishing scatter plots from line charts is the representation of specific observations of bivariate data where one variable is plotted on the horizontal axis and the other on the vertical axis. The two variables are often abstracted from a physical representation like the spread of bullets on a target or a geographic or celestial projection.<ref name=":0">{{cite journal|last1=Friendly|first1=Michael|last2=Denis|first2=Dan|title=The early origins and development of the scatterplot|journal=Journal of the History of the Behavioral Sciences|date=2005|volume=41|issue=2|pages=103–130|doi=10.1002/jhbs.20078|pmid=15812820}}</ref><ref>{{Cite web| title=The early origins and development of the scatterplot | url=https://www.datavis.ca/papers/friendly-scat.pdf | archive-url=https://web.archive.org/web/20100613104833/http://www.datavis.ca:80/papers/friendly-scat.pdf | archive-date=2010-06-13}}</ref> While Edmund Halley created a bivariate plot of temperature and pressure in 1686, he omitted the specific data points used to demonstrate the relationship. Friendly and Denis claim his visualization was different from an actual scatter plot. Friendly and Denis attribute the first scatter plot to [[John Herschel]]. In 1833, Herschel plotted the angle between the central star in the constellation Virgo and [[Gamma Virginis]] over time to find how the angle changes over time, not through calculation but with freehand drawing and human judgment.<ref name=":0" /> [[Sir Francis Galton]] extended and popularized the scatter plot and many other statistical tools to pursue a scientific basis for eugenics.<ref name=":1">{{Cite journal |last=Louçã |first=Francisco |date=2009 |title=Emancipation Through Interaction — How Eugenics and Statistics Converged and Diverged |url=http://www.jstor.org/stable/25650625 |journal=Journal of the History of Biology |volume=42 |issue=4 |pages=649–684 |doi=10.1007/s10739-008-9167-7 |jstor=25650625 |pmid=20481126 |issn=0022-5010|url-access=subscription }}</ref> When, in 1886, Galton published a scatter plot and correlation ellipse of the height of parents and children, he extended Herschel's mere plotting of data points by binning and averaging adjacent cells to create a smoother visualization.<ref name=":0" /> Karl Pearson, R. A. Fischer, and other statisticians and eugenicists built on Galton's work and formalized correlations and significance testing.<ref name=":1" /> == Overview == A scatter plot can be used either when one continuous variable is under the control of the experimenter and the other depends on it or when both continuous variables are independent. If a [[parameter]] exists that is systematically incremented and/or decremented by the other, it is called the ''control parameter'' or [[independent variable]] and is customarily plotted along the horizontal axis. The measured or [[dependent variable]] is customarily plotted along the vertical axis. If no dependent variable exists, either type of variable can be plotted on either axis and a scatter plot will illustrate only the degree of [[correlation]] (not [[causality|causation]]) between two variables.{{fact|date=April 2024}} A scatter plot can suggest various kinds of correlations between variables with a certain [[confidence interval]]. For example, weight and height would be on the {{mvar|y}}-axis, and height would be on the {{mvar|x}}-axis. Correlations may be positive (rising), negative (falling), or null (uncorrelated). If the dots' pattern slopes from lower left to upper right, it indicates a positive [[correlation]] between the variables being studied. If the pattern of dots slopes from upper left to lower right, it indicates a negative correlation. A line of [[Curve fitting|best fit]] (alternatively called 'trendline') can be drawn to study the relationship between the variables. An equation for the correlation between the variables can be determined by established best-fit procedures. For a linear correlation, the best-fit procedure is known as [[linear regression]] and is guaranteed to generate a correct solution in a finite time. No universal best-fit procedure is guaranteed to generate a correct solution for arbitrary relationships. A scatter plot is also very useful when we wish to see how two comparable data sets agree to show nonlinear relationships between variables. The ability to do this can be enhanced by adding a smooth line such as [[Local regression|LOESS]].<ref>{{cite book | last = Cleveland | first = William | title = Visualizing data | publisher = At & T Bell Laboratories Published by Hobart Press | location = Murray Hill, N.J. Summit, N.J | year = 1993 | isbn = 978-0963488404 | url-access = registration | url = https://archive.org/details/visualizingdata00will }}</ref> Furthermore, if the data are represented by a mixture model of simple relationships, these relationships will be visually evident as superimposed patterns.{{fact|date=April 2024}} The scatter diagram is one of the [[Seven Basic Tools of Quality|seven basic tools]] of [[quality control]].<ref>{{cite web | url = http://www.asq.org/learn-about-quality/seven-basic-quality-tools/overview/overview.html | author = Nancy R. Tague | title = Seven Basic Quality Tools | year = 2004 | work = The Quality Toolbox | publisher = [[American Society for Quality]] | location = [[Milwaukee, Wisconsin]] | page = 15 | access-date = 2010-02-05}}</ref> Scatter charts can be built in the form of [[bubble chart|bubble]], marker, or/and [[line chart]]s.<ref>{{cite web|title=Scatter Chart – AnyChart JavaScript Chart Documentation|url=http://docs.anychart.com/7.9.0/Basic_Charts_Types/Scatter_Chart|publisher=AnyChart|access-date=3 February 2016|archive-date=1 February 2016|archive-url=https://web.archive.org/web/20160201084227/http://docs.anychart.com/7.9.0/Basic_Charts_Types/Scatter_Chart|url-status=dead}}</ref> == Example == For example, to display a link between a person's lung capacity, and how long that person could hold their breath, a researcher would choose a group of people to study, then measure each one's lung capacity (first variable) and how long that person could hold their breath (second variable). The researcher would then plot the data in a scatter plot, assigning "lung capacity" to the horizontal axis, and "time holding breath" to the vertical axis.{{fact|date=April 2024}} A person with a lung capacity of {{val|400|ul=cl}} who held their breath for {{val|21.7|u=seconds}} would be represented by a single dot on the scatter plot at the point (400, 21.7) in the [[Cartesian coordinate system|Cartesian coordinates]]. The scatter plot of all the people in the study would enable the researcher to obtain a visual comparison of the two variables in the data set and will help to determine what kind of relationship there might be between the two variables.{{fact|date=April 2024}} == Scatter plot matrices == For a set of data variables (dimensions) ''X''<sub>1</sub>, ''X''<sub>2</sub>, ... , ''X''<sub>''k''</sub>, the scatter plot matrix shows all the pairwise scatter plots of the variables on a single view with multiple scatterplots in a matrix format. For {{mvar|k}} variables, the scatterplot matrix will contain {{mvar|k}} rows and {{mvar|k}} columns. A plot located on the intersection of row and {{mvar|j}}th column is a plot of variables ''X''<sub>''i''</sub> versus ''X''<sub>''j''</sub>.<ref>[http://www.itl.nist.gov/div898/handbook/eda/section3/scatplma.htm Scatter Plot Matrix] at itl.nist.gov.</ref> This means that each row and column is one dimension, and each cell plots a scatter plot of two dimensions.{{fact|date=April 2024}} A '''generalized scatter plot matrix'''<ref>{{cite journal|last1=Emerson|first1=John W.|last2=Green|first2=Walton A.|last3=Schoerke|first3=Barret|last4=Crowley|first4=Jason|title=The Generalized Pairs Plot|journal=Journal of Computational and Graphical Statistics|date=2013|volume=22|issue=1|pages=79–91|doi=10.1080/10618600.2012.694762|s2cid=28344569}}</ref> offers a range of displays of paired combinations of categorical and quantitative variables. A [[mosaic plot]], [[fluctuation diagram]], or faceted [[bar chart]] may be used to display two categorical variables. Other plots are used for one categorical and one quantitative variables. [[File:Matriz de gráficos de dispersão.svg|class=skin-invert-image|center|thumb|upright=3|Visualization of 3D data along with the correspondent scatterplot matrix]] == See also == *[[Data and information visualization]] *[[Rug plot]] *[[Bar graph]] *[[Line chart]] *[[List of mathematical art software]] *[[Scagnostics]] *[[Dot plot (statistics)]] *[[Parity plot]] == References == {{reflist}} == Further reading == * Cattaneo, Matias D.; Crump, Richard K.; Farrell, Max H.; Feng, Yingjie (2024). "[https://www.aeaweb.org/articles?id=10.1257/aer.20221576 On Binscatter]". ''American Economic Review''. '''114''' (5): 1488–1514. == External links == * {{Commonscatinline}} * [http://www.psychwiki.com/wiki/What_is_a_scatterplot%3F What is a scatterplot?] {{Webarchive|url=https://web.archive.org/web/20200807004431/http://www.psychwiki.com/wiki/What_is_a_scatterplot%3F |date=2020-08-07 }} * [http://www.r-statistics.com/2010/04/correlation-scatter-plot-matrix-for-ordered-categorical-data/ Correlation scatter-plot matrix for ordered-categorical data] – Explanation and R code * [http://www.r-bloggers.com/ggplot2-for-big-data/ Density scatterplot for large datasets] (hundreds of millions of points) {{Quality Tools}} {{Statistics|descriptive}} [[Category:Statistical charts and diagrams]] [[Category:Quality control tools]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Cite book
(
edit
)
Template:Cite journal
(
edit
)
Template:Cite web
(
edit
)
Template:Commonscatinline
(
edit
)
Template:Distinguish
(
edit
)
Template:Fact
(
edit
)
Template:Infobox quality tool
(
edit
)
Template:Isbn
(
edit
)
Template:Mvar
(
edit
)
Template:Quality Tools
(
edit
)
Template:Refimprove
(
edit
)
Template:Reflist
(
edit
)
Template:See also
(
edit
)
Template:Short description
(
edit
)
Template:Statistics
(
edit
)
Template:Val
(
edit
)
Template:Webarchive
(
edit
)