Thread Subject: Probplot Problem

Subject: Probplot Problem

From: gozer

Date: 11 Feb, 2010 20:03:04

Message: 1 of 3

Looking for help using the probplot(ax,fun,params) routine. After fitting a curve to my dataset using probplot(ax,fun,params) I would like to extract a specific x-value for a specific y input value from the curve. Any ideas on how to accomplish this?

Subject: Probplot Problem

From: gozer

Date: 11 Feb, 2010 20:44:04

Message: 2 of 3

"gozer " <wolfeb@timken.com> wrote in message <hl1npo$o8a$1@fred.mathworks.com>...
> Looking for help using the probplot(ax,fun,params) routine. After fitting a curve to my dataset using probplot(ax,fun,params) I would like to extract a specific x-value for a specific y input value from the curve. Any ideas on how to accomplish this?

Further explanation: I guess what I am trying to do is return x-y values from the 'fun' being plotted.
The line looks like:
h_ = probplot(ax_,dist_.cdffunc,p_);

this structure array has sub arrays of function handles.

Subject: Probplot Problem

From: Tom Lane

Date: 11 Feb, 2010 21:05:59

Message: 3 of 3

>> Looking for help using the probplot(ax,fun,params) routine. After
>> fitting a curve to my dataset using probplot(ax,fun,params) I would like
>> to extract a specific x-value for a specific y input value from the
>> curve. Any ideas on how to accomplish this?
>
> Further explanation: I guess what I am trying to do is return x-y values
> from the 'fun' being plotted.
> The line looks like:
> h_ = probplot(ax_,dist_.cdffunc,p_);
>
> this structure array has sub arrays of function handles.

It looks like you are using generated code from the "dfittool" function in
the Statistics Toolbox. I think the structure you mention has an inverse cdf
function handle you can call. But here's how to do it in general.

% This will create a prob plot with an extra fitted curve corresponding to a
% Weibull distribution
>> load census
>> pd = fitdist(pop,'weibull')
pd =
weibull distribution
    a = 85.1462
    b = 0.983611
>> probplot(pop)
>> probplot(gca,pd)

% I can call the inverse cdf method for the distribution object
>> icdf(pd,.75)
ans =
  118.6819

% Or I can call the Weibull inverse cdf function and supply the paramters I
have
>> wblinv(.75,pd.Params(1),pd.Params(2))
ans =
  118.6819

-- Tom

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
plotting gozer 11 Feb, 2010 15:04:06
statistics gozer 11 Feb, 2010 15:04:05
rssFeed for this Thread

Contact us at files@mathworks.com