This program computes the mean, variance, and standard deviation of a probability distribution. List 1 should contain the x values and list 2 should contain the probabilities. The program reminds the user of this.

The data is not checked to make sure that it conforms to a probability distribution (the probabilities are between 0 and 1 and the sum of the probabilities is 1). If the variance turns out negative (a really good sign that something is wrong), then a corrective measure is suggested.