The mean is the expected value of the random variable, calculated by summing the products of each value and its probability. The variance measures the spread of the values around the mean, calculated by finding the expected value of the squared deviations from the mean.