Giter Club home page Giter Club logo

Comments (3)

haziqj avatar haziqj commented on August 19, 2024

In my EM, setting initial values of lambda=0 does not move lambda away from zero!

> mod.iprior <- iprior(stack.loss ~ ., data=stackloss)
START iter 0 -91.76077  
EM complete.

Number of iterations = 2 
Log-likelihood =  -77.99705 
> summary(mod.iprior)

Call:
iprior.formula(formula = stack.loss ~ ., data = stackloss)

RKHS used:
Canonical (Air.Flow, Water.Temp, Acid.Conc.) 

Residuals:
   Min. 1st Qu.  Median 3rd Qu.    Max. 
-10.520  -6.524  -2.524   1.476  24.480 

                Estimate    S.E.    z  P[|Z>z|]    
(Intercept)      17.5238  2.1661 8.09 < 2.2e-16 ***
lam1.Air.Flow     0.0000      NA   NA        NA    
lam2.Water.Temp   0.0000      NA   NA        NA    
lam3.Acid.Conc.   0.0000      NA   NA        NA    
---
Signif. codes:  0***0.001**0.01*0.05.0.1 ‘ ’ 1

EM converged to within 0.001 tolerance. No. of iterations: 2
Standard deviation of errors: 9.95 with S.E.: 1.527
T2 statistic: 0 on ??? degrees of freedom.
Log-likelihood value: -77.99705 

I will probably need to explain the EM that I am using. It is an exponential family EM which does not do any real maximisation per se, as the algorithm reduces to an updating sequence of the parameters which has closed form expressions. More on this later...

from iprior.

haziqj avatar haziqj commented on August 19, 2024

Just something that I've noticed: the psi parameter is the culprit here. If the starting value for psi is high (say 10) and the true value is lower than the starting value (say 4) then the EM does not decrease at each stage as psi goes from 10 to 4.

On the other hand, if the starting value is lower than the true value (say 0.1) then the EM does decrease for some unknown reason. This need to be looked at further. Maybe the exponential family EM is not suitable in this case.

from iprior.

haziqj avatar haziqj commented on August 19, 2024

There was a slight error that also contributed to this. The intercept parameter was not updating properly. This explains why we saw decrease in log-likelihood in the few early EM iterations. As the intercept started to stabilise, there was no decrease in log-likelihood seen. This has been fixed.

from iprior.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.