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
- :
- Logistic Fit Graph Wrong?

Topic Options

- 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

Oct 20, 2014 8:53 PM
(1948 views)

1 ACCEPTED SOLUTION

Accepted Solutions

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

Oct 20, 2014 11:25 PM
(3518 views)

Solution

Hi jcampbell-smith,

I can certainly see how that might seem confusing! JMP is not plotting incorrectly though, but is rather plotting something different, and importantly, generalizable to plots for more complicated logistic models. In your example above, any observation above the line is a "yes" response, and any observation below the line is a "no" response. The location of the points in X space reflects what was measured for that observation, but the exact location in Y space, other than being above or below the line, is arbitrary. This last point is important… JMP is space-filling to convey in a very visual way where observations are, and how the probability of being above or below the line (answering Yes or No) depends on your X. The line partitioning the area is showing the probability of a "no" response at a given X value. As you can see, the probability of a yes response is decreasing (no response increasing) as you increase X since you can see there are far fewer Y responses above the line at higher values of X, and many more values above the line at low values for X, something that is very hard to see without the jittering within each space (as is done in R or other software).

For more information, here is the basic documentation on the logistic report:

and here are some additional examples:

Additional Examples of Logistic Regression

In the second link you will see some examples with ordinal and multinomial logistic regression, something I haven't seen another piece of software display well graphically.

e.g.:

I hope this helps!

Julian

7 REPLIES

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

Oct 20, 2014 11:25 PM
(3519 views)

Hi jcampbell-smith,

I can certainly see how that might seem confusing! JMP is not plotting incorrectly though, but is rather plotting something different, and importantly, generalizable to plots for more complicated logistic models. In your example above, any observation above the line is a "yes" response, and any observation below the line is a "no" response. The location of the points in X space reflects what was measured for that observation, but the exact location in Y space, other than being above or below the line, is arbitrary. This last point is important… JMP is space-filling to convey in a very visual way where observations are, and how the probability of being above or below the line (answering Yes or No) depends on your X. The line partitioning the area is showing the probability of a "no" response at a given X value. As you can see, the probability of a yes response is decreasing (no response increasing) as you increase X since you can see there are far fewer Y responses above the line at higher values of X, and many more values above the line at low values for X, something that is very hard to see without the jittering within each space (as is done in R or other software).

For more information, here is the basic documentation on the logistic report:

and here are some additional examples:

Additional Examples of Logistic Regression

In the second link you will see some examples with ordinal and multinomial logistic regression, something I haven't seen another piece of software display well graphically.

e.g.:

I hope this helps!

Julian

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

Oct 21, 2014 2:55 AM
(1759 views)

As a follow-up to Julian's note, JMP actually builds the model (and the graph) for the probability of a "no" response since an alphabetical ordering is used (no comes before yes). You can change this by adding a Value Ordering column property to your response column and specifying "yes" first. This would then result in the picture you would expect to see.

Dan Obermiller

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

Oct 21, 2014 7:06 AM
(1759 views)

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

Oct 21, 2014 9:44 PM
(1759 views)

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

Oct 21, 2014 9:44 PM
(1759 views)

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

Oct 21, 2014 4:03 AM
(1759 views)

One other point to be made here: At any given value of X, the total probability of the Y responses (Yes and No) is 100%. Thus at Age = 0, the Yes is at about 50% and the No is at about 50% a well. At Age = 60, the Yes is about 20% and the No is about 80%. I always remind people when showing them a logistic regression plot to think of it as a probability plot rather than as a correlation plot.

Steve

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

Oct 21, 2014 9:45 PM
(1759 views)