Generate synthetic data (or probability distribution object) from user-defined distribution function
显示 更早的评论
I need to generate a synthetic dataset using a distribution that is not supported by the Matlab stats toolbox. The distribution is a Type II Pareto (or Lomax) with the probability density function f ( x ) = ( a m^a) / ( m + x )^( 1 + a ), where a is a shape parameter and m is the minimum permissible value of x. The distribution also needs to be truncated at x=50.
Is it possible to generate a probability distribution object (pd) from an equation or PDF, so that I can then use the "random" function to create the synthetic dataset? Or any other way to do this? Right now, I'm using "randsample" to do this, but that imposes a finite range or truncation on the PDF since it's an array. Thanks!
采纳的回答
更多回答(1 个)
Image Analyst
2018-1-15
0 个投票
Attached is an example where I use it to get samples drawn from the Rayleigh distribution.
类别
在 帮助中心 和 File Exchange 中查找有关 Birnbaum-Saunders Distribution 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

