Broken statistics

Something is not working with a function, but still, it's pretty close.