added proportional_percentage function
better functions
Merge pull request #1 from chrisalbon/master

added proportional_probability function