# 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)

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.