From the software that came with our Probability & Statistics book: