Search Comments and Ratings

go

   
Date File Comment by Comment Rating
13 Mar 2012 Fit all valid parametric probability distributions to data ALLFITDIST Fit all valid parametric probability distributions to data. Author: Mike Sheppard

Mike Sheppard (view profile)

Mike Sheppard

Mike Sheppard (view profile)

Hi Roni,

The "Best Fit" can be found by the output by either D(1) or PD{1}, depending on if you want a structure or ProbDist class object. You can use the class object directly in other statistical functions, such as:

p=cdf(PD{1},xvalue)

The reason for including all valid distributions is that depending on preferences of model selection or assumptions from the data the distribution that you may prefer to use may be the 2nd or even 3rd "best" from the output, or not given at all. This is especially true if the SORTBY values are close in value, or if a parameter in a given distribution is close to a simpler special case.

Example 3 is an example of the latter; should you use as a model the Negative Binomial Distribution with r=.98 or assume it is actually the more simpler Geometric Distribution with r=1 which is not given as an output?

The error graph is displayed when 'CDF' is given as an input. You can change the number of distributions to include in the plot by adjusting the max_num_dist variable in the plotfigs subfunction.

Hope that helps,

-MIke

Comment only
15 Feb 2012 Fit all valid parametric probability distributions to data ALLFITDIST Fit all valid parametric probability distributions to data. Author: Mike Sheppard

Mike Sheppard (view profile)

Mike Sheppard

Mike Sheppard (view profile)

Warwick, thanks for your note. I am updating the file a bit, and the functionality of custom distributions seems interesting.

If you like, you can e-mail me directly with your improved functionality and I can include it in the next update with acknowledgment.

Comment only
14 Feb 2012 Fit all valid parametric probability distributions to data ALLFITDIST Fit all valid parametric probability distributions to data. Author: Mike Sheppard

Mike Sheppard (view profile)

Mike Sheppard

Mike Sheppard (view profile)

Warwick, for a "potentially a very useful script" I'm sorry you felt it was only worth a rating of one. Do you have suggestions on how it can be improved? Constructive criticism or ways to improve the program/functionality are always welcome, but I did not see any in your comment, other than asking for specific help after giving it a poor rating.

Please re-read the help section; specifically Example 2.

Comment only
10 Feb 2012 Generation of Random Variates generates random variates from over 870 univariate distributions Author: James Huntley

James Huntley (view profile)

Mike Sheppard

Mike Sheppard (view profile)

5
08 Dec 2011 All Sums Distribution of unique sums among all combinations of vectors. Author: Mike Sheppard

Mike Sheppard (view profile)

Mike Sheppard

Mike Sheppard (view profile)

For unequal probabilities see "Sum of probability distributions" #34082

Comment only
08 Dec 2011 Sum of probability distributions SUMPDF Probability distribution of the sum of distributions Author: Mike Sheppard

Mike Sheppard (view profile)

Mike Sheppard

Mike Sheppard (view profile)

Good idea. Expanded the code the uploaded a new file to handle more general cases. See "Apply a function to a set of probability distributions" #34108

Comment only
30 Nov 2011 Recursive directory listing Directory listing with a difference, supports directory wildcards. Author: Gus Brown

Gus Brown (view profile)

Mike Sheppard

Mike Sheppard (view profile)

5
30 Nov 2011 Chinese reminder theorem just for fun Author: Su Dongcai

Su Dongcai (view profile)

Mike Sheppard

Mike Sheppard (view profile)

As an alternative, using my "System of linear congruences" submission (#32856) you can solve more general congruence problems, with Chinese Remainder Theorem being a special case:

sunzTheorem([2 3 2], [3 5 7])
ans =
23

lincon([1 1 1], [2 3 2], [3 5 7])
ans =
23 105

Meaning 23+105*k for any integer k would also be a solution.

Comment only
31 Oct 2011 Automatic Map Scale Generation Intelligently creates and places a scale on a figure based on the lat/lon limits. Author: Jonathan Sullivan Mike Sheppard

Mike Sheppard (view profile)

5
26 Oct 2011 CATPAD Concatenation of arbitrarily sized data along any dimension. Author: Jonathan Sullivan Mike Sheppard

Mike Sheppard (view profile)

5
15 Jul 2011 Temperature Conversion Toolbox Convert temperature between Fahrenheit, Celsius, Kelvin, and Rankine Author: Jonathan Sullivan Mike Sheppard

Mike Sheppard (view profile)

5
06 Jun 2011 Velocity Conversion Toolbox Convert velocities between mph, m/s,km/h, kts, ft/s Author: Jonathan Sullivan Mike Sheppard

Mike Sheppard (view profile)

5
11 Feb 2011 ALLCOMB All combinations of input (v4.0, feb 2014) Author: Jos (10584)

Jos (10584) (view profile)

Mike Sheppard

Mike Sheppard (view profile)

In the Neural Network Toolbox there is combvec, which produces the same results as the examples.
combvec([1 3 5],[-3 8],[0 1])
combvec(1:2,3:4,5:6)
If you have the toolbox the combvec might be helpful, if not then allcomb might help for general.

Comment only

Contact us