### Abstract

This article shows how the pooled-variance two-sample t statistic arises from a Bayesian formulation of the two-sided point null testing problem, with emphasis on teaching. We identify a reasonable and useful prior giving a closed-form Bayes factor that can be written in terms of the distribution of the two-sample t statistic under the null and alternative hypotheses, respectively. This provides a Bayesian motivation for the two-sample t statistic, which has heretofore been buried as a special case of more complex linear models, or given only roughly via analytic or Monte Carlo approximations. The resulting formulation of the Bayesian test is easy to apply in practice, and also easy to teach in an introductory course that emphasizes Bayesian methods. The priors are easy to use and simple to elicit, and the posterior probabilities are easily computed using available software, in some cases using spreadsheets.

Original language | English |
---|---|

Pages (from-to) | 252-257 |

Number of pages | 6 |

Journal | American Statistician |

Volume | 59 |

Issue number | 3 |

DOIs | |

State | Published - Aug 2005 |

### Keywords

- Bayes factor
- Posterior probability
- Prior elicitation
- Teaching Bayesian statistics

## Fingerprint Dive into the research topics of 'The Bayesian two-sample t test'. Together they form a unique fingerprint.

## Cite this

*American Statistician*,

*59*(3), 252-257. https://doi.org/10.1198/000313005X55233