python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
MCMC for estimating negative binomial distribution
I want to estimate parameters of negative binomial distribution using MCMC Metropolis-Hastings algorithm. In other words, I have sample:
set.seed(42)
y <- rnbinom(20, size = 3, prob = 0.2)
and I w...
John
Votes: 0
Answers: 1
Sampling a product of 4 independent functions where two of them are constant - with emcee
I need to sample from the following function:
p = p1* p2* p3*p4
Where p1 and p2 are Gaussian functions with the same sigma but different means. But both p3 and p4 are equal to 1/(2*(pi)), both consta...
Matthew D.
Votes: 0
Answers: 0
Python: MCMC fit to data with variable uncertainties (using lmfit)
Please bear with me as I try to explain what I'm trying to do.
I'm trying fit an arctangent model to some data. I have two independent measurements in my dataset; one of these has unknown uncertaintie...
Ekbal Hussain
Votes: 0
Answers: 1