Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
partev opened this issue Nov 25, 2024 · 0 comments · Fixed by #60412
Closed
1 task done

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

partev opened this issue Nov 25, 2024 · 0 comments · Fixed by #60412
Labels
Docs Needs Triage Issue that has not been reviewed by a pandas team member

Comments

@partev
Copy link
Contributor

partev commented Nov 25, 2024

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)

@partev partev added Docs Needs Triage Issue that has not been reviewed by a pandas team member labels Nov 25, 2024
partev added a commit to partev/pandas that referenced this issue Nov 25, 2024
partev added a commit to partev/pandas that referenced this issue Nov 25, 2024
@mroeschke mroeschke mentioned this issue Nov 25, 2024
5 tasks
mroeschke pushed a commit that referenced this issue Nov 25, 2024
snitish pushed a commit to snitish/pandas that referenced this issue Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Needs Triage Issue that has not been reviewed by a pandas team member
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant