Removes statsmodel dependency

Removes the 3 functions dependent on stats models
Fixes example conflict