There are endless types of statistical tests, such as Z-tests, t-tests, chi-squared tests and likelihood ratios; the choice depends, among other things, on the kind of data you’re looking at. Essentially all of them are done these days by feeding your data into computer software. When you run one of these programs, its output will include, alongside many other useful numbers, the relevant p-value.15