# Comparing Regression Models with and without Data Transformation

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

This Demonstration shows the difference between regression models with and without data transformation. The transformed case estimates by minimizing the sum of squared differences between and . The untransformed case estimates by minimizing the sum of squared differences between and .

Contributed by: Vincent Shatlock and Autar Kaw (July 2011)

Open content licensed under CC BY-NC-SA

## Snapshots

## Details

In this Demonstration, we plot the regression model to given data . To find the regression without transforming the data, we need to minimize the sum of the squares of the residuals

.

To find , we minimize with respect to . The value of is hence given by solving the nonlinear equation

. (1)

To avoid having to solve a nonlinear equation, we can transform the data and then use linear regression formulas to calculate . In this case

,

.

Then is given by minimizing

(2)

In this Demonstration, we show the regression model curves corresponding to values of from equation (1) (untransformed) and equation (2) (transformed).

For more information, see A. Kaw, D. Nguyen, and E. Kalu, Numerical Methods with Applications, 2010.

## Permanent Citation