Roguebfl
May 7th, 2010, 07:15 PM
I have a height weight chart that gives me the values for the 5th, 10th, 25th, 50th, 75th, 90th, 95th percentiles. anyone have a Algorithm to (passably) randomly generate results that match my data?
|
Click to See Complete Forum and Search --> : Random distribution with given Percentiles Roguebfl May 7th, 2010, 07:15 PM I have a height weight chart that gives me the values for the 5th, 10th, 25th, 50th, 75th, 90th, 95th percentiles. anyone have a Algorithm to (passably) randomly generate results that match my data? Zachm May 8th, 2010, 04:05 AM Well, it's not random, but you can use the Least Squares (http://en.wikipedia.org/wiki/Least_squares) method to fit a set of data points with a curve (a.k.a Curve Fitting (http://en.wikipedia.org/wiki/Curve_fitting)). There is a built in matlab function (http://www.mathworks.com/access/helpdesk/help/toolbox/optim/ug/lsqcurvefit.html) that does it. Regards, Zachm codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |