Perform a Linear Regression Analysis

Perform a Linear Regression Analysis

Minitab®

  1. Select Stat >> Regression >> Regression >> Fit Regression Model ...
  2. Specify the response and the predictor(s).
  3. (For standard residual plots) Under Graphs..., select the desired residual plots.
  4. Minitab automatically recognizes replicates of data and produces the Lack of Fit test with Pure error by default.
  5.  Select OK.

Next, back up to the Main Menu having just run this regression:

  1. (To get a prediction interval) Select Stat >> Regression >> Regression >> Predict ...
  2. Specify the response.
  3. Specify either the x value ("Enter individual values") or a column name ("Enter columns of values") containing multiple x values.
  4. Select Options...  Specify the Confidence level — the default is 95%.  Select OK.
  5. Select OK. The output will be displayed in the session window.

Regression Through the Origin

To fit an RTO model click "Model" and uncheck "Include the constant term in the model".

Example

The iqsize.txt data set contains data on the IQ (y = PIQ), brain size (x1 = Brain), height (x2 = Height), and weight (x3 = Weight) of n = 38 college students. Fit the multiple linear regression model treating PIQ as the response, and Brain, Height, and Weight as the predictors. In doing so, request a lack of fit test. Also, with 95% confidence, predict the PIQ of a randomly selected college student whose Brain = 90, Height = 70 and Weight = 150.

Minitab Dialog Boxes

Minitab regression dialog box

Minitab regression predict dialog box

Resulting Minitab Output

Regression Analysis: PIQ versus Brain, Height, Weight

Analysis of Variance
Source DF Adj SS Adj MS F-Value P-Value
Regression 3 5572.7 1857.58 4.74 0.007
Brain 1 5239.2 5239.23 13.37 0.001
Height 1 1934.7 1934.71 4.94 0.033
Weight 1 0.0 0.0 0.00 0.998
Error 34 13321.8 391.82    
Total 37 18894.6      
Model Summary
S R-sq R-sq (adj) R-sq(pred)
19.7944 29.49% 23.27% 12.76%
Coefficients
Term Coef SE Coef T-Value P-Value VIF
Constant 111.4 63.0 1.77 0.086  
Brain 2.060 0.563 3.66 0.001 1.58
Height -2.73 1.23 -2.22 0.033 2.28
Weight 0.001 0.197 0.00 0.998 2.02

Regression Equation

PIQ = 111.4 + 2.060 Brain - 2.73 Height + 0.001 Weight

Fits and Diagnostics for Unusual Observations
Obs PIQ Fit Resid Std
Resid
R
13 147.00 95.31 51.69 2.72
R Large residual
Prediction for PIQ

Regression Equation

PIQ = 111.4 + 2.060 Brain - 2.73 Height + 0.001 Weight

Variable Setting no heading
Brain 90        
Height 70        
Fit SE Fit 95% CI 95% PI
105.636 3.90554 (97.6986, 113.573) (64.6330, 146.638)

Video Review


Legend
[1]Link
Has Tooltip/Popover
 Toggleable Visibility