필터 지우기
필터 지우기

How to modify a uniform distribution to make a custom distribution?

조회 수: 5 (최근 30일)
Ara Jo
Ara Jo 2021년 9월 16일
답변: Prachi Kulkarni 2021년 9월 20일
Hello,
I am trying to write down a custrom distribution function that essentially motifies slightly a uniform distribution. For instance, when phi is a uniform distribution between 0 and 100:
phi = makedist('Uniform','lower',0,'upper',100);
I would like to create a distribution xi that is:
xi (x)= phi(x)/ (1 - phi_cdf(x*)) if x > x*
= 0 otherwise
Is there a way to do this? Thanks for your help!
  댓글 수: 1
Jeff Miller
Jeff Miller 2021년 9월 17일
Could you explain a bit more about the distribution you are trying to create? It is confusing that phi is both a distribution (made by makedist) and a function phi(x). Is the function phi_pdf?
A wild guess: maybe you want xi = makedist('Uniform','lower',x*,'upper',100) ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Prachi Kulkarni
Prachi Kulkarni 2021년 9월 20일
Hi,
Let the variable xStar = x*
The desired distribution xi(x) can be generated as
xi = makedist('Uniform','lower',xStar,'upper',100)
This distribution is valid if 0 ­<= xStar <= 100

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by