homechevron_rightStudychevron_rightMathchevron_rightAlgebrachevron_rightlinear algebra

# Mean, variance and standard deviation of discrete random variable

This online calculator calculates mean, variance and standard deviation of random variable entered in the form of value-probability table

## This page exists due to the efforts of the following people:

 TimurArticle : Mean, variance and standard deviation of discrete random variable - AuthorCalculator : Mean, variance and standard deviation of discrete random variable - Author

This calculator can help you to calculate basic discrete random variable metrics: mean or expected value, variance, and standard deviation.

Mean or expected value of discrete random variable is defined as
$E(X)=\mu_X=\sum_{x \in R_x} x f(x)$

Variance of random variable is defined as
$Var(X)=\sigma_{X}^2=E([X-\mu_X]^2)$

An alternative way to compute the variance is
$Var(X)=\sigma_{X}^2=E(X^2)-\mu_{X}^2$

The positive square root of the variance is called the standard deviation $\sigma_{X}$.

As you can see, these metrics have quite simple formulas. Sometimes you need to find them to solve probability theory problems. For discrete random variable, the trick, of course, is to find correct value-probability pairs, then it is just simple math of additions and multiplications. So, this calculator can take care of simple math for you, once you enter value-probability pairs into the table. You can find example of usage below the calculator.

### Mean, variance and standard deviation of discrete random variable

#### Probability table

ValueProbability
Items per page:

Digits after the decimal point: 4
Mean

Variance

Standard deviation

## Example

Problem: A set of 10 microwave ovens includes 3 that are defective. If 5 of the ovens are chosen at random for shipment to a hotel, how many defective ovens can they expect?

How to use the calculator:

1. Select the current data in the table (if any) by clicking on top checkbox and delete it by clicking on "bin" icon on table header.
2. Add value-probability pairs (you need to determine them, but it is the essence of the problem). Note that the quickest way to do it is to "import" data. Click on "import" icon on table header and enter the following values
0;0.0833
1;0.4167
2;0.4167
3;0.0833

After that you will get the mean of 1.5. Of course 1.5 defective ovens does not make any physical sense. Instead, it should be interpreted as an average value if repeated shipments will be made under these conditions.

Show me
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 4, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.845382034778595, "perplexity": 622.9684170631494}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-09/segments/1550247504790.66/warc/CC-MAIN-20190221132217-20190221154217-00523.warc.gz"}