Skip to content

DOC: incorrect formula for half-life of exponentially weighted window #60410

Closed
@partev

Description

@partev

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/dev/user_guide/window.html#exponentially-weighted-window

Documentation problem

Screenshot 2024-11-24 22 51 05
in the documentation for alpha as a function of half-life the formula says 1-exp^(log(0.5)/h)

it should be either exp(log(0.5)/h) or e^(log(0.5)/h) but not exp^(log(0.5)/h)

Suggested fix for documentation

I suggest changing it to 1-e^(log(0.5)/h)

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions