Effacer les filtres
Effacer les filtres

pdf of two distribution in mixture

2 vues (au cours des 30 derniers jours)
Lakshit Chugh
Lakshit Chugh le 4 Mai 2020
Commenté : Lakshit Chugh le 7 Mai 2020
How should i get pdf of 2 mixture beta and gamma if we have given mean =2 a=4,b=7 ? i have generated random variable

Réponses (1)

Jeff Miller
Jeff Miller le 4 Mai 2020
the pdf of the mixture is just the weighted average of the pdfs of the beta and gamma, something like
p_beta = 0.8; % probability of beta
X = 0.1:0.01:1; % whatever X range you want
mixpdf = p_beta*betapdf(X,{beta parameters go here}) + (1-p_beta)*gampdf(X,{gamma parameters go here})
  4 commentaires
Jeff Miller
Jeff Miller le 4 Mai 2020
OK, X can be your random data if you want the pdf's of those random data values.
I am pretty sure that I don't really understand what you are actually trying to compute.
Lakshit Chugh
Lakshit Chugh le 7 Mai 2020
actually i am trying to find histogram density and kernel density can you help me with that ?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by