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

Docs for skew and kurt #1127

Merged
merged 2 commits into from
Sep 26, 2024
Merged

Docs for skew and kurt #1127

merged 2 commits into from
Sep 26, 2024

Conversation

zhiqiang-hhhh
Copy link
Contributor

@zhiqiang-hhhh zhiqiang-hhhh commented Sep 20, 2024

Versions

  • dev
  • 3.0
  • 2.1
  • 2.0

Languages

  • Chinese
  • English

ref apache/doris#40945

Copy link
Contributor

@HappenLee HappenLee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@KassieZ KassieZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update sidebar as well.
For SQL Manual,please follow the format

HappenLee pushed a commit to apache/doris that referenced this pull request Sep 25, 2024
`skew`,`skew_pop` and `skewness` is used to calculate
[skewness](https://en.wikipedia.org/wiki/Skewness#Pearson.27s_moment_coefficient_of_skewness)
of a data distribution.
`kurt`,`kurt_pop` and `kurtosis` is used to calculate
[kurtosis](https://en.wikipedia.org/wiki/Kurtosis) of a data
distribution.

The implementation references
ClickHouse/ClickHouse#5200, and modified result
type to AlwaysNullable since doris do not support NaN.

The formula used to calculate skew is `3-th moments / (variance^{1.5})`
The formula used to calculate kurt is `4-th moments / (variance^{2}) -
3`

when value of any result is NaN, doris will return NULL.

doc: apache/doris-website#1127
zhiqiang-hhhh added a commit to zhiqiang-hhhh/doris that referenced this pull request Sep 25, 2024
`skew`,`skew_pop` and `skewness` is used to calculate
[skewness](https://en.wikipedia.org/wiki/Skewness#Pearson.27s_moment_coefficient_of_skewness)
of a data distribution.
`kurt`,`kurt_pop` and `kurtosis` is used to calculate
[kurtosis](https://en.wikipedia.org/wiki/Kurtosis) of a data
distribution.

The implementation references
ClickHouse/ClickHouse#5200, and modified result
type to AlwaysNullable since doris do not support NaN.

The formula used to calculate skew is `3-th moments / (variance^{1.5})`
The formula used to calculate kurt is `4-th moments / (variance^{2}) -
3`

when value of any result is NaN, doris will return NULL.

doc: apache/doris-website#1127
@KassieZ KassieZ added Reviewed and removed bug Something isn't working labels Sep 25, 2024
zhiqiang-hhhh added a commit to zhiqiang-hhhh/doris that referenced this pull request Sep 25, 2024
`skew`,`skew_pop` and `skewness` is used to calculate
[skewness](https://en.wikipedia.org/wiki/Skewness#Pearson.27s_moment_coefficient_of_skewness)
of a data distribution.
`kurt`,`kurt_pop` and `kurtosis` is used to calculate
[kurtosis](https://en.wikipedia.org/wiki/Kurtosis) of a data
distribution.

The implementation references
ClickHouse/ClickHouse#5200, and modified result
type to AlwaysNullable since doris do not support NaN.

The formula used to calculate skew is `3-th moments / (variance^{1.5})`
The formula used to calculate kurt is `4-th moments / (variance^{2}) -
3`

when value of any result is NaN, doris will return NULL.

doc: apache/doris-website#1127
@morningman morningman merged commit b93a20c into apache:master Sep 26, 2024
2 of 3 checks passed
@zhiqiang-hhhh zhiqiang-hhhh deleted the skew-kurt branch September 26, 2024 12:30
zhiqiang-hhhh added a commit to zhiqiang-hhhh/doris that referenced this pull request Sep 26, 2024
`skew`,`skew_pop` and `skewness` is used to calculate
[skewness](https://en.wikipedia.org/wiki/Skewness#Pearson.27s_moment_coefficient_of_skewness)
of a data distribution.
`kurt`,`kurt_pop` and `kurtosis` is used to calculate
[kurtosis](https://en.wikipedia.org/wiki/Kurtosis) of a data
distribution.

The implementation references
ClickHouse/ClickHouse#5200, and modified result
type to AlwaysNullable since doris do not support NaN.

The formula used to calculate skew is `3-th moments / (variance^{1.5})`
The formula used to calculate kurt is `4-th moments / (variance^{2}) -
3`

when value of any result is NaN, doris will return NULL.

doc: apache/doris-website#1127
zhiqiang-hhhh added a commit to zhiqiang-hhhh/doris that referenced this pull request Sep 27, 2024
`skew`,`skew_pop` and `skewness` is used to calculate
[skewness](https://en.wikipedia.org/wiki/Skewness#Pearson.27s_moment_coefficient_of_skewness)
of a data distribution.
`kurt`,`kurt_pop` and `kurtosis` is used to calculate
[kurtosis](https://en.wikipedia.org/wiki/Kurtosis) of a data
distribution.

The implementation references
ClickHouse/ClickHouse#5200, and modified result
type to AlwaysNullable since doris do not support NaN.

The formula used to calculate skew is `3-th moments / (variance^{1.5})`
The formula used to calculate kurt is `4-th moments / (variance^{2}) -
3`

when value of any result is NaN, doris will return NULL.

doc: apache/doris-website#1127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants