{"id":2109,"date":"2021-08-03T17:47:37","date_gmt":"2021-08-03T21:47:37","guid":{"rendered":"https:\/\/openbooks.macewan.ca\/rcommander\/?post_type=chapter&#038;p=2109"},"modified":"2025-05-07T17:50:04","modified_gmt":"2025-05-07T21:50:04","slug":"4-4-mean-and-standard-deviation-of-discrete-variable","status":"publish","type":"chapter","link":"https:\/\/openbooks.macewan.ca\/introstats\/chapter\/4-4-mean-and-standard-deviation-of-discrete-variable\/","title":{"raw":"4.4 Mean and Standard Deviation of a Discrete Variable","rendered":"4.4 Mean and Standard Deviation of a Discrete Variable"},"content":{"raw":"Given the probability distribution of a discrete random variable X, we are able to calculate the mean, variance, and standard deviation.\r\n\r\nThe <strong>mean<\/strong> of a discrete variable X can be calculated as\r\n\r\n[latex] \\mu = \\sum xP(X=x), [\/latex]\r\n\r\nwhich is a weighted average over all possible values of X. Each possible value x is weighted by its probability [latex]P(X=x)[\/latex]. The mean is also called the <strong>expected value <\/strong>or the <strong>expectation<\/strong> of X. Note that a probability distribution can be viewed as the relative frequency distribution of some population. In this regard, the mean of a discrete random variable is equivalent to the population mean.\r\n<div style=\"height: 55px; margin-top: 5px;\"><img class=\"size-full wp-image-99 alignleft\" src=\"https:\/\/openbooks.macewan.ca\/rcommander\/wp-content\/uploads\/sites\/8\/2020\/06\/instructornote.png\" alt=\"\" width=\"250\" height=\"50\" \/><\/div>\r\nSome students might find it easier to find the mean by constructing a working table (see the following example).\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Example: Mean of a Discrete Variable<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nMark has no siblings, John has one sibling, both Rebecca and Sarah have two siblings, and Mary has three. Randomly pick one student and let X be the number of siblings the student has. Find the mean (expected value) of X.\r\n\r\nWe calculate the mean of X by constructing a working table. The first two columns of the table give the probability distribution of X and, in each row, the value in the third column is the product of the first two values.\r\n<p style=\"text-align: center;\"><strong>Table 4.3<\/strong>: Working Table for the Mean (Expected Value) of a Discrete Variable<\/p>\r\n\r\n<div align=\"center\">\r\n<table class=\"aligncenter\" style=\"width: 100%; height: 90px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\r\n<tfoot>\r\n<tr class=\"shaded\" style=\"height: 15px;\">\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"104\">\r\n<div align=\"center\"><strong>Sum<\/strong><\/div><\/td>\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">[latex]\\sum P(X=x) = 1.0[\/latex]<\/div><\/td>\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">[latex]\\sum x P(X=x) = 1.6[\/latex]<\/div><\/td>\r\n<\/tr>\r\n<\/tfoot>\r\n<thead>\r\n<tr class=\"shaded\" style=\"height: 15px;\">\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"104\">\r\n<div align=\"center\">[latex]x[\/latex]<\/div><\/td>\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">[latex]P(X=x)[\/latex]<\/div><\/td>\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">[latex]xP(X=x)[\/latex]<\/div><\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"104\">\r\n<div align=\"center\">0<\/div><\/td>\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">0.2<\/div><\/td>\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">0 x 0.2 = 0<\/div><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"104\">\r\n<div align=\"center\">1<\/div><\/td>\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">0.2<\/div><\/td>\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">1 x 0.2 = 0.2<\/div><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"104\">\r\n<div align=\"center\">2<\/div><\/td>\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">0.4<\/div><\/td>\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">2 x 0.4 = 0.8<\/div><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"104\">\r\n<div align=\"center\">3<\/div><\/td>\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">0.2<\/div><\/td>\r\n<td style=\"height: 15px;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">3 x 0.2 = 0.6<\/div><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\nTaking the sum of the values in the last column gives the mean (expected value) of X, i.e.,\r\n\r\n[latex]\\begin{align*} \\mu &amp;= \\sum x P(X=x) \\\\ &amp;= 0 + 0.2 + 0.8 + 0.6 \\\\ &amp;= 1.6. \\end{align*}[\/latex]\r\n\r\n<strong style=\"text-align: initial; font-size: 1em;\">Interpretation<\/strong><span style=\"text-align: initial; font-size: 1em;\">: On average, each of those five students has 1.6 siblings.<\/span>\r\n\r\n<\/div>\r\n<\/div>\r\n<div style=\"height: 55px; margin-top: 5px;\"><img class=\"size-full wp-image-99 alignleft\" src=\"https:\/\/openbooks.macewan.ca\/rcommander\/wp-content\/uploads\/sites\/8\/2020\/06\/instructornote.png\" alt=\"\" width=\"250\" height=\"50\" \/><\/div>\r\nEven though the random variable X = # of siblings can only take integer values, we should keep the decimal place for the mean of X. That is, do not round the mean 1.6 to 2. To demonstrate why we keep the mean at 1.6, let us suppose that this probability distribution describes a much larger population of students. Although it is counterintuitive to say that we expect a student to have 1.6 siblings, it is quite natural to say that we expect 10 students to have a total of 16 siblings, 100 students to have a total of 160 siblings, and so on. If we sample the entire population of students, then the combined number of siblings is 1.6 times greater than the number of students. Hence, the average number of siblings per student is 1.6.\r\n\r\n<span style=\"font-size: 1em;\">Here we explain why the population mean is given by [latex]\\mu = \\sum xP(X=x)[\/latex]. Suppose there are [latex]N=5[\/latex] students, one has no siblings [latex](x_1 = 0)[\/latex], one has one sibling [latex](x_2 = 1)[\/latex], two have two siblings [latex](x_3 = x_4 =2)[\/latex], and one has three siblings [latex](x_5 =3)[\/latex]. Recall that the population mean [latex]\\mu[\/latex] is calculated as:<\/span>\r\n\r\n[latex]\\begin{align*}\\mu&amp;=\\frac{\\sum x_i}{N}=\\frac{x_1+x_2+x_3+x_4+x_5}{5}=\\frac{0+1+2+2+3}{5}=\\frac{{\\color{blue} 0}\\times {\\color{red} 1}+{\\color{blue} 1}\\times {\\color{red} 1}+{\\color{blue} 2}\\times{\\color{red} 2}+{\\color{blue} 3}\\times {\\color{red} 1}}{5}\\\\&amp;={\\color{blue} 0} \\times {\\color{red} \\frac{1}{5}}+{\\color{blue} 1}\\times {\\color{red} \\frac{1}{5}}+{\\color{blue} 2}\\times {\\color{red} \\frac{2}{5}}+{\\color{blue} 3}\\times {\\color{red} \\frac{1}{5}}\\\\&amp;={\\color{blue} 0}\\times {\\color{red} P(X=0)}+{\\color{blue} 1}\\times {\\color{ red} P(X=1)}+{\\color{blue} 2}\\times{\\color{red} P(X=2)}+{\\color{blue} 3}\\times{\\color{red} P(X=3)}\\\\&amp;=\\sum {\\color{blue} x} {\\color{red} P(X=x)}.\\end{align*}[\/latex]\r\n\r\nSimilarly, the <strong>variance<\/strong> of a discrete variable X can be calculated as\r\n\r\n&nbsp;\r\n\r\n[latex]\\sigma^2=\\underbrace{\\sum (x-\\mu)^2 P(X=x)}\\limits_{\\mbox{defining formula}}.[\/latex]\r\n\r\nwhich is a weighted average of the squared distance from each value [latex]x[\/latex]\u00a0to the population mean [latex]\\mu[\/latex], weighted by its probability [latex]P(X=x)[\/latex]\u00a0(relative frequency). It can be shown that\r\n\r\n[latex]\\sigma^2=\\sum (x-\\mu)^2 P(X=x)=\\underbrace{\\sum x^2P(X=x)-\\mu^2}\\limits_{\\mbox{computing formula}}.[\/latex]\r\n\r\nTaking the square root of the variance [latex]\\sigma^2[\/latex]\u00a0gives the standard deviation [latex]\\sigma[\/latex]\r\n\r\n[latex]\\sigma=\\sqrt{\\sigma^2}=\\underbrace{\\sqrt{\\sum (x-\\mu)^2 P(X=x)}}\\limits_{\\mbox{defining formula}}=\\underbrace{\\sqrt{\\sum x^2 P(X=x)-\\mu^2}}\\limits_{\\mbox{computing formula}}.[\/latex]\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Example: Standard Deviation of a Discrete Variable<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nMark has no siblings, John has one sibling, both Rebecca and Sarah have two siblings, and Mary has three. Randomly pick one student and let X be the number of siblings the student has. Find the standard deviation of X.\r\n\r\nWe can find the standard deviation using a working table:\r\n\r\n<strong>Table 4.4<\/strong>: Standard Deviation Using Computing Formula\r\n<div align=\"center\"><\/div>\r\n<table style=\"border-collapse: collapse; width: 100%; height: 104px;\" border=\"0\">\r\n<tbody>\r\n<tr class=\"shaded\" style=\"height: 29px;\">\r\n<td style=\"width: 25%; height: 29px;\">[latex]x[\/latex]<\/td>\r\n<td style=\"width: 25%; height: 29px;\">[latex]P(X=x)[\/latex]<\/td>\r\n<td style=\"width: 25%; height: 29px;\">[latex]x^2[\/latex]<\/td>\r\n<td style=\"width: 25%; height: 29px;\">[latex]x^2P(X=x)[\/latex]<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"width: 25%; height: 15px;\">0<\/td>\r\n<td style=\"width: 25%; height: 15px;\">0.2<\/td>\r\n<td style=\"width: 25%; height: 15px;\">0<sup>2<\/sup>=0<\/td>\r\n<td style=\"width: 25%; height: 15px;\">0 x 0.2 = 0<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"width: 25%; height: 15px;\">1<\/td>\r\n<td style=\"width: 25%; height: 15px;\">0.2<\/td>\r\n<td style=\"width: 25%; height: 15px;\">1<sup>2<\/sup>=1<\/td>\r\n<td style=\"width: 25%; height: 15px;\">1 x 0.2 = 0.2<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"width: 25%; height: 15px;\">2<\/td>\r\n<td style=\"width: 25%; height: 15px;\">0.4<\/td>\r\n<td style=\"width: 25%; height: 15px;\">2<sup>2<\/sup>=4<\/td>\r\n<td style=\"width: 25%; height: 15px;\">4 x 0.4 = 1.6<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"width: 25%; height: 15px;\">3<\/td>\r\n<td style=\"width: 25%; height: 15px;\">0.2<\/td>\r\n<td style=\"width: 25%; height: 15px;\">3<sup>2<\/sup>=9<\/td>\r\n<td style=\"width: 25%; height: 15px;\">9 x 0.2 = 1.8<\/td>\r\n<\/tr>\r\n<tr class=\"shaded\" style=\"height: 15px;\">\r\n<td style=\"width: 25%; height: 15px;\"><strong>Sum<\/strong><\/td>\r\n<td style=\"width: 25%; height: 15px;\">[latex]\\sum P(X=x) = 1.0[\/latex]<\/td>\r\n<td style=\"width: 25%; height: 15px;\"><\/td>\r\n<td style=\"width: 25%; height: 15px;\">[latex]\\sum x^2 P(X=x) = 3.6[\/latex]<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nThe standard deviation of X is [latex] \\sigma = \\sqrt{\\sum x^2 P(X = x) - \\mu^2} = \\sqrt{3.6 - 1.6^2} = \\sqrt{1.04} = 1.02.[\/latex]\r\n\r\n<strong>Interpretation<\/strong>: Roughly speaking, on average, the number of siblings of those five students is 1.02 away from the mean 1.6.\r\n\r\n<\/div>\r\n<\/div>\r\n<div style=\"height: 50px;\">\r\n\r\n<img class=\"size-full wp-image-99 alignleft\" src=\"https:\/\/openbooks.macewan.ca\/rcommander\/wp-content\/uploads\/sites\/8\/2020\/06\/activity.png\" alt=\"\" width=\"250\" height=\"50\" \/>\r\n\r\n<\/div>\r\n<div class=\"textbox textbox--exercises\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Exercise: Discrete Random Variable and Its Probability Distribution<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nFor one insurance policy, the company pays out $10,000 if the customer dies, $5,000 if the customer is disabled and $0 for other situations. Suppose the probability of death is 0.001 and the probability of being disabled is 0.002. Let X be the amount of money the company pays.\r\n<ol>\r\n \t<li>Find the probability distribution of X. Complete the following table:<\/li>\r\n<\/ol>\r\n<div align=\"center\">\r\n<table class=\"aligncenter\" style=\"height: 60px; width: 50%;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\r\n<thead>\r\n<tr class=\"shaded\" style=\"height: 15px;\">\r\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">\u00a0[latex]x($)[\/latex]<\/td>\r\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\">[latex]P(X=x)[\/latex]<\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">10000<\/td>\r\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\"><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">5000<\/td>\r\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\"><\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\"><\/td>\r\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<ol start=\"2\">\r\n \t<li>Find the mean (expected value) of X.<\/li>\r\n \t<li>Find the standard deviation of X.<\/li>\r\n \t<li>Suppose the company wants to make an average profit of $50 per customer. Calculate the premium it should charge each customer.<\/li>\r\n<\/ol>\r\n<div id=\"input02\">\r\n<div id=\"answer02\" class=\"hidden\"><details><summary>Show\/Hide Answer<\/summary>\r\n<ol>\r\n \t<li>The probability distribution consists of two components: possible values and probabilities.<\/li>\r\n<\/ol>\r\n<div align=\"center\">\r\n<table class=\"aligncenter\" style=\"height: 60px; width: 50%;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\r\n<thead>\r\n<tr class=\"shaded\" style=\"height: 15px;\">\r\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">\u00a0[latex]x($)[\/latex]<\/td>\r\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\">[latex]P(X=x)[\/latex]<\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">10000<\/td>\r\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\">0.001<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">5000<\/td>\r\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\">0.002<\/td>\r\n<\/tr>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">0<\/td>\r\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\">0.997<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<ol start=\"2\">\r\n \t<li>Based on the working table below, the mean is calculated as [latex] \\mu = \\sum xP(X=x) = 10+10 + 0 = 20[\/latex].<\/li>\r\n<\/ol>\r\n<div align=\"center\">\r\n<table class=\"aligncenter\" style=\"width: 80%;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\r\n<tfoot>\r\n<tr class=\"shaded\">\r\n<td style=\"width: 24.1221%;\" valign=\"top\" width=\"104\">Sum<\/td>\r\n<td style=\"width: 37.7099%;\" valign=\"top\" width=\"170\">[latex]\\sum P(X=x) = 1.000[\/latex]<\/td>\r\n<td style=\"width: 37.8626%;\" valign=\"top\" width=\"170\">[latex]\\sum xP(X=x) =20[\/latex]<\/td>\r\n<\/tr>\r\n<\/tfoot>\r\n<thead>\r\n<tr class=\"shaded\">\r\n<td style=\"width: 24.1221%;\" valign=\"top\" width=\"104\">[latex]x($)[\/latex]<\/td>\r\n<td style=\"width: 37.7099%;\" valign=\"top\" width=\"170\">[latex]P(X=x)[\/latex]<\/td>\r\n<td style=\"width: 37.8626%;\" valign=\"top\" width=\"170\">[latex]xP(X=x)[\/latex]<\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 24.1221%;\" valign=\"top\" width=\"104\">10000<\/td>\r\n<td style=\"width: 37.7099%;\" valign=\"top\" width=\"170\">0.001<\/td>\r\n<td style=\"width: 37.8626%;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">10000 x 0.001 = 10<\/div><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 24.1221%;\" valign=\"top\" width=\"104\">5000<\/td>\r\n<td style=\"width: 37.7099%;\" valign=\"top\" width=\"170\">0.002<\/td>\r\n<td style=\"width: 37.8626%;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">5000 x 0.002 = 10<\/div><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 24.1221%;\" valign=\"top\" width=\"104\">0<\/td>\r\n<td style=\"width: 37.7099%;\" valign=\"top\" width=\"170\">0.997<\/td>\r\n<td style=\"width: 37.8626%;\" valign=\"top\" width=\"170\">\r\n<div align=\"center\">0 x 0.997 = 0<\/div><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<p style=\"padding-left: 40px;\">Interpretation: On average, the company pays out $20 for each customer.<\/p>\r\n\r\n<ol start=\"3\">\r\n \t<li>Based on the working table below, the standard deviation is given by<\/li>\r\n<\/ol>\r\n[latex]\\sigma = \\sqrt{ \\sum x^2 P(X=x) - \\mu^2 } = \\sqrt{ 150000 -20^2 } = \\sqrt{ 149600 } = 386.78. [\/latex]\r\n<div align=\"center\">\r\n<table class=\"aligncenter\" style=\"width: 80%;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\r\n<tfoot>\r\n<tr class=\"shaded\">\r\n<td style=\"width: 21.6794%;\" valign=\"top\" width=\"104\"><\/td>\r\n<td style=\"width: 33.7405%;\" valign=\"top\" width=\"170\">[latex]\\sum P(X=x)= 1.000[\/latex]<\/td>\r\n<td style=\"width: 44.4275%;\" valign=\"top\" width=\"227\">[latex]\\sum x^2 P(X=x) = 150000[\/latex]<\/td>\r\n<\/tr>\r\n<\/tfoot>\r\n<thead>\r\n<tr class=\"shaded\">\r\n<td style=\"width: 21.6794%;\" valign=\"top\" width=\"104\">[latex]x($)[\/latex]<\/td>\r\n<td style=\"width: 33.7405%;\" valign=\"top\" width=\"170\">[latex]P(X=x)[\/latex]<\/td>\r\n<td style=\"width: 44.4275%;\" valign=\"top\" width=\"227\">[latex]x^2P(X=x)[\/latex]<\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 21.6794%;\" valign=\"top\" width=\"104\">10000<\/td>\r\n<td style=\"width: 33.7405%;\" valign=\"top\" width=\"170\">0.001<\/td>\r\n<td style=\"width: 44.4275%;\" valign=\"top\" width=\"227\">\r\n<div align=\"center\">10000 <sup>2<\/sup> \u00d7 0.001 = 100000<\/div><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 21.6794%;\" valign=\"top\" width=\"104\">5000<\/td>\r\n<td style=\"width: 33.7405%;\" valign=\"top\" width=\"170\">0.002<\/td>\r\n<td style=\"width: 44.4275%;\" valign=\"top\" width=\"227\">\r\n<div align=\"center\">5000 <sup>2<\/sup> \u00d7 0.002 = 50000<\/div><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 21.6794%;\" valign=\"top\" width=\"104\">0<\/td>\r\n<td style=\"width: 33.7405%;\" valign=\"top\" width=\"170\">0.997<\/td>\r\n<td style=\"width: 44.4275%;\" valign=\"top\" width=\"227\">\r\n<div align=\"center\">0<sup>2<\/sup> \u00d7 0.997 = 0<\/div><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<p style=\"padding-left: 40px;\">Interpretation: Roughly speaking, on average, the payout is $386.78 different from the mean $20.<\/p>\r\n<p style=\"padding-left: 40px;\">Note: The standard deviation in this example does not have much of a practical meaning. Compared to the expected value, the standard deviation is large, indicating a large variation in the payout. This is due to the fact that the payout is one of 0, 5000 or 10,000 and majority of customers will receive 0 payout.<\/p>\r\n\r\n<ol start=\"4\">\r\n \t<li>On average the company pays out $20 for customer. If the company wants to make an average profit of $50 per customer, it must ask for $20 more on the top of $50. Therefore, the company should charge 50 + 20 = 70 dollars per customer.<\/li>\r\n<\/ol>\r\n<\/details><\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<div style=\"height: 30px;\"><\/div>\r\n<div style=\"height: 55px; margin-top: 5px;\"><img class=\"size-full wp-image-99 alignleft\" src=\"https:\/\/openbooks.macewan.ca\/rcommander\/wp-content\/uploads\/sites\/8\/2020\/06\/activity.png\" alt=\"\" width=\"250\" height=\"50\" \/><\/div>\r\n<div class=\"textbox textbox--exercises\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Exercise: Mean and Standard Deviation of a Discrete Random Variable<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nLet [latex]X[\/latex] be the number of patients arriving at an emergency centre from 9 to 9:30 PM. The probability\r\ndistribution of [latex]X[\/latex] is given in the following table.\r\n<table class=\"aligncenter first-col-border\" style=\"width: 80%; height: 30px;\" border=\"0\">\r\n<tbody>\r\n<tr style=\"height: 15px;\">\r\n<td style=\"width: 25%; height: 15px; text-align: center;\"><strong>[latex]x[\/latex]<\/strong><\/td>\r\n<td style=\"width: 25%; height: 15px; text-align: center;\">0<\/td>\r\n<td style=\"width: 25%; height: 15px; text-align: center;\">1<\/td>\r\n<td style=\"width: 25%; height: 15px; text-align: center;\">2<\/td>\r\n<\/tr>\r\n<tr class=\"border-top\" style=\"height: 15px;\">\r\n<td style=\"width: 25%; height: 15px; text-align: center;\"><strong>[latex]P (X = x)[\/latex]<\/strong><\/td>\r\n<td style=\"width: 25%; height: 15px; text-align: center;\">0.3<\/td>\r\n<td style=\"width: 25%; height: 15px; text-align: center;\">4a<\/td>\r\n<td style=\"width: 25%; height: 15px; text-align: center;\">3a<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<ol type=\"a\">\r\n \t<li>Find the value of a.<\/li>\r\n \t<li>Find the mean of X.<\/li>\r\n \t<li>Find the standard deviation of X.<\/li>\r\n<\/ol>\r\n<details><summary>Show\/Hide Answer<\/summary>\r\n<ol type=\"a\">\r\n \t<li>Since the sum of probabilities [latex]P(X=x)[\/latex] is one, [latex]0.3 + 4a + 3a = 1 \\Longrightarrow 7a = 0.7 \\Longrightarrow a = 0.1.[\/latex]<\/li>\r\n \t<li>The mean is [latex]\\mu = \\sum xP(X=x)=0 \\times 0.3 + \\times 0.4 + 2 \\times 0.3 = 1[\/latex].<\/li>\r\n \t<li>The standard deviation is given by:<\/li>\r\n<\/ol>\r\n[latex]\\begin{align*} \\sigma&amp;= \\sqrt{ \\sum x^2 P(X=x) - \\mu^2 } = \\sqrt{ ( 0^2 \\times 0.3 + 1^2 \\times 0.4 + 2^2 \\times 0.3 ) - 1^2 }\\\\\r\n&amp;=\\sqrt{1.6-1^2}= \\sqrt{ 0.6 } = 0.775 . \\end{align*}[\/latex]\r\n\r\nIt might be helpful to construct the working table below:\r\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"0\">\r\n<tbody>\r\n<tr class=\"shaded\">\r\n<td style=\"width: 25%;\">[latex]x[\/latex]<\/td>\r\n<td style=\"width: 25%;\">[latex]P(X=x)[\/latex]<\/td>\r\n<td style=\"width: 25%;\">[latex]xP(X=x)[\/latex]<\/td>\r\n<td style=\"width: 25%;\">[latex]x^2 P(X=x)[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;\">0<\/td>\r\n<td style=\"width: 25%;\">0.3<\/td>\r\n<td style=\"width: 25%;\">0\u00d70.3=0<\/td>\r\n<td style=\"width: 25%;\">[latex]0^2\\times 0.3=0[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;\">1<\/td>\r\n<td style=\"width: 25%;\">0.4<\/td>\r\n<td style=\"width: 25%;\">1\u00d70.4=0.4<\/td>\r\n<td style=\"width: 25%;\">[latex]1^2\\times 0.4=0.4[\/latex]<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 25%;\">2<\/td>\r\n<td style=\"width: 25%;\">0.3<\/td>\r\n<td style=\"width: 25%;\">2\u00d70.3=0.6<\/td>\r\n<td style=\"width: 25%;\">[latex]2^2\\times 0.3=1.2[\/latex]<\/td>\r\n<\/tr>\r\n<tr class=\"shaded\">\r\n<td style=\"width: 25%;\">Sum<\/td>\r\n<td style=\"width: 25%;\">1.0<\/td>\r\n<td style=\"width: 25%;\">[latex]\\sum xP(X=x)=1.0[\/latex]<\/td>\r\n<td style=\"width: 25%;\">[latex]\\sum x^2P(X=x)=1.6[\/latex]<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/details><\/div>\r\n<\/div>","rendered":"<p>Given the probability distribution of a discrete random variable X, we are able to calculate the mean, variance, and standard deviation.<\/p>\n<p>The <strong>mean<\/strong> of a discrete variable X can be calculated as<\/p>\n<p>[latex]\\mu = \\sum xP(X=x),[\/latex]<\/p>\n<p>which is a weighted average over all possible values of X. Each possible value x is weighted by its probability [latex]P(X=x)[\/latex]. The mean is also called the <strong>expected value <\/strong>or the <strong>expectation<\/strong> of X. Note that a probability distribution can be viewed as the relative frequency distribution of some population. In this regard, the mean of a discrete random variable is equivalent to the population mean.<\/p>\n<div style=\"height: 55px; margin-top: 5px;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-99 alignleft\" src=\"https:\/\/openbooks.macewan.ca\/rcommander\/wp-content\/uploads\/sites\/8\/2020\/06\/instructornote.png\" alt=\"\" width=\"250\" height=\"50\" \/><\/div>\n<p>Some students might find it easier to find the mean by constructing a working table (see the following example).<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Example: Mean of a Discrete Variable<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>Mark has no siblings, John has one sibling, both Rebecca and Sarah have two siblings, and Mary has three. Randomly pick one student and let X be the number of siblings the student has. Find the mean (expected value) of X.<\/p>\n<p>We calculate the mean of X by constructing a working table. The first two columns of the table give the probability distribution of X and, in each row, the value in the third column is the product of the first two values.<\/p>\n<p style=\"text-align: center;\"><strong>Table 4.3<\/strong>: Working Table for the Mean (Expected Value) of a Discrete Variable<\/p>\n<div style=\"margin: auto;\">\n<table class=\"aligncenter\" style=\"width: 100%; height: 90px; border-spacing: 0px;\" cellpadding=\"0\">\n<tfoot>\n<tr class=\"shaded\" style=\"height: 15px;\">\n<td style=\"height: 15px; width: 104px;\" valign=\"top\">\n<div style=\"margin: auto;\"><strong>Sum<\/strong><\/div>\n<\/td>\n<td style=\"height: 15px; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">[latex]\\sum P(X=x) = 1.0[\/latex]<\/div>\n<\/td>\n<td style=\"height: 15px; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">[latex]\\sum x P(X=x) = 1.6[\/latex]<\/div>\n<\/td>\n<\/tr>\n<\/tfoot>\n<thead>\n<tr class=\"shaded\" style=\"height: 15px;\">\n<td style=\"height: 15px; width: 104px;\" valign=\"top\">\n<div style=\"margin: auto;\">[latex]x[\/latex]<\/div>\n<\/td>\n<td style=\"height: 15px; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">[latex]P(X=x)[\/latex]<\/div>\n<\/td>\n<td style=\"height: 15px; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">[latex]xP(X=x)[\/latex]<\/div>\n<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 15px;\">\n<td style=\"height: 15px; width: 104px;\" valign=\"top\">\n<div style=\"margin: auto;\">0<\/div>\n<\/td>\n<td style=\"height: 15px; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">0.2<\/div>\n<\/td>\n<td style=\"height: 15px; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">0 x 0.2 = 0<\/div>\n<\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<td style=\"height: 15px; width: 104px;\" valign=\"top\">\n<div style=\"margin: auto;\">1<\/div>\n<\/td>\n<td style=\"height: 15px; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">0.2<\/div>\n<\/td>\n<td style=\"height: 15px; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">1 x 0.2 = 0.2<\/div>\n<\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<td style=\"height: 15px; width: 104px;\" valign=\"top\">\n<div style=\"margin: auto;\">2<\/div>\n<\/td>\n<td style=\"height: 15px; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">0.4<\/div>\n<\/td>\n<td style=\"height: 15px; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">2 x 0.4 = 0.8<\/div>\n<\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<td style=\"height: 15px; width: 104px;\" valign=\"top\">\n<div style=\"margin: auto;\">3<\/div>\n<\/td>\n<td style=\"height: 15px; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">0.2<\/div>\n<\/td>\n<td style=\"height: 15px; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">3 x 0.2 = 0.6<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Taking the sum of the values in the last column gives the mean (expected value) of X, i.e.,<\/p>\n<p>[latex]\\begin{align*} \\mu &= \\sum x P(X=x) \\\\ &= 0 + 0.2 + 0.8 + 0.6 \\\\ &= 1.6. \\end{align*}[\/latex]<\/p>\n<p><strong style=\"text-align: initial; font-size: 1em;\">Interpretation<\/strong><span style=\"text-align: initial; font-size: 1em;\">: On average, each of those five students has 1.6 siblings.<\/span><\/p>\n<\/div>\n<\/div>\n<div style=\"height: 55px; margin-top: 5px;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-99 alignleft\" src=\"https:\/\/openbooks.macewan.ca\/rcommander\/wp-content\/uploads\/sites\/8\/2020\/06\/instructornote.png\" alt=\"\" width=\"250\" height=\"50\" \/><\/div>\n<p>Even though the random variable X = # of siblings can only take integer values, we should keep the decimal place for the mean of X. That is, do not round the mean 1.6 to 2. To demonstrate why we keep the mean at 1.6, let us suppose that this probability distribution describes a much larger population of students. Although it is counterintuitive to say that we expect a student to have 1.6 siblings, it is quite natural to say that we expect 10 students to have a total of 16 siblings, 100 students to have a total of 160 siblings, and so on. If we sample the entire population of students, then the combined number of siblings is 1.6 times greater than the number of students. Hence, the average number of siblings per student is 1.6.<\/p>\n<p><span style=\"font-size: 1em;\">Here we explain why the population mean is given by [latex]\\mu = \\sum xP(X=x)[\/latex]. Suppose there are [latex]N=5[\/latex] students, one has no siblings [latex](x_1 = 0)[\/latex], one has one sibling [latex](x_2 = 1)[\/latex], two have two siblings [latex](x_3 = x_4 =2)[\/latex], and one has three siblings [latex](x_5 =3)[\/latex]. Recall that the population mean [latex]\\mu[\/latex] is calculated as:<\/span><\/p>\n<p>[latex]\\begin{align*}\\mu&=\\frac{\\sum x_i}{N}=\\frac{x_1+x_2+x_3+x_4+x_5}{5}=\\frac{0+1+2+2+3}{5}=\\frac{{\\color{blue} 0}\\times {\\color{red} 1}+{\\color{blue} 1}\\times {\\color{red} 1}+{\\color{blue} 2}\\times{\\color{red} 2}+{\\color{blue} 3}\\times {\\color{red} 1}}{5}\\\\&={\\color{blue} 0} \\times {\\color{red} \\frac{1}{5}}+{\\color{blue} 1}\\times {\\color{red} \\frac{1}{5}}+{\\color{blue} 2}\\times {\\color{red} \\frac{2}{5}}+{\\color{blue} 3}\\times {\\color{red} \\frac{1}{5}}\\\\&={\\color{blue} 0}\\times {\\color{red} P(X=0)}+{\\color{blue} 1}\\times {\\color{ red} P(X=1)}+{\\color{blue} 2}\\times{\\color{red} P(X=2)}+{\\color{blue} 3}\\times{\\color{red} P(X=3)}\\\\&=\\sum {\\color{blue} x} {\\color{red} P(X=x)}.\\end{align*}[\/latex]<\/p>\n<p>Similarly, the <strong>variance<\/strong> of a discrete variable X can be calculated as<\/p>\n<p>&nbsp;<\/p>\n<p>[latex]\\sigma^2=\\underbrace{\\sum (x-\\mu)^2 P(X=x)}\\limits_{\\mbox{defining formula}}.[\/latex]<\/p>\n<p>which is a weighted average of the squared distance from each value [latex]x[\/latex]\u00a0to the population mean [latex]\\mu[\/latex], weighted by its probability [latex]P(X=x)[\/latex]\u00a0(relative frequency). It can be shown that<\/p>\n<p>[latex]\\sigma^2=\\sum (x-\\mu)^2 P(X=x)=\\underbrace{\\sum x^2P(X=x)-\\mu^2}\\limits_{\\mbox{computing formula}}.[\/latex]<\/p>\n<p>Taking the square root of the variance [latex]\\sigma^2[\/latex]\u00a0gives the standard deviation [latex]\\sigma[\/latex]<\/p>\n<p>[latex]\\sigma=\\sqrt{\\sigma^2}=\\underbrace{\\sqrt{\\sum (x-\\mu)^2 P(X=x)}}\\limits_{\\mbox{defining formula}}=\\underbrace{\\sqrt{\\sum x^2 P(X=x)-\\mu^2}}\\limits_{\\mbox{computing formula}}.[\/latex]<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Example: Standard Deviation of a Discrete Variable<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>Mark has no siblings, John has one sibling, both Rebecca and Sarah have two siblings, and Mary has three. Randomly pick one student and let X be the number of siblings the student has. Find the standard deviation of X.<\/p>\n<p>We can find the standard deviation using a working table:<\/p>\n<p><strong>Table 4.4<\/strong>: Standard Deviation Using Computing Formula<\/p>\n<div style=\"margin: auto;\"><\/div>\n<table style=\"border-collapse: collapse; width: 100%; height: 104px;\">\n<tbody>\n<tr class=\"shaded\" style=\"height: 29px;\">\n<td style=\"width: 25%; height: 29px;\">[latex]x[\/latex]<\/td>\n<td style=\"width: 25%; height: 29px;\">[latex]P(X=x)[\/latex]<\/td>\n<td style=\"width: 25%; height: 29px;\">[latex]x^2[\/latex]<\/td>\n<td style=\"width: 25%; height: 29px;\">[latex]x^2P(X=x)[\/latex]<\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<td style=\"width: 25%; height: 15px;\">0<\/td>\n<td style=\"width: 25%; height: 15px;\">0.2<\/td>\n<td style=\"width: 25%; height: 15px;\">0<sup>2<\/sup>=0<\/td>\n<td style=\"width: 25%; height: 15px;\">0 x 0.2 = 0<\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<td style=\"width: 25%; height: 15px;\">1<\/td>\n<td style=\"width: 25%; height: 15px;\">0.2<\/td>\n<td style=\"width: 25%; height: 15px;\">1<sup>2<\/sup>=1<\/td>\n<td style=\"width: 25%; height: 15px;\">1 x 0.2 = 0.2<\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<td style=\"width: 25%; height: 15px;\">2<\/td>\n<td style=\"width: 25%; height: 15px;\">0.4<\/td>\n<td style=\"width: 25%; height: 15px;\">2<sup>2<\/sup>=4<\/td>\n<td style=\"width: 25%; height: 15px;\">4 x 0.4 = 1.6<\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<td style=\"width: 25%; height: 15px;\">3<\/td>\n<td style=\"width: 25%; height: 15px;\">0.2<\/td>\n<td style=\"width: 25%; height: 15px;\">3<sup>2<\/sup>=9<\/td>\n<td style=\"width: 25%; height: 15px;\">9 x 0.2 = 1.8<\/td>\n<\/tr>\n<tr class=\"shaded\" style=\"height: 15px;\">\n<td style=\"width: 25%; height: 15px;\"><strong>Sum<\/strong><\/td>\n<td style=\"width: 25%; height: 15px;\">[latex]\\sum P(X=x) = 1.0[\/latex]<\/td>\n<td style=\"width: 25%; height: 15px;\"><\/td>\n<td style=\"width: 25%; height: 15px;\">[latex]\\sum x^2 P(X=x) = 3.6[\/latex]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The standard deviation of X is [latex]\\sigma = \\sqrt{\\sum x^2 P(X = x) - \\mu^2} = \\sqrt{3.6 - 1.6^2} = \\sqrt{1.04} = 1.02.[\/latex]<\/p>\n<p><strong>Interpretation<\/strong>: Roughly speaking, on average, the number of siblings of those five students is 1.02 away from the mean 1.6.<\/p>\n<\/div>\n<\/div>\n<div style=\"height: 50px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-99 alignleft\" src=\"https:\/\/openbooks.macewan.ca\/rcommander\/wp-content\/uploads\/sites\/8\/2020\/06\/activity.png\" alt=\"\" width=\"250\" height=\"50\" srcset=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2020\/06\/activity.png 250w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2020\/06\/activity-65x13.png 65w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2020\/06\/activity-225x45.png 225w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<\/div>\n<div class=\"textbox textbox--exercises\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Exercise: Discrete Random Variable and Its Probability Distribution<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>For one insurance policy, the company pays out $10,000 if the customer dies, $5,000 if the customer is disabled and $0 for other situations. Suppose the probability of death is 0.001 and the probability of being disabled is 0.002. Let X be the amount of money the company pays.<\/p>\n<ol>\n<li>Find the probability distribution of X. Complete the following table:<\/li>\n<\/ol>\n<div style=\"margin: auto;\">\n<table class=\"aligncenter\" style=\"height: 60px; width: 50%; border-spacing: 0px;\" cellpadding=\"0\">\n<thead>\n<tr class=\"shaded\" style=\"height: 15px;\">\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">\u00a0[latex]x($)[\/latex]<\/td>\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\">[latex]P(X=x)[\/latex]<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 15px;\">\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">10000<\/td>\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\"><\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">5000<\/td>\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\"><\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\"><\/td>\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<ol start=\"2\">\n<li>Find the mean (expected value) of X.<\/li>\n<li>Find the standard deviation of X.<\/li>\n<li>Suppose the company wants to make an average profit of $50 per customer. Calculate the premium it should charge each customer.<\/li>\n<\/ol>\n<div id=\"input02\">\n<div id=\"answer02\" class=\"hidden\">\n<details>\n<summary>Show\/Hide Answer<\/summary>\n<ol>\n<li>The probability distribution consists of two components: possible values and probabilities.<\/li>\n<\/ol>\n<div style=\"margin: auto;\">\n<table class=\"aligncenter\" style=\"height: 60px; width: 50%; border-spacing: 0px;\" cellpadding=\"0\">\n<thead>\n<tr class=\"shaded\" style=\"height: 15px;\">\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">\u00a0[latex]x($)[\/latex]<\/td>\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\">[latex]P(X=x)[\/latex]<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 15px;\">\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">10000<\/td>\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\">0.001<\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">5000<\/td>\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\">0.002<\/td>\n<\/tr>\n<tr style=\"height: 15px;\">\n<td style=\"height: 15px; width: 38.97849462365591%;\" valign=\"top\">0<\/td>\n<td style=\"height: 15px; width: 60.483870967741936%;\" valign=\"top\">0.997<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<ol start=\"2\">\n<li>Based on the working table below, the mean is calculated as [latex]\\mu = \\sum xP(X=x) = 10+10 + 0 = 20[\/latex].<\/li>\n<\/ol>\n<div style=\"margin: auto;\">\n<table class=\"aligncenter\" style=\"width: 80%; border-spacing: 0px;\" cellpadding=\"0\">\n<tfoot>\n<tr class=\"shaded\">\n<td style=\"width: 24.1221%; width: 104px;\" valign=\"top\">Sum<\/td>\n<td style=\"width: 37.7099%; width: 170px;\" valign=\"top\">[latex]\\sum P(X=x) = 1.000[\/latex]<\/td>\n<td style=\"width: 37.8626%; width: 170px;\" valign=\"top\">[latex]\\sum xP(X=x) =20[\/latex]<\/td>\n<\/tr>\n<\/tfoot>\n<thead>\n<tr class=\"shaded\">\n<td style=\"width: 24.1221%; width: 104px;\" valign=\"top\">[latex]x($)[\/latex]<\/td>\n<td style=\"width: 37.7099%; width: 170px;\" valign=\"top\">[latex]P(X=x)[\/latex]<\/td>\n<td style=\"width: 37.8626%; width: 170px;\" valign=\"top\">[latex]xP(X=x)[\/latex]<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"width: 24.1221%; width: 104px;\" valign=\"top\">10000<\/td>\n<td style=\"width: 37.7099%; width: 170px;\" valign=\"top\">0.001<\/td>\n<td style=\"width: 37.8626%; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">10000 x 0.001 = 10<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 24.1221%; width: 104px;\" valign=\"top\">5000<\/td>\n<td style=\"width: 37.7099%; width: 170px;\" valign=\"top\">0.002<\/td>\n<td style=\"width: 37.8626%; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">5000 x 0.002 = 10<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 24.1221%; width: 104px;\" valign=\"top\">0<\/td>\n<td style=\"width: 37.7099%; width: 170px;\" valign=\"top\">0.997<\/td>\n<td style=\"width: 37.8626%; width: 170px;\" valign=\"top\">\n<div style=\"margin: auto;\">0 x 0.997 = 0<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"padding-left: 40px;\">Interpretation: On average, the company pays out $20 for each customer.<\/p>\n<ol start=\"3\">\n<li>Based on the working table below, the standard deviation is given by<\/li>\n<\/ol>\n<p>[latex]\\sigma = \\sqrt{ \\sum x^2 P(X=x) - \\mu^2 } = \\sqrt{ 150000 -20^2 } = \\sqrt{ 149600 } = 386.78.[\/latex]<\/p>\n<div style=\"margin: auto;\">\n<table class=\"aligncenter\" style=\"width: 80%; border-spacing: 0px;\" cellpadding=\"0\">\n<tfoot>\n<tr class=\"shaded\">\n<td style=\"width: 21.6794%; width: 104px;\" valign=\"top\"><\/td>\n<td style=\"width: 33.7405%; width: 170px;\" valign=\"top\">[latex]\\sum P(X=x)= 1.000[\/latex]<\/td>\n<td style=\"width: 44.4275%; width: 227px;\" valign=\"top\">[latex]\\sum x^2 P(X=x) = 150000[\/latex]<\/td>\n<\/tr>\n<\/tfoot>\n<thead>\n<tr class=\"shaded\">\n<td style=\"width: 21.6794%; width: 104px;\" valign=\"top\">[latex]x($)[\/latex]<\/td>\n<td style=\"width: 33.7405%; width: 170px;\" valign=\"top\">[latex]P(X=x)[\/latex]<\/td>\n<td style=\"width: 44.4275%; width: 227px;\" valign=\"top\">[latex]x^2P(X=x)[\/latex]<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"width: 21.6794%; width: 104px;\" valign=\"top\">10000<\/td>\n<td style=\"width: 33.7405%; width: 170px;\" valign=\"top\">0.001<\/td>\n<td style=\"width: 44.4275%; width: 227px;\" valign=\"top\">\n<div style=\"margin: auto;\">10000 <sup>2<\/sup> \u00d7 0.001 = 100000<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 21.6794%; width: 104px;\" valign=\"top\">5000<\/td>\n<td style=\"width: 33.7405%; width: 170px;\" valign=\"top\">0.002<\/td>\n<td style=\"width: 44.4275%; width: 227px;\" valign=\"top\">\n<div style=\"margin: auto;\">5000 <sup>2<\/sup> \u00d7 0.002 = 50000<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 21.6794%; width: 104px;\" valign=\"top\">0<\/td>\n<td style=\"width: 33.7405%; width: 170px;\" valign=\"top\">0.997<\/td>\n<td style=\"width: 44.4275%; width: 227px;\" valign=\"top\">\n<div style=\"margin: auto;\">0<sup>2<\/sup> \u00d7 0.997 = 0<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"padding-left: 40px;\">Interpretation: Roughly speaking, on average, the payout is $386.78 different from the mean $20.<\/p>\n<p style=\"padding-left: 40px;\">Note: The standard deviation in this example does not have much of a practical meaning. Compared to the expected value, the standard deviation is large, indicating a large variation in the payout. This is due to the fact that the payout is one of 0, 5000 or 10,000 and majority of customers will receive 0 payout.<\/p>\n<ol start=\"4\">\n<li>On average the company pays out $20 for customer. If the company wants to make an average profit of $50 per customer, it must ask for $20 more on the top of $50. Therefore, the company should charge 50 + 20 = 70 dollars per customer.<\/li>\n<\/ol>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div style=\"height: 30px;\"><\/div>\n<div style=\"height: 55px; margin-top: 5px;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-99 alignleft\" src=\"https:\/\/openbooks.macewan.ca\/rcommander\/wp-content\/uploads\/sites\/8\/2020\/06\/activity.png\" alt=\"\" width=\"250\" height=\"50\" srcset=\"https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2020\/06\/activity.png 250w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2020\/06\/activity-65x13.png 65w, https:\/\/openbooks.macewan.ca\/introstats\/wp-content\/uploads\/sites\/8\/2020\/06\/activity-225x45.png 225w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/div>\n<div class=\"textbox textbox--exercises\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Exercise: Mean and Standard Deviation of a Discrete Random Variable<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>Let [latex]X[\/latex] be the number of patients arriving at an emergency centre from 9 to 9:30 PM. The probability<br \/>\ndistribution of [latex]X[\/latex] is given in the following table.<\/p>\n<table class=\"aligncenter first-col-border\" style=\"width: 80%; height: 30px;\">\n<tbody>\n<tr style=\"height: 15px;\">\n<td style=\"width: 25%; height: 15px; text-align: center;\"><strong>[latex]x[\/latex]<\/strong><\/td>\n<td style=\"width: 25%; height: 15px; text-align: center;\">0<\/td>\n<td style=\"width: 25%; height: 15px; text-align: center;\">1<\/td>\n<td style=\"width: 25%; height: 15px; text-align: center;\">2<\/td>\n<\/tr>\n<tr class=\"border-top\" style=\"height: 15px;\">\n<td style=\"width: 25%; height: 15px; text-align: center;\"><strong>[latex]P (X = x)[\/latex]<\/strong><\/td>\n<td style=\"width: 25%; height: 15px; text-align: center;\">0.3<\/td>\n<td style=\"width: 25%; height: 15px; text-align: center;\">4a<\/td>\n<td style=\"width: 25%; height: 15px; text-align: center;\">3a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ol type=\"a\">\n<li>Find the value of a.<\/li>\n<li>Find the mean of X.<\/li>\n<li>Find the standard deviation of X.<\/li>\n<\/ol>\n<details>\n<summary>Show\/Hide Answer<\/summary>\n<ol type=\"a\">\n<li>Since the sum of probabilities [latex]P(X=x)[\/latex] is one, [latex]0.3 + 4a + 3a = 1 \\Longrightarrow 7a = 0.7 \\Longrightarrow a = 0.1.[\/latex]<\/li>\n<li>The mean is [latex]\\mu = \\sum xP(X=x)=0 \\times 0.3 + \\times 0.4 + 2 \\times 0.3 = 1[\/latex].<\/li>\n<li>The standard deviation is given by:<\/li>\n<\/ol>\n<p>[latex]\\begin{align*} \\sigma&= \\sqrt{ \\sum x^2 P(X=x) - \\mu^2 } = \\sqrt{ ( 0^2 \\times 0.3 + 1^2 \\times 0.4 + 2^2 \\times 0.3 ) - 1^2 }\\\\  &=\\sqrt{1.6-1^2}= \\sqrt{ 0.6 } = 0.775 . \\end{align*}[\/latex]<\/p>\n<p>It might be helpful to construct the working table below:<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr class=\"shaded\">\n<td style=\"width: 25%;\">[latex]x[\/latex]<\/td>\n<td style=\"width: 25%;\">[latex]P(X=x)[\/latex]<\/td>\n<td style=\"width: 25%;\">[latex]xP(X=x)[\/latex]<\/td>\n<td style=\"width: 25%;\">[latex]x^2 P(X=x)[\/latex]<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;\">0<\/td>\n<td style=\"width: 25%;\">0.3<\/td>\n<td style=\"width: 25%;\">0\u00d70.3=0<\/td>\n<td style=\"width: 25%;\">[latex]0^2\\times 0.3=0[\/latex]<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;\">1<\/td>\n<td style=\"width: 25%;\">0.4<\/td>\n<td style=\"width: 25%;\">1\u00d70.4=0.4<\/td>\n<td style=\"width: 25%;\">[latex]1^2\\times 0.4=0.4[\/latex]<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;\">2<\/td>\n<td style=\"width: 25%;\">0.3<\/td>\n<td style=\"width: 25%;\">2\u00d70.3=0.6<\/td>\n<td style=\"width: 25%;\">[latex]2^2\\times 0.3=1.2[\/latex]<\/td>\n<\/tr>\n<tr class=\"shaded\">\n<td style=\"width: 25%;\">Sum<\/td>\n<td style=\"width: 25%;\">1.0<\/td>\n<td style=\"width: 25%;\">[latex]\\sum xP(X=x)=1.0[\/latex]<\/td>\n<td style=\"width: 25%;\">[latex]\\sum x^2P(X=x)=1.6[\/latex]<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/details>\n<\/div>\n<\/div>\n","protected":false},"author":19,"menu_order":4,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-2109","chapter","type-chapter","status-publish","hentry"],"part":535,"_links":{"self":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/2109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/users\/19"}],"version-history":[{"count":46,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/2109\/revisions"}],"predecessor-version":[{"id":5497,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/2109\/revisions\/5497"}],"part":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/parts\/535"}],"metadata":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapters\/2109\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/media?parent=2109"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/pressbooks\/v2\/chapter-type?post=2109"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/contributor?post=2109"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openbooks.macewan.ca\/introstats\/wp-json\/wp\/v2\/license?post=2109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}