Leverage Plot Calculator

Upload regression data, calculate leverage and influence diagnostics, explore interactive plots, compare models, remove suspicious observations, and export complete results with confidence in seconds.

Load the example dataset or import your own CSV data.

Data and model setup

Use commas, tabs, or semicolons. The first row must contain column names.
Use Ctrl or Command to select several predictors.

Formula used

H = X(XTX)−1XT
hii = diagonal element i of H
Di = [ei2 / (p × MSE)] × [hii / (1 − hii)2]

Leverage measures how unusual an observation is within predictor space. Large residuals describe poor fitted responses. Cook's distance combines both effects to estimate influence.

The value p includes every fitted coefficient, including the intercept. Fixed thresholds are screening rules, not absolute decisions. Always inspect context before removing observations.

How to use

  1. Paste data or load the supplied example dataset.
  2. Preview columns, then select one response and several predictors.
  3. Choose transformations, polynomial terms, interactions, and thresholds.
  4. Calculate the model and inspect flagged observations.
  5. Click a chart point to review detailed diagnostics.
  6. Temporarily exclude suspicious rows and compare model changes.
  7. Export charts, tables, cleaned data, or a PDF report.

Example data

LabelSalesAdvertisingPriceRegion
A0161814North
A02661013North
A03721312South
A11130396West
A1258415West

The full example includes a high-leverage point, a response outlier, and an influential observation.

Frequently asked questions

What is leverage?

Leverage measures how far an observation's predictor values sit from the predictor centre. High leverage does not automatically mean poor data.

What is an influential observation?

An influential observation noticeably changes fitted coefficients or predictions. Cook's distance and DFFITS help quantify that effect.

How is an outlier different?

An outlier has an unusual response after fitting. A high-leverage point has unusual predictor values.

Should high-leverage points be deleted?

No. Verify data quality and subject context first. Compare models before and after any exclusion.

Which leverage threshold is best?

Two times p divided by n is a common screening rule. Three times p divided by n is more conservative.

Why can Cook's distance exceed one?

Cook's distance is not restricted to zero and one. Values near or above one deserve careful inspection.

What does DFFITS show?

DFFITS estimates how much one observation changes its own fitted value. Its sign shows change direction.

What are DFBetas?

DFBetas estimate each observation's standardised impact on every coefficient. Large absolute values indicate coefficient sensitivity.

Can categorical predictors be used?

This version expects numeric model predictors. A text column may still label or colour observations.

Why did the matrix become singular?

Predictors may be duplicated, constant, or perfectly related. Remove redundant terms and calculate again.

Does standardising change leverage?

Pure centring and scaling usually preserve leverage when the same model space remains. They improve numerical stability and interpretation.

Related Calculators

Regression Line PlotPolynomial Regression CurveActual-versus-Predicted PlotResidual PlotResidual Distribution PlotQ-Q Plot of ResidualsScale-Location PlotCook's Distance PlotPrediction Interval PlotPartial Regression Plot

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.