cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar

Centering polynomials calculation

I'm trying to understand how JMP centers polynomials. Here’s an example with two independent variables, x1 and x2, and a response variable y:

 

x1x2y
21280
41485
61690
81895
1020100
1222105


When using the Analyze->Fit Model option in JMP with x1, x2, x1*x1, and x2*x2 (keeping the "Center Polynomials" checkbox checked), I get the following parameter estimates:

- Intercept: 75.375
- x1: 3.0714286
- x2: 0
- (x1-7)*(x1-7): -0.089286
- (x2-17)*(x2-17): 0

 

I wanted to test what happens if I center manually by subtracting the mean from each value of x1 and x2.
The mean of x1 is 7, and the mean of x2 is 17. So, for the x1 column, I subtracted 7 from each value (2, 4, 6, etc.). Here’s the resulting table:

 

x1x2y
-5-580
-3-385
-1-190
1195
33100
55105

 

Using these new centered values for x1 and x2 in the Fit Model option with "Center Polynomials" unchecked, I get the following parameter estimates:

- Intercept: 96.875
- x1: 3.0714286
- x2: 0
- (x1-7)*(x1-7): -0.089286
- (x2-17)*(x2-17): 0

 

As you can see, all parameter estimates are correct except for the intercept. Why is the intercept different? Could someone please explain how it is calculated?

5 REPLIES 5

Re: Centering polynomials calculation

X2 is linearly dependent on X1 (i.e., X1 = X2 + 10). You should be seeing a Singularity Details outline box as well as zeroed estimates for everything besides the Intercept and X1. The estimates your showing don't match what you should have gotten given the data above.

Re: Centering polynomials calculation

I admit it was not a good example. Here is a better one:

 

x1x2y
2180
4585
6395
82100
108105
123110

 

With "Center polynomials" checked:

Intercept: 76.337952
x1: 3.1705139
x2: -0.497888
(x1-7)*(x1-7): -0.120141
(x2-3.66667)*(x2-3.66667): 0.1013011

 

Using the x1/x2 centered values with unchecked "Center polynomials" option

 

x1x2y
-5-2.66780
-31.33385
-1-0.66795
1-1.667100
34.333105
5-0.667110

 

leads to:


Intercept: 96.705792
x1: 3.1705139
x2: -0.497888
x1*x1: -0.120141
x2*x2: 0.1013011

 

What additional calculation is needed to get 76.337952 ?

MRB3855
Super User

Re: Centering polynomials calculation

Hi @MathAvgPorpoise : This kind of thing was discussed recently here.

https://community.jmp.com/t5/Discussions/Intercept-of-a-parabola/m-p/805020

 

MRB3855
Super User

Re: Centering polynomials calculation

Hi @MathAvgPorpoise : And only the quadratic terms are centered...the main effects are not. So, you have to be careful.

i.e., Using the x1/x2 centered values with unchecked "Center polynomials" option, you will need to enter the squared centered values, but the linear terms should be the uncentered values. It will all match then.

Re: Centering polynomials calculation

Centering the predictors is a transformation. It translates the coordinates. This shifts the origin of the space to the mean.