Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- How do I check the kind of distribution of a sample data?

Topic Options

- Start Article
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Dec 28, 2016 5:57 AM
(4901 views)

Hi everybody,

Could you please have me a clue to check a kind of distribution of a sample data set by JSL (Ex: check to see if a sample data has normal distribution or not?

Thanks.

- Tags:
- Check
- distribution

2 ACCEPTED SOLUTIONS

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Here is the example from:

Help==>Scripting Index==>Distribution==>Continuous Distribution==>All

```
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Cities.jmp" );
obj = Distribution( Column( :CO ) );
obj << Fit Distribution( All( 1 ) );
```

Jim

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

I assume by your question that the user is not directly involved (interactive assessment) but instead a hypothesis test is desired. I would employ the Distribution platform. Launch it with the data column to be tested in the Y role. Fit the normal distribution and obtain the results of the goodness of fit test. Illustrated with the weight variable in the sample data table Big Class:

```
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dist = dt << Distribution(
Y( :weight ),
Fit Distribution( Normal( Goodness of Fit( 1 ) ) )
);
dist rep = dist << Report;
p value = dist rep["Goodness-of-Fit Test"][NumberColBox("Prob<W")] << Get( 1 );
```

Hope answer helps.

Learn it once, use it forever!

2 REPLIES 2

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Here is the example from:

Help==>Scripting Index==>Distribution==>Continuous Distribution==>All

```
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Cities.jmp" );
obj = Distribution( Column( :CO ) );
obj << Fit Distribution( All( 1 ) );
```

Jim

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

I assume by your question that the user is not directly involved (interactive assessment) but instead a hypothesis test is desired. I would employ the Distribution platform. Launch it with the data column to be tested in the Y role. Fit the normal distribution and obtain the results of the goodness of fit test. Illustrated with the weight variable in the sample data table Big Class:

```
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dist = dt << Distribution(
Y( :weight ),
Fit Distribution( Normal( Goodness of Fit( 1 ) ) )
);
dist rep = dist << Report;
p value = dist rep["Goodness-of-Fit Test"][NumberColBox("Prob<W")] << Get( 1 );
```

Hope answer helps.

Learn it once, use it forever!