logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
mahshah  
#1 Posted : Thursday, May 17, 2012 4:20:23 PM(UTC)
mahshah

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 5/8/2012(UTC)
Posts: 3

Hello,

Is it possible to calculate the kurtosis of the last n periods in Metastock in the same manner as the standard deviation?

The final equation looks very similar to the formula for standard deviation:
http://en.wikipedia.org/wiki/Kurtosis#Sample_kurtosis
http://en.wikipedia.org/wiki/Standard_deviation#With_standard_deviation_of_the_sample

And so I suppose my main question is how one might calculate the sum of the residuals to the 4th power.

Could this be done with simply with:
averagex:=mov(x,n,S);
sum(power(x-averagex,4),n);

Or is something more complicated required than this?

Thanks!
wabbit  
#2 Posted : Thursday, May 17, 2012 7:40:44 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
You have to deal with the variable length 'n' and the polynomial expansion of expressions to fourth and second powers.


wabbit [:D]
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.