[Scilab-users] {EXT} Re: Multiple regression on semi-log plot

Dang Ngoc Chan, Christophe Christophe.Dang at sidel.com
Mon Nov 16 10:26:07 CET 2020


Hello,

> De : users <users-bounces at lists.scilab.org> De la part de Stéphane Mottelet
> Envoyé : lundi 16 novembre 2020 09:56
>
> It is possible to fit a more general piecewise-affine model,
> but you will have to know in advance the number of "kinks"

Well, I think it is possible to automatically adjust the number of segments:

1. Perform the regression with only n = 1 line segment.

2. Increase the number of segments by 1, n = n + 1.
Perform a new regression.
You can detect the furthest point to know where to separate the segments.

3. Compare the quadratic errors between the current and the preceding regression.
If the difference is small enough then end
else go back to 2.

Regards

--
Christophe Dang Ngoc Chan
Mechanical calculation engineer

General
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


More information about the users mailing list