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

Notification

Icon
Error

Options
Go to last post Go to first unread
Flexi  
#1 Posted : Saturday, February 25, 2012 11:51:23 PM(UTC)
Flexi

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/27/2006(UTC)
Posts: 135

how to measure the evenness of distribution of 1 across data?

11111111000000000

10101010101010100

Both data have 8 ones but the for the second the distribution of 1 are more EVENLY across the data

wabbit  
#2 Posted : Sunday, February 26, 2012 12:03:45 AM(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)
Code:
sum(roc(data,1,$),length);
wabbit [:D]S
wabbit  
#3 Posted : Sunday, February 26, 2012 12:37:18 AM(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)
or what about:
Code:
sum(data<>ref(data,-1),length);



wabbit [:D]

Flexi  
#4 Posted : Thursday, March 1, 2012 10:17:12 PM(UTC)
Flexi

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/27/2006(UTC)
Posts: 135

Wabbit,

What about for nonn 0 1 data? The data may be 1000 to 2000 and want to have disribution of the evenness of data for data from 1100 to 1200

wabbit  
#5 Posted : Thursday, March 1, 2012 10:33:30 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)
To facilitate the comparison between one entity of the price order of dollars with another entity of th eprice order of thousands of dollars, use percentage ROC(), like:

Code:
sum(roc(data,1,%),length);



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.