StatisticalMethods-0.0.0.1: Collection of useful statistical methods.

Statistics.EM.TwoGaussian

Description

This is a simplified version of the Expectation-Maximization algorithm for a two-component Gaussian mixture model. Cf. Hastie et al, The Elements of Statistical Learning, Springer. Chapter 8.5.1.

Synopsis

Documentation

emFix :: Vector Double -> (Weight, Normal, Normal) -> (Weight, Normal, Normal)Source

Finds the fix-points of the EM step iterations.

emStarts :: Vector Double -> (Weight, Normal, Normal)Source

Finds the best fix-point with all elements xs as starting points for the means. It holds that mu_1 < mu_2.