Message Boards Message Boards

0
|
5155 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Using DistributionFitTest with BenfordDistribution

Posted 9 years ago

Hi there,

I'm fairly new to Mathematica, and I can't seem to figure out how to use DistributionFitTest . I've tried

data = {100, 123, 142, 324, 223, 245, 124, 532, 7456, 84, 49, 49, 3, 
   9, 1};
DistributionFitTest[data, BenfordDistribution, Automatic];

which gets me the output

DistributionFitTest::rctnlndst: The argument BenfordDistribution at position 2 should be a valid distribution or a rectangular array of real numbers with length greater than the dimension of the array. The dimensionality of the arguments at positions 1 and 2 must match. >>

and I've tried

data = {100, 123, 142, 324, 223, 245, 124, 532, 7456, 84, 49, 49, 3, 
   9, 1};
DistributionFitTest[data, BenfordDistribution[9], Automatic];

which is not properly interpreted and just gives me back my original list. On the page for BenfordDistribution it says it can be used with DistributionFitTest, can anyone fill me in on how I'm supposed to do this?

Thanks in advance.

POSTED BY: Jeffrey Lai
Posted 9 years ago

Hi, Jeffrey!

When I evaluated your code in my Mathematica notebook, things worked out just fine: enter image description here

Is there anything else you are doing to the data set? Can you attach a copy of your .nb file? Thanks!

POSTED BY: Jesse Dohmann
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract