课程: Probability Foundations for Data Science

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Discrete vs. continuous dispersion

Discrete vs. continuous dispersion

- Let's explore how to calculate variance and standard deviation for both discrete and continuous random variables. Let's begin with discrete random variables in understanding how variance and standard deviation are calculated for them. Let's look at X, which is a discrete random variable with possible values, X1 to Xn, and associated probabilities, P1 to Pn. Variance is calculated by this equation where you are summing from 1 to N with the value Xi subtracted by the expectation of X, and this whole thing is squared. And then, you multiply it by the associated probability, Pi. Remember, you calculate discrete expectation with this equation where you are summing from values 1 to N for each value Xi multiplied by its associated probability Pi. The standard deviation is simply the square root of the variance. So, sigma is going to represent standard deviation and that's equal to the square root of Rx. Or again, sometimes you'll see it as sigma squared. Let's look at this in an example…

内容