MANUFACTURING / INTEGRATION / AUTOMATION
LIVE TOOL

Regression

Fit a line or curve to your data: linear, quadratic or cubic in one predictor, or several predictors, with the equation, R², ANOVA, lack of fit, residual plots and prediction intervals.

Input

Example dataReplace with your own measurements

Paste, open a CSV, TSV, TXT or XLSX file (up to 20 MB), or drop it on the field. Files are read in this browser only.

Columns

Found by the header names (X1, X2 …, Y or Response). Otherwise the number columns from the left are X1, X2 … and the last one is the response Y. Choose “(none)” for predictors you do not use.

Speed  Peak
0.60   279.0
0.70   271.8
0.80   267.0
Long format
1 row = 1 observation

Columns: tab, ; or ,
Decimals: 12,5 or 12.5

Read as: tab-separated · decimal point · 20 rows · header row skipped

Data as understood — first 10 of 20 rows
#X1Response Y
10.60279.0
20.60277.1
30.70271.8
40.70272.7
50.80267.0
60.80269.2
70.80266.6
80.90266.7
90.90262.8
101.00261.1

+10 more rows

One row per observation: the response and its predictor values. Up to 8 predictors; with one predictor the model can be a curve.

Model

One predictor: a straight line or a quadratic or cubic curve, as Minitab’s fitted line plot.

Uncoded is the fitted line plot’s choice; coding (X minus its mean) lowers the VIF of X² and X³. The fit, R², S and the predictions do not depend on it, and the equation is always in raw units. Sequential sums of squares add each term after the ones above it (fitted line plot); adjusted ones enter each term last (Minitab’s Regression default).

Prediction

One predictor: values separated by spaces or “;”. Several predictors: one point per line, its values in the order X1, X2 … A comma is a decimal sign.

Graphs

Runs in this browser. Data is not uploaded or stored.

Results

R² = 98.36%

The quadratic model explains 98.36% of the variation in Peak temperature (°C) (R²; adjusted 98.16%). At α = 0.05 the quadratic term is significant (p < 0.0001): the relationship is curved. The lack-of-fit test finds no evidence that the model misses the shape of the data (p = 0.9623). 1 unusual observation (R: large residual): check it before trusting the fit.

Regression equation: Peak temperature (°C) = 321.16 − 90.8602 Conveyor speed (m/min) + 30.6489 Conveyor speed (m/min)²

Quadratic model · 20 observations · S 1.07557 · uncoded coefficients

  • VIF above 10 for Conveyor speed (m/min), Conveyor speed (m/min)²: the powers of Conveyor speed (m/min) are strongly correlated, so their coefficients have large standard errors. Centering the predictor (Coding) reduces the VIF without changing the fit.
Fitted line plot of Peak temperature (°C) against Conveyor speed (m/min): 20 observations, Conveyor speed (m/min) from 0.6 to 1.4. Fitted quadratic curve: Peak temperature (°C) = 321.16 − 90.8602 Conveyor speed (m/min) + 30.6489 Conveyor speed (m/min)². S = 1.0756, R-sq = 98.36%. dashed lines: 95% confidence interval for the mean; dotted lines: 95% prediction interval for a new observation.2502602702800.60.811.21.4Fitted line plot · S 1.076 · R-sq 98.4%Peak temperature (°C)Conveyor speed (m/min)
ObservationFitted line95% CI (mean)95% PI (new observation)
Residual plots
Normal probability plot of the residuals: 20 values from -1.487 to 2.489 against normal percentiles (median ranks), with the normal line of mean 0 and standard deviation 1.017. Points close to the line mean normally distributed residuals.15102030507080909599-1012Normal probability plotPercentResidual
Residuals versus fitted values: fits from 254 to 277.7, residuals from -1.487 to 2.489; the largest in size is 2.489 at observation 8. A random band around 0 without a pattern supports the model.-1012255260265270275Versus fitsResidualFitted value
Histogram of the residuals: 20 values in 5 bins of width 0.7951 from -1.487, counts 6, 5, 5, 3, 1.0246-1012HistogramFrequencyResidual
Residuals versus observation order 1 to 20. Runs or a trend over the order point to time effects; a random pattern supports independent errors.-10125101520Versus orderResidualObservation order
Model summary
StatisticValue
S1.07557
R-sq98.36%
R-sq(adj)98.16%
R-sq(pred)97.81%
PRESS26.2192
Coefficients
TermCoefSE CoefT-ValueP-ValueVIF
Constant321.164.1327877.7103< 0.0001—
Conveyor speed (m/min)-90.86028.63105-10.5271< 0.000182.4249
Conveyor speed (m/min)²30.64894.289277.14548< 0.000182.4249
Analysis of variance (sequential sums of squares)
SourceDFSeq SSSeq MSF-ValueP-Value
Regression21177.71588.856509.015< 0.0001
  Conveyor speed (m/min) (linear)11118.641118.64966.971< 0.0001
  Conveyor speed (m/min)² (quadratic)159.066559.066551.0578< 0.0001
Error1719.66651.15685——
  Lack-of-Fit62.104860.350810.2197350.9623
  Pure Error1117.56171.59652——
Total191197.38———
Prediction (95% intervals)
Conveyor speed (m/min)FitSE Fit95% CI95% PINote
0.75270.2550.338188(269.541; 270.968)(267.876; 272.633)
1.25255.4730.338188(254.76; 256.187)(253.095; 257.852)
Fits and diagnostics for unusual observations
ObsPeak temperature (°C)FitResidStd ResidHI
8266.7264.2112.488792.444780.104187R
All fits and diagnostics (20 observations)
Fits and diagnostics for all observations
ObsConveyor speed (m/min)Peak temperature (°C)FitResidStd ResidHICook’s D
10.6279277.6771.322711.493040.3215650.352193
20.6277.1277.677-0.57729-0.6516290.3215650.0670873
30.7271.8272.576-0.77562-0.7735990.1310630.0300886
40.7272.7272.5760.124380.1240560.1310630.000773755
50.8267268.087-1.08693-1.059590.09041030.0371987
60.8269.2268.0871.113071.085080.09041030.0390098
70.8266.6268.087-1.48693-1.449530.09041030.0696156
80.9266.7264.2112.488792.444780.1041870.231714R
90.9262.8264.211-1.41121-1.386260.1041870.0745008
101261.1260.9480.1515270.1497660.115140.000972871
111261.5260.9480.5515270.5451170.115140.0128887
121.1258258.299-0.298712-0.293430.1041870.00333796
131.1258.6258.2990.3012880.2959610.1041870.00339579
141.2255.3256.262-0.961927-0.9377350.09041030.0291348
151.2255.5256.262-0.761927-0.7427650.09041030.0182791
161.2257.7256.2621.438071.401910.09041030.0651161
171.3254.7254.838-0.13812-0.137760.1310630.000954154
181.3254.7254.838-0.13812-0.137760.1310630.000954154
191.4254254.027-0.0272901-0.03080430.3215650.000149921
201.4254.2254.0270.172710.194950.3215650.00600463

Download offline versionSingle HTML file · v1.4 · 575 KB · works without internet

Method