Skip to content
Inverse regression 1

Inverse regression 1

Download: InverseRegression1_init.xlsx

Introduction

A previous screencast covered a common situation: predicting YY (the dependent variable, which contains all the uncertainty) from XX (the independent variable, which is known exactly). Another possibility is to predict XX from an observation or measurement of YY. This is the “calibration problem,” also called inverse regression. The name comes from the fact that we are inverting the regression model function to predict XX (given the symbol x^u\hat{x}_u) from observation YY rather than the other way around.

Inverse regression is common in analytical chemistry. This is the first of two screencasts dealing with the principle of inverse regression and the corresponding calculations in Excel. In this screencast we will delve into the relationship between inverse regression and the prediction band, as illustrated in the figure below.

Prediction band around a calibration line; the horizontal line y_u crosses the band edges, and the x range between the crossings is the CI

The task of determining the confidence interval (CI) for the true value xux_u is essentially to find all the xx values that generate a prediction interval (PI) that contains yuy_u. These are the values that could have plausibly resulted in the measured value. So the CI boundaries occur when yuy_u crosses the PI boundaries; numerically this is equivalent to finding the root(s) of a function.

Learning Goals

  • Gain an understanding of inverse regression (the “calibration problem”) and how it relates to the prediction interval in regression
  • Learn how to use SOLVER with PolyPred to calculate the 95% CI for the true value xux_u that resulted in measured value yuy_u.

Tasks

  • Calculate the point estimate x^u\hat{x}_u from the values of b0b_0 and b1b_1 of the best-fit line of the calibration data
  • Calculate the 95% PI values for the calibration curve using PolyPred (which will be automatically added to the plot)
  • Use the prediction band values (and the AND function) to estimate the CI for xux_u. Conditional formatting will appear to highlight the CI.
  • Use SOLVER with PolyPred to determine the 95% CI for xux_u
  • Use PolyInv to perform inverse regression and compare the output of the function to SOLVER

Once you are done your spreadsheet should look something like the image below.

Lactic acid calibration with PI bands and y_u = 1: estimate 8.02 with CI 6.12 to 9.92 from the band, matching PolyInv's exact limits