9853

Residual-Fit Spread Plot

The residual-fit spread (RFS) plot is illustrated using simple linear regression. In general, the purpose of the RFS plot is to provide a visualization of how well a statistical model fits the data. It provides a graphical alternative to the coefficient of determination.
In this Demonstration, a random sample of size is generated from a bivariate normal distribution with mean zero, unit variances, and correlation parameter . In the first graph, "data with LS line", the data and least-squares regression line are shown, as well as the estimated , the coefficient of determination. is the fraction of variability accounted for by the fitted model. Next, the RFS plot is shown. This plot is a trellis-style graphic with a quantile plot of the fitted values minus the mean in the left panel and a quantile plot of the residuals on the right. Grid lines that divide the plotting area into equally sized rectangles are shown to enhance the visual comparison of the panels.
The impact of randomness can be explored by changing the random seed.

SNAPSHOTS

  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]

DETAILS

The RFS plot and trellis-style graphics were introduced in [1] and [2]. The plot is a two-panel display of the quantile plot of the fitted values minus their mean, and of the residuals. The quantile plot for data is the plot of versus , where are other ordered values, . Many examples of the use of the quantile plot are discussed in [2] where its advantages over the histogram for data visualization are discussed.
[1] R. A. Becker, W. S. Cleveland, and M. Shyu, "The Visual Design and Control of Trellis Display," Journal of Computational and Graphical Statistics, 5(2), 1996 pp. 123–155.
[2] W. S. Cleveland, Visualizing Data, Summit, NJ: Hobart Press, 1993.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.







Related Curriculum Standards

US Common Core State Standards, Mathematics



 
RELATED RESOURCES
Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2014 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+