Questions tagged [dirichlet]

The Dirichlet distribution is a family of continuous multivariate probability distributions.

The Dirichlet distribution is a family of continuous multivariate probability distributions. It is the multivariate generalization of the beta distribution. Dirichlet distributions are very often used as prior distributions in Bayesian statistics, and in fact the Dirichlet distribution is the conjugate prior of the categorical distribution and multinomial distribution.

93 questions
0
votes
1 answer

KeyError while printing trace in PyMC

I had read that by default some names are assigned to Stochastic vaiables. I am writing the relevant portion of my code below. lam = pm.Uniform('lam', lower=0.0, upper=5, doc='lam') parameters = pm.Dirichlet('parameters',[1,1,1,1],…
turing
  • 577
  • 1
  • 4
  • 12
0
votes
2 answers

How could we know the Dirichlet distribution is describing the topic rather than something else?

Dirichlet distribution is used in document modelling. I read from this article that: Different Dirichlet distributions can be used to model documents by different authors or documents on different topics. So how could we tell whether it is…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
0
votes
1 answer

Plot not showing up in R

How can I fix the following code alpha <- 1 draws <- 15 dimen <- 10 require(MCMCpack) x <- rdirichlet(draws, rep(alpha, dimen)) require(ggplot2) dat <- data.frame(item=factor(rep(1:10,15)), draw=factor(rep(1:15,each=10)), …
Boshra N
  • 111
  • 1
  • 4
  • 13
1 2 3 4 5 6
7