HP Forums
Math Challlenge: Deming Regression for 2 independent variables - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: Math Challlenge: Deming Regression for 2 independent variables (/thread-19069.html)



Math Challlenge: Deming Regression for 2 independent variables - Namir - 11-02-2022 10:30 PM

Hi All,

It's easy to find Demin regression for two variables where both variables have errors in their measurements. You can even find HP calculator code for the simple Deming regression on TOS.

My challenge is for you is to develop the equations for a Deming Multiple Regression.

Good luck to us all!

Namir


RE: Math Challlenge: Deming Regression for 2 independent variables - Rodger Rosenbaum - 01-01-2023 06:23 AM

Namir,

It has been so long I've forgotten what TOS is.

Have you developed equations for a Deming regression? Do they use summary statistics, or complex variables like the example on Wikipedia?

I derived equations around 1967 when I was sitting around on Air Force time in the wee hours of the morning.

The little routine "Orth" I posted in this thread:

https://www.hpmuseum.org/forum/thread-17797.html?highlight=rosenbaum

uses those equations. Do you have something in mind that does not use summary statistics?


RE: Math Challlenge: Deming Regression for 2 independent variables - Namir - 01-01-2023 10:24 PM

I am looking for a version of the Deming Regression for two or more independent variables. What is available online are equations for one independent variables. I have found nothing on the interne for what I am looking for.

After giving it much thought I have come to accept that multiple regression equations should be able to work with observations that have errors in all variables.

Namir


RE: Math Challlenge: Deming Regression for 2 independent variables - Rodger Rosenbaum - 01-02-2023 01:50 AM

Hi, Namir,

Please remind me of what TOS is, and give me a link to some calculator code for the single independent variable orthogonal regression case. :-)

I find methods on the web using Principal Components Analysis like this:
https://www.mathworks.com/help/stats/fitting-an-orthogonal-regression-using-principal-components-analysis.html

You posed a challenge "to develop the equations for a Deming Multiple Regression". Sometimes when a challenge is posted, the poster already has the solution to the challenge. Do you have the solution already? Do you have any hints?


RE: Math Challlenge: Deming Regression for 2 independent variables - EdS2 - 01-02-2023 09:30 AM

(01-02-2023 01:50 AM)Rodger Rosenbaum Wrote:  Please remind me of what TOS is...

It's "that other site" which this site does not link to or mention by name. In an earlier discussion we see some backstory and the advice

Quote:Search for HP-41C at Wikipedia and take a look at the External Links section



RE: Math Challlenge: Deming Regression for 2 independent variables - Albert Chan - 01-02-2023 09:37 AM

Based on Deming Regression Calculator, for 2 dimensions.

Line: y = p*x + q

G(p, q) = 1/(1+p²) * ∑(yi - p*xi - q)²

minimize G      → ∂G/∂q = ∂G/∂p = 0

For multi-dimensions, G must be symmetric, and will reduce to above for 2 dimensions.
My guess is it is the same formula, except p, xi are vector, and p*xi is dot product.

I'd suggest we makeup an example, and check it ...


RE: Math Challlenge: Deming Regression for 2 independent variables - Namir - 01-02-2023 12:41 PM

(01-02-2023 01:50 AM)Rodger Rosenbaum Wrote:  Hi, Namir,

Please remind me of what TOS is, and give me a link to some calculator code for the single independent variable orthogonal regression case. :-)

I find methods on the web using Principal Components Analysis like this:
https://www.mathworks.com/help/stats/fitting-an-orthogonal-regression-using-principal-components-analysis.html

You posed a challenge "to develop the equations for a Deming Multiple Regression". Sometimes when a challenge is posted, the poster already has the solution to the challenge. Do you have the solution already? Do you have any hints?

Here is the link to Wikipedia. The TOS has HP41C code for the Deming Regression. I don't think I can post a link on this web site.

Namir


RE: Math Challlenge: Deming Regression for 2 independent variables - Namir - 01-02-2023 12:44 PM

(01-02-2023 01:50 AM)Rodger Rosenbaum Wrote:  Hi, Namir,

Please remind me of what TOS is, and give me a link to some calculator code for the single independent variable orthogonal regression case. :-)

I find methods on the web using Principal Components Analysis like this:
https://www.mathworks.com/help/stats/fitting-an-orthogonal-regression-using-principal-components-analysis.html

You posed a challenge "to develop the equations for a Deming Multiple Regression". Sometimes when a challenge is posted, the poster already has the solution to the challenge. Do you have the solution already? Do you have any hints?

Thanks for the Matlab link. I think it gives me something I am looking for. When I posted the challenge I had no solution. I was hoping hat someone (like yourself) has a clever finding for the solution, and you did! Thank you

I will be searching the web for "Orthogonal Regression" to look at additional information.

Namir


RE: Math Challlenge: Deming Regression for 2 independent variables - ttw - 01-03-2023 02:38 PM

This is a rather common problem but the computations are not as simple as in the two-dimensional case where one variable is exact. The problem of "best fit" to curves in high dimensions seems popular.

https://www.sciencedirect.com/science/article/pii/S0377042703004485

https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=8674762

One can find other discussions looking for "orthogonal least squares."