Negative binomial / binomial experiments: frequentist or Bayesian?
statwonk.com
statwonk.com
In fact this case can be inferred from the fact that the Beta distribution is the conjugate prior distribution for both the binomial and negative binomial distribution. There are many more distributions that have the Beta distribution as conjugate prior to one of the variables (in fact it's pretty much all distributions with a factor p or (1-p) somewhere).
Arguments exist for each side.
Yet interestingly, the likelihood + prior is enough to make statements about the distribution of the parameters you're looking at. So you can say something about the certainty that your parameter exceeds a certain bound.
I suppose it really depends on your application which you'd want to use.
I think this terminology is way too strong. Obviously the context matters. For example, the way the data is collected (whether or not the data collector is a known liar/p-hacker, the sensor is known to malfunction at certain temperatures, etc) should affect inference.
negative_binomial_likelihood <- function(p) {
prod(dnbinom(40, 7, p))
}
binomial_likelihood <- function(p) {
prod(dbinom(7, 47, p))
}The `prod` call is an artifact of me previously using the function in a vectorized manner to calculate the model's likelihood.[1] This isn't the common way one might see. More often one would work with the log likelihood [2]. The reason being that the product of the density can be converted into sums avoiding overflow errors. The likelihood is __very cool_. I liken it to a grand generalization of the needle of a record player wrt to information (entropy).
[1] https://en.wikipedia.org/wiki/Maximum_likelihood_estimation#...
[2] https://en.wikipedia.org/wiki/Likelihood_function#Log-likeli...
p = seq(.01, .99, by = .01)
y1 = dbinom(7, 47, p)
y2 = dnbinom(40, 7, p)
It doesn't matter much for this use case but that will also be much faster. It does simplify the code quite a bit too though.I don't follow.
"Should depend only on the outcome observed and not on any other outcome we might have observed and thus sharply contrasts with the method of likelihood inference from the Neyman-Pearson, or more generally from a frequentist, approach. In particular, questions of unbiasedness, minimum variance and risk, consistency, the whole apparatus of confidence intervals, significance levels, and power of tests, etc., violate the conditionality principle."
and
"Here is yet another scenario that will not impress a conditionalist:"
You don't write a paper to trash a POV. You put your own thesis across. That thing is bollocks.