# An example of the differences in frequentist and bayesian perspectives

The following is an example from a book I'm reading. Let there be a sequence of throws of an unfair coin, and $\theta$ be the prob. of getting head.

Imagine the observer gets: $x=(T,H,T,T,H,H,T,H,H,H)$, which could have been obtained by different sampling processes:

• throw the coin a predetermined number of times, in this case 10.
• throw the coin until we get 6 heads.
• throw the coin until we get 3 consecutive heads.

Why would a classical/frequentist observer be interested in the sampling process when doing inference about $\theta$? I understand that a frequentist is interested not just the obtained sample, but also in every other sample that could have been obtained and wasn't. What I don't get is why is that, and how would that concern be in this specific case.

Any help would be appreciated.

Edit: For Bayesian inference, it would not matter which sampling procedure was used, as long we obtained the same sample, since then we have the same likelihood. (Assuming the prior would still be the same independently of the sampling procedure)

Your example refers to likelihood principle that states that given a statistical model, all of the evidence in a sample relevant to model parameters is contained in the likelihood function, i.e. that we do not condition our estimates on unseen data. However it is not true that Bayesians are not interested in sampling distribution. In fact, knowledge about sampling distribution plays a pivotal role in defining your model as noticed by Gandenberger (2015):

In practice, subjective Bayesians typically use methods that depend on the sampling distribution to estimate an expert’s $P_\text{old}(H)$, such as methods that involve fitting a prior distribution that is conjugate to the sampling distribution. Objective Bayesians use priors that depend on the sampling distribution in order to achieve some aim such as maximising a measure of the degree to which the posterior distribution depends on the data rather than the prior, as in the reference Bayesian approach (Berger  p. 394). Some contemporary Bayesians (e.g. the authors of Gelman et al. , pp. 157–96) also endorse model-checking procedures that violate the Likelihood Principle more drastically. It is worth noting that neither subjective nor objective Bayesians violate the Likelihood Principle in a different sense of ‘violates’ than the one used here, even when checking their models: they do not allow information not contained in the likelihood of the observed data to influence the inferences they draw conditional on a model (Gelman ). But they generally do allow the sampling distribution of the experiment (for instance, whether the experiment is binomial or negative binomial) to influence their choice of a model, and thereby potentially influence the conclusions they reach.

Gandenberger, G. (2015). A new proof of the likelihood principle. The British Journal for the Philosophy of Science, 66(3), 475-503.

• I'm not sure I agree with you. For Bayesian inference, it would not matter which sampling procedure was used, as long we have the same sample, since then we have the same likelihood. (The prior would still be the same independently of the sampling) Jul 6, 2016 at 14:26
• Well... not really... For modeling first one you'd use binomial distribution, for the second one negative binomial etc.
– Tim
Jul 6, 2016 at 14:32
• @Tim could you give me some pointers on the frequentist vs Bayesian in CV community? I assume there are a lot and I want to carefully read some good ones. Thanks Jul 6, 2016 at 14:52