Skip to content
Prev 311030 / 398506 Next

fitting

Le 16/11/12 11:49, Meli Massimiliano a ?crit :
Then I conclude that 0<=a1, a3, a5, a7, a9<=1 and  a1 + a3 + a5 + a7 + 
a9 = 1.

To ensure that a1 + a3 + a5 + a7 + a9 = 1, your need to fit a1, a3, a5 
and a7 but for a9, just impose a9=1-(a1+ a3+ a5+ a7).

To ensure 0<=a1 <=1, it is simpler to fit b1 as a real and to use it as
a1=1/(1+exp(b1))

Then a1 will be always as 0<=a1 <=1
(to be exact, it is 0<a1 <1 rather. Often it is sufficient)

Hope it help