Skip to content

Expectancy [%] formula #180

Closed
Closed
@paklong

Description

@paklong

Hi, I really love your project, it really helps me a lot!

I found that the current expectancy formula is:

s.loc['Expectancy [%]'] = ((returns[returns > 0].mean() * win_rate -
returns[returns < 0].mean() * (100 - win_rate)))

But it seems that the correct formula should be:

s.loc['Expectancy [%]'] = ((returns[returns > 0].mean() * win_rate + 
                            returns[returns < 0].mean() * (100 - win_rate)))

Because the Expectancy = ΣX * P(X)

Thanks again for your great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions