# Finding 5th to 15th central moment

102 ビュー (過去 30 日間)
Vedant Chauhan 2020 年 9 月 6 日
コメント済み: Vedant Chauhan 2020 年 9 月 6 日
Hello everybody, please help me i want to find 5th to 15th central moments of random 7×5 matrix , i dont know how to do it.I tried using moment(x,4)./(std(x)).^4 and cross checked it with kurtosis but this gave me wrong answer.

サインインしてコメントする。

### 採用された回答

Thiago Henrique Gomes Lobato 2020 年 9 月 6 日
The std function has a bias correction which the kurtosis doesn't, if you remove it you get the same result:
rng(31415)
A = randn(7,5);
moment(A,4)./(std(A,1)).^4 % the ,1 in the standard deviation removes the bias correction
kurtosis(A)
ans =
1.4861 1.9326 1.2991 2.0221 3.1096
ans =
1.4861 1.9326 1.2991 2.0221 3.1096
Calculating the other central moments should be then trivial, you just have to known how you want define your standard deviation.
##### 1 件のコメント表示非表示 なし
Vedant Chauhan 2020 年 9 月 6 日
Thank you very much.

サインインしてコメントする。

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by