[docs] Clarify that describe_distribution() returns excess kurtosis #662
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR clarifies in the documentation that
describe_distribution()returns excess kurtosis rather than raw kurtosis values.Background
As raised in the issue, there was potential confusion about the kurtosis values returned by
describe_distribution(). Since a normal distribution has a kurtosis of 3, butdescribe_distribution()shows a kurtosis value near 0 for normal distributions, it's important to clarify that the function returns excess kurtosis (kurtosis - 3).The
kurtosis()function already mentions "(Excess)" in its title and documentation, butdescribe_distribution()didn't make this clear.Changes
Updated the documentation in
R/describe_distribution.R:Modified the function description to explicitly mention "(excess) kurtosis":
Added a
@seealsosection linking to thekurtosis()function for users who want more details about the implementation and interpretation.Impact
This documentation improvement helps users correctly interpret the kurtosis values:
Closes the issue by providing the clarity requested.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.