4
$\begingroup$

I am new to statistics and some concepts are not clear to me. I have a random sample that is distributed as a Binomial with parameters $k=2$ and $\theta$ unknow. Using a Bayesian approach I must give a point estimate for $\theta$.

I understand that being binomial, a priori I must use a beta distribution, and there is a relationship between the expectation and the variance with the beta distribution. I intend to obtain the expectation and variance of my initial data and with them obtain shape1, shape2, (I am working in R).

to get my a priori beta distribution, but shape1 and shape2 come out negative, which tells me that I am doing something wrong. Can someone guide me? Or if I'm doing it wrong, how should I proceed?

$\endgroup$
3
  • $\begingroup$ Are you doing MAP estimation? $\endgroup$
    – Dave
    Commented Jun 12, 2021 at 3:10
  • $\begingroup$ No, if so, I think the problem would be specific, right? $\endgroup$ Commented Jun 12, 2021 at 3:30
  • 2
    $\begingroup$ By the way, you do not "have to" use a beta distribution. The main reason to do so would be that it's really easy to get the posterior (because it's a conjugate prior). In practice, people may choose any kind of prior for various reasons (e.g. a N(0, 2.5) prior on logit($\theta$)). $\endgroup$
    – Björn
    Commented Jun 12, 2021 at 8:20

2 Answers 2

7
$\begingroup$

I intend to obtain the expectation and variance of my initial data and with them obtain shape1, shape2...

That is wrong, and contradicts the methodology of Bayesian analysis. If you use your data to determine the hyperparameters in your prior distribution then you are double-counting the data --- using it once to get the prior distribution and then using it again to update to get the posterior. The idea of Bayesian analysis is that you should formulate a prior belief that does not take account of your data. You then use Bayes rule to obtain a posterior belief that takes account of the data.

What you should do here is to choose a prior distribution (or a set of prior distributions if you want to do "imprecise" analysis) using some method that does not use your observed data. That may mean using some values to represent prior "ignorance" or it may mean using values that represent some a priori theoretical information about your problem.

$\endgroup$
5
$\begingroup$

It is called prior for a specific reason:

From Googling prior

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.