<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Ask Ghassem - Recent activity in general</title>
<link>https://ask.ghassem.com/activity/data-science/statistics/general</link>
<description>Powered by Question2Answer</description>
<item>
<title>How do I compare the count of a value in each year while having a different sanple size each year.</title>
<link>https://ask.ghassem.com/1025/compare-count-value-each-year-while-having-different-sanple</link>
<description>How do I accurately compare between the number of something a survey measure from my employees each year with a varying umber of survey engagement and employee size?&lt;br /&gt;
&lt;br /&gt;
If I was measuring the satisfaction of my employees over the years by collecting a survey from my them each year by asking them wether they are satisfied or not, and then comparing yes’s over the years but the number of employees who answer is not the same each year and the number of employees increases every year. How do I correctly compare this throughout each year?&lt;br /&gt;
&lt;br /&gt;
In other words, how do I remove the effect of the survey engagement rate when calculating the results?</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/1025/compare-count-value-each-year-while-having-different-sanple</guid>
<pubDate>Wed, 08 Jun 2022 10:32:33 +0000</pubDate>
</item>
<item>
<title>Using aggregate data to generate observation-level data statistically sound?</title>
<link>https://ask.ghassem.com/644/using-aggregate-generate-observation-level-statistically</link>
<description>&lt;p&gt;Context: In the realm of Paid Search Marketing. Current reporting does not provide event level data only aggregate totals with different segments.&amp;nbsp; Want to compare distributions/test statistical significance of A/B test results.&amp;nbsp; Did not want to assume that data followed normal distribution or know STDEV&amp;nbsp;for data so came with this approach.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;My Question: I am going to use the average &quot;CPA&quot; or &quot;CTR&quot; for a date range, and generate an observation for each conversion based off the average for a time range.&amp;nbsp; Is this statistically sound way if I want to generate raw data? Would I have wonky distributions because of the multiple averages?&amp;nbsp; Just want a gutcheck if I&#039;m completely off base.&amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;My Aggregate data looks like below:&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:500px&quot;&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th scope=&quot;col&quot;&gt;Day&lt;/th&gt;
&lt;th scope=&quot;col&quot;&gt;Cost&lt;/th&gt;
&lt;th scope=&quot;col&quot;&gt;Acquisition&lt;/th&gt;
&lt;th scope=&quot;col&quot;&gt;CPA or CTR&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp;1&lt;/td&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&lt;/td&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/td&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp;2&lt;/td&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 75&lt;/td&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/td&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$25&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Observation data I generate looks like below:&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:500px&quot;&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th scope=&quot;col&quot;&gt;Day&lt;/th&gt;
&lt;th scope=&quot;col&quot;&gt;Acquisition&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/td&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/td&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/td&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$25&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/td&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$25&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/td&gt;
&lt;td&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$25&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;I really appreciate your help with this question! An important project to me at work.&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/644/using-aggregate-generate-observation-level-statistically</guid>
<pubDate>Tue, 11 Jun 2019 22:04:01 +0000</pubDate>
</item>
<item>
<title>Answered: What will be probability for the data items within mean +- 1, +-2, +-3 standard deviation?</title>
<link>https://ask.ghassem.com/520/what-will-probability-data-items-within-standard-deviation?show=530#a530</link>
<description>Probobality mean for +-1 standard deviation is 0.68.&lt;br /&gt;
Probobality mean &amp;nbsp;for +-2 standard deviation is 0.95.&lt;br /&gt;
Probobality mean for +-3 standard deviation is 0.997.</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/520/what-will-probability-data-items-within-standard-deviation?show=530#a530</guid>
<pubDate>Fri, 30 Nov 2018 21:17:20 +0000</pubDate>
</item>
<item>
<title>Answered: What is the rule that determines percentages with the mean +- 1,2 or 3 standard deviations?</title>
<link>https://ask.ghassem.com/523/what-rule-that-determines-percentages-standard-deviations?show=524#a524</link>
<description>The Empirical Rule, which is used for normal distribution. The notes about the rule can be found in the slides.</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/523/what-rule-that-determines-percentages-standard-deviations?show=524#a524</guid>
<pubDate>Sat, 17 Nov 2018 19:04:26 +0000</pubDate>
</item>
<item>
<title>Answered: How much percentage of data items are consumed within mean +-1 , +-2, +-3 standard deviation?</title>
<link>https://ask.ghassem.com/518/much-percentage-items-consumed-within-standard-deviation?show=519#a519</link>
<description>For mean +-1 standard deviation, 68% of data items.&lt;br /&gt;
&lt;br /&gt;
For mean +-2 standard deviation, 95% of data items.&lt;br /&gt;
&lt;br /&gt;
For mean +-3 standard deviation, 99.7% of data items.</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/518/much-percentage-items-consumed-within-standard-deviation?show=519#a519</guid>
<pubDate>Wed, 14 Nov 2018 15:05:54 +0000</pubDate>
</item>
<item>
<title>What is a test statistic in hypothesis testing and how does it relate to the p-value?</title>
<link>https://ask.ghassem.com/516/what-test-statistic-hypothesis-testing-and-does-relate-value</link>
<description></description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/516/what-test-statistic-hypothesis-testing-and-does-relate-value</guid>
<pubDate>Tue, 13 Nov 2018 00:51:11 +0000</pubDate>
</item>
<item>
<title>Answered: What is sampling error?</title>
<link>https://ask.ghassem.com/514/what-is-sampling-error?show=515#a515</link>
<description>Sampling error occurs when using a sample mean to estimate a population mean. &amp;nbsp;Usually the sample mean is quite close to the population mean, but it is important to understand that there will be some level of sampling error.</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/514/what-is-sampling-error?show=515#a515</guid>
<pubDate>Tue, 13 Nov 2018 00:48:25 +0000</pubDate>
</item>
<item>
<title>Answered: In the first week of November 2003.... What is the expected number of homicides per week in the GTA?</title>
<link>https://ask.ghassem.com/503/first-week-november-2003-what-expected-number-homicides-week?show=504#a504</link>
<description>If there are 78 per year then the expected value or mean for a week is 78 homicides/52.1429 weeks which is 1.496 per week.</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/503/first-week-november-2003-what-expected-number-homicides-week?show=504#a504</guid>
<pubDate>Fri, 02 Nov 2018 19:36:25 +0000</pubDate>
</item>
<item>
<title>Answered: In statistics, whats the difference between contingency and frequency tables?</title>
<link>https://ask.ghassem.com/483/statistics-difference-between-contingency-frequency-tables?show=487#a487</link>
<description>Contingency table associates two categorical variables whereas frequency table associates one categorical variable</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/483/statistics-difference-between-contingency-frequency-tables?show=487#a487</guid>
<pubDate>Tue, 30 Oct 2018 11:38:10 +0000</pubDate>
</item>
<item>
<title>Answered: Define measures of center (Median and Mode) ?</title>
<link>https://ask.ghassem.com/357/define-measures-of-center-median-and-mode?show=448#a448</link>
<description>&lt;p&gt;Median&lt;/p&gt;

&lt;p&gt;The median is the middle score for a set of data that has been arranged in order of magnitude. The median is less affected by outliers and skewed data. In order to calculate the median, suppose we have the data below:&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; style=&quot;width:500px; border-spacing: 0px;&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;65&lt;/td&gt;
			&lt;td&gt;55&lt;/td&gt;
			&lt;td&gt;89&lt;/td&gt;
			&lt;td&gt;56&lt;/td&gt;
			&lt;td&gt;35&lt;/td&gt;
			&lt;td&gt;14&lt;/td&gt;
			&lt;td&gt;56&lt;/td&gt;
			&lt;td&gt;55&lt;/td&gt;
			&lt;td&gt;87&lt;/td&gt;
			&lt;td&gt;45&lt;/td&gt;
			&lt;td&gt;92&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;We first need to rearrange that data into order of magnitude (smallest first):&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; style=&quot;width:500px; border-spacing: 0px;&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;14&lt;/td&gt;
			&lt;td&gt;35&lt;/td&gt;
			&lt;td&gt;45&lt;/td&gt;
			&lt;td&gt;55&lt;/td&gt;
			&lt;td&gt;55&lt;/td&gt;
			&lt;td&gt;&lt;strong&gt;56&lt;/strong&gt;&lt;/td&gt;
			&lt;td&gt;56&lt;/td&gt;
			&lt;td&gt;65&lt;/td&gt;
			&lt;td&gt;87&lt;/td&gt;
			&lt;td&gt;89&lt;/td&gt;
			&lt;td&gt;92&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Our median mark is the middle mark - in this case, 56 (highlighted in bold). It is the middle mark because there are 5 scores before it and 5 scores after it. This works fine when you have an odd number of scores, but what happens when you have an even number of scores? What if you had only 10 scores? Well, you simply have to take the middle two scores and average the result. So, if we look at the example below:&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; style=&quot;width:500px; border-spacing: 0px;&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;65&lt;/td&gt;
			&lt;td&gt;55&lt;/td&gt;
			&lt;td&gt;89&lt;/td&gt;
			&lt;td&gt;56&lt;/td&gt;
			&lt;td&gt;35&lt;/td&gt;
			&lt;td&gt;14&lt;/td&gt;
			&lt;td&gt;56&lt;/td&gt;
			&lt;td&gt;55&lt;/td&gt;
			&lt;td&gt;87&lt;/td&gt;
			&lt;td&gt;45&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;We again rearrange that data into order of magnitude (smallest first):&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; style=&quot;width:500px; border-spacing: 0px;&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;14&lt;/td&gt;
			&lt;td&gt;35&lt;/td&gt;
			&lt;td&gt;45&lt;/td&gt;
			&lt;td&gt;55&lt;/td&gt;
			&lt;td&gt;&lt;strong&gt;55&lt;/strong&gt;&lt;/td&gt;
			&lt;td&gt;&lt;strong&gt;56&lt;/strong&gt;&lt;/td&gt;
			&lt;td&gt;56&lt;/td&gt;
			&lt;td&gt;65&lt;/td&gt;
			&lt;td&gt;87&lt;/td&gt;
			&lt;td&gt;
			&lt;p&gt;89&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Only now we have to take the 5th and 6th score in our data set and average them to get a median of 55.5.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Mode:&lt;/p&gt;

&lt;p&gt;The mode is the most frequent score in our data set. On a histogram it represents the highest bar in a bar chart or histogram. You can, therefore, sometimes consider the mode as being the most popular option. An example of a mode is presented below:&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; height=&quot;432&quot; src=&quot;https://statistics.laerd.com/statistical-guides/img/mode-1.png&quot; width=&quot;436&quot;&gt;&lt;/p&gt;

&lt;p&gt;Normally, the mode is used for categorical data where we wish to know which is the most common category, as illustrated below:&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; height=&quot;342&quot; src=&quot;https://statistics.laerd.com/statistical-guides/img/mode-1a.png&quot; width=&quot;430&quot;&gt;&lt;/p&gt;

&lt;p&gt;We can see above that the most common form of transport, in this particular data set, is the bus. However, one of the problems with the mode is that it is not unique, so it leaves us with problems when we have two or more values that share the highest frequency, such as below:&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; height=&quot;431&quot; src=&quot;https://statistics.laerd.com/statistical-guides/img/mode-2.png&quot; width=&quot;436&quot;&gt;&lt;/p&gt;</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/357/define-measures-of-center-median-and-mode?show=448#a448</guid>
<pubDate>Sat, 27 Oct 2018 14:06:42 +0000</pubDate>
</item>
<item>
<title>Retagged: Calculate IQR(Inter Quartile Range) of {18, 24, 19, 16, 21}?</title>
<link>https://ask.ghassem.com/351/calculate-iqr-inter-quartile-range-of-18-24-19-16-21?show=351#q351</link>
<description></description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/351/calculate-iqr-inter-quartile-range-of-18-24-19-16-21?show=351#q351</guid>
<pubDate>Tue, 16 Oct 2018 11:59:59 +0000</pubDate>
</item>
<item>
<title>Answered: How do you tell a permutation problem from a combination problem?</title>
<link>https://ask.ghassem.com/396/how-you-tell-permutation-problem-from-combination-problem?show=397#a397</link>
<description>
&lt;p&gt;The key is finding out if the&lt;strong&gt; order of items&lt;/strong&gt; are important or not. If the order does matter, it will be permutation, otherwise it is combination.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;In these two examples, we should think about context of the words &quot;&lt;strong&gt;Groups&lt;/strong&gt;&quot; and &quot;&lt;strong&gt;Lists&lt;/strong&gt;&quot;.&lt;strong&gt; For Groups, the order is NOT important, but because Lists comes with the&amp;nbsp; index, and the order does matter. &lt;/strong&gt;So, the first question is combination and the second one is permutation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Combination&lt;/strong&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;1. How many different &lt;strong&gt;groups &lt;/strong&gt;of 4 students can be made from a class of 40?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&amp;nbsp; $C(40,4) = \binom{40}{4} = \frac{40!}{4!(40-4)!} $&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Permutation:&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;2. How many different &lt;strong&gt;lists&lt;/strong&gt; of 4 students can be made from a class of 40?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&amp;nbsp; $P(40,4) &amp;nbsp;= \frac{40!}{(40-4)!} $&lt;/p&gt;
</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/396/how-you-tell-permutation-problem-from-combination-problem?show=397#a397</guid>
<pubDate>Mon, 15 Oct 2018 17:15:22 +0000</pubDate>
</item>
<item>
<title>Reshown: What is the probability of getting a King of Hearts?</title>
<link>https://ask.ghassem.com/359/what-is-the-probability-of-getting-a-king-of-hearts?show=359#q359</link>
<description>What is the probability of picking a King of Hearts in a standard 52 card deck?</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/359/what-is-the-probability-of-getting-a-king-of-hearts?show=359#q359</guid>
<pubDate>Mon, 15 Oct 2018 02:53:32 +0000</pubDate>
</item>
<item>
<title>Answered: If x is the number that comes up when you roll a 20 sided die. What is the expected value of x?</title>
<link>https://ask.ghassem.com/360/the-number-that-comes-when-you-roll-sided-what-expected-value?show=380#a380</link>
<description>&lt;p&gt;Assign a number to each of those events (having 1 as outcome, having 2 as outcome, ..., having 20 as outcome) which is the job of &lt;strong&gt;Random Variable&lt;/strong&gt;. For this specific example, we can assign the same numbers. The&amp;nbsp;&lt;strong&gt;Expected Value&lt;/strong&gt; equation is $\mu = \sum x.p(x)$. Now you have $x = {1,2,...,20}$, and if&amp;nbsp;you have $p(x)$, you can easily calculate expected value.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;In this case that we have a fair die with 20 sides, probability of each side is $\frac{1}{20}$. Now, we can calculate it in this way:&lt;/p&gt;

&lt;p&gt;$\mu = \sum x.p(x) = \sum_{x=1}^{20}&amp;nbsp;x.\frac{1}{20}&amp;nbsp;&amp;nbsp;= \frac{1}{20} \sum_{x=1}^{20}&amp;nbsp;x =&amp;nbsp;\frac{1}{20} \frac{20\times21}{2} = 10.5&amp;nbsp;&amp;nbsp;$&lt;/p&gt;

&lt;p&gt;(note: $\sum_{x=1}^{n}&amp;nbsp;x = \frac {n\times(n+1)}{2}$)&lt;/p&gt;</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/360/the-number-that-comes-when-you-roll-sided-what-expected-value?show=380#a380</guid>
<pubDate>Sun, 14 Oct 2018 04:22:54 +0000</pubDate>
</item>
<item>
<title>Answered: What is a discrete random variable?</title>
<link>https://ask.ghassem.com/365/what-is-a-discrete-random-variable?show=366#a366</link>
<description>&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://revisionmaths.com/advanced-level-maths-revision/statistics/discrete-random-variables&quot;&gt;https://revisionmaths.com/advanced-level-maths-revision/statistics/discrete-random-variables&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;discrete variable&lt;/strong&gt; is a variable that can only take a &lt;em&gt;finite&lt;/em&gt; number of values. The variable is said to be &lt;strong&gt;random&lt;/strong&gt; if the &lt;em&gt;sum&lt;/em&gt; of the probabilities is 1.&lt;/p&gt;</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/365/what-is-a-discrete-random-variable?show=366#a366</guid>
<pubDate>Sat, 13 Oct 2018 01:23:29 +0000</pubDate>
</item>
<item>
<title>Answered: What is the difference between permutation and combination?</title>
<link>https://ask.ghassem.com/363/what-is-the-difference-between-permutation-and-combination?show=364#a364</link>
<description>&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://towardsdatascience.com/difference-between-permutation-and-combination-9e12b6763ee1&quot;&gt;https://towardsdatascience.com/difference-between-permutation-and-combination-9e12b6763ee1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Permutation&lt;/strong&gt; is when the order matters on the selection of objects, whereas &lt;strong&gt;Combination&lt;/strong&gt; is the number of combinations that can be performed on a set of &lt;em&gt;n &lt;/em&gt;objects&lt;/p&gt;</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/363/what-is-the-difference-between-permutation-and-combination?show=364#a364</guid>
<pubDate>Sat, 13 Oct 2018 01:20:38 +0000</pubDate>
</item>
<item>
<title>Answered: What is the difference between Qualitative and Quantitative data?</title>
<link>https://ask.ghassem.com/361/what-the-difference-between-qualitative-quantitative-data?show=362#a362</link>
<description>Qualitative data is not a number, and is typically a text value, whereas Quantitative data is a number (which is then divided into sub-groups: Discrete and Continuous).</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/361/what-the-difference-between-qualitative-quantitative-data?show=362#a362</guid>
<pubDate>Sat, 13 Oct 2018 01:16:53 +0000</pubDate>
</item>
<item>
<title>Answered: What is binomial experiment and when do we use it?</title>
<link>https://ask.ghassem.com/355/what-is-binomial-experiment-and-when-do-we-use-it?show=358#a358</link>
<description>A binomial experiment is a probability experiment where a same process is repeated for certain number of times. &lt;br /&gt;
&lt;br /&gt;
So we use binomial experiment when we know that the events are independent of each others and has only 2 possible outcomes. For example, tossing a coin has 2 outcomes head or tail. Success is denoted as p while failure is denoted as 1- p .</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/355/what-is-binomial-experiment-and-when-do-we-use-it?show=358#a358</guid>
<pubDate>Fri, 12 Oct 2018 22:30:50 +0000</pubDate>
</item>
<item>
<title>What is &quot;Random Sampling&quot;?</title>
<link>https://ask.ghassem.com/356/what-is-random-sampling</link>
<description>Define random sampling</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/356/what-is-random-sampling</guid>
<pubDate>Fri, 12 Oct 2018 22:26:06 +0000</pubDate>
</item>
<item>
<title>Answered: When should we use permutation and combination?</title>
<link>https://ask.ghassem.com/353/when-should-we-use-permutation-and-combination?show=354#a354</link>
<description>Permutations are used when we need to arrange things in a specific order. For example, lets assume there are 10 people and we have to assign them medals. So order is important here as 1st person gets gold while 2nd gets silver. In this case, we use permutations.&lt;br /&gt;
&lt;br /&gt;
Combinations are used when we need to make groups where order doesn&amp;#039;t matter. For example, if we need to give 3 tin cans to 8 people, order doesn&amp;#039;t matter here for the way we pick people. In this case, we use combinations.</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/353/when-should-we-use-permutation-and-combination?show=354#a354</guid>
<pubDate>Fri, 12 Oct 2018 22:22:57 +0000</pubDate>
</item>
<item>
<title>Answered: What do population, parameter, census and sample mean in statistics?</title>
<link>https://ask.ghassem.com/349/what-population-parameter-census-and-sample-mean-statistics?show=350#a350</link>
<description>Population is a set of similar items or events. It can be a group of any existing objects.&lt;br /&gt;
&lt;br /&gt;
Parameter is an very important component of population. It is a numerical quantity which features population or some aspect in it.&lt;br /&gt;
&lt;br /&gt;
Census is a survey which is conducted after a complete observation belonging to any population.&lt;br /&gt;
&lt;br /&gt;
Sample generally refers to a set of observations. Here, it refers to a set of observations drawn from a population.</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/349/what-population-parameter-census-and-sample-mean-statistics?show=350#a350</guid>
<pubDate>Fri, 12 Oct 2018 21:57:50 +0000</pubDate>
</item>
<item>
<title>Answered: Question for Discrete random variable</title>
<link>https://ask.ghassem.com/347/question-for-discrete-random-variable?show=348#a348</link>
<description>μ, of a random variable x is $\mu = \sum x.P(x)$ &amp;nbsp;for all values of x&lt;br /&gt;
&lt;br /&gt;
Here we will subtract the second value as it is in loss.&lt;br /&gt;
&lt;br /&gt;
$\mu = (0.60)(20000) - (0.40)(25000)$ &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
$\mu = 2000$</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/347/question-for-discrete-random-variable?show=348#a348</guid>
<pubDate>Fri, 12 Oct 2018 21:07:12 +0000</pubDate>
</item>
<item>
<title>Answered: Sample question of permutation and combination.</title>
<link>https://ask.ghassem.com/345/sample-question-of-permutation-and-combination?show=346#a346</link>
<description>Here the order of the r elements does not matter, so we will use combination formula:&lt;br /&gt;
&lt;br /&gt;
= $\frac{n!}{r!\left(n-r\right)!}$&lt;br /&gt;
&lt;br /&gt;
= $\frac{5!}{2!\left(5-2\right)!}$&lt;br /&gt;
&lt;br /&gt;
= 10</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/345/sample-question-of-permutation-and-combination?show=346#a346</guid>
<pubDate>Fri, 12 Oct 2018 20:52:42 +0000</pubDate>
</item>
<item>
<title>Answered: {1.75,  1.63,  1.55,  1.92,  1.81, 1.79, 1.81}. Determine the mean, the median, and the 20th percentile?</title>
<link>https://ask.ghassem.com/343/75-63-55-determine-the-mean-the-median-and-the-20th-percentile?show=344#a344</link>
<description>&lt;p&gt;Mean = (1.75 + 1.63 + 1.55 + 1.92 + 1.81 + 1.79 + 1.81) / 7 = 1.751&lt;/p&gt;

&lt;p&gt;Median = Arrange the values in ascending order, if the total number of values in data set is odd the middle value is median&lt;/p&gt;

&lt;p&gt;1.55, 1.63, 1.75, &lt;span class=&quot;marker&quot;&gt;1.79&lt;/span&gt;, 1.81, 1.81, 1.92&lt;/p&gt;

&lt;p&gt;Percentile =&amp;nbsp;1.55, 1.63, 1.75, 1.79, 1.81, 1.81, 1.92&lt;/p&gt;

&lt;p&gt;A = (nk)/100&amp;nbsp;&lt;/p&gt;

&lt;p&gt;= (7 x 20)/100 = 1.4&lt;/p&gt;

&lt;p&gt;=&amp;gt; 2nd value in data set, which is 1.63&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/343/75-63-55-determine-the-mean-the-median-and-the-20th-percentile?show=344#a344</guid>
<pubDate>Fri, 12 Oct 2018 20:37:02 +0000</pubDate>
</item>
<item>
<title>Answered: What is  difference between discrete numerical variable and continuous numerical variable?</title>
<link>https://ask.ghassem.com/341/difference-discrete-numerical-variable-continuous-numerical?show=342#a342</link>
<description>A discrete numerical variable can be determined by counting a quantity or variables that can only take on a finite number of values are called &amp;quot;discrete variables.&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Variables that can take on an infinite number of possible values are called continuous numerical variable.</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/341/difference-discrete-numerical-variable-continuous-numerical?show=342#a342</guid>
<pubDate>Fri, 12 Oct 2018 19:28:25 +0000</pubDate>
</item>
<item>
<title>What is the difference between Combination and Permutation?</title>
<link>https://ask.ghassem.com/315/what-is-the-difference-between-combination-and-permutation</link>
<description>As an example:&lt;br /&gt;
Calculate the possible permutations for a rubik&amp;#039;s cube?&lt;br /&gt;
&lt;br /&gt;
Why is it not, calculate the possible combinations for a rubik&amp;#039;s cube?</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/315/what-is-the-difference-between-combination-and-permutation</guid>
<pubDate>Thu, 11 Oct 2018 17:25:28 +0000</pubDate>
</item>
<item>
<title>Answer selected: What is the difference between qualitative and quantitive data?</title>
<link>https://ask.ghassem.com/247/what-the-difference-between-qualitative-and-quantitive-data?show=248#a248</link>
<description>&lt;p&gt;Qualitative data is data that &lt;strong&gt;cannot&lt;/strong&gt; be measured numerically.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;How hungry you&amp;nbsp;are&lt;/li&gt;
	&lt;li&gt;The color of the sky&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Quantitative is data that &lt;strong&gt;can&lt;/strong&gt; be measured numerically.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;The number of goals scored in a hockey game&lt;/li&gt;
	&lt;li&gt;Your age&lt;/li&gt;
&lt;/ul&gt;</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/247/what-the-difference-between-qualitative-and-quantitive-data?show=248#a248</guid>
<pubDate>Thu, 11 Oct 2018 17:17:35 +0000</pubDate>
</item>
<item>
<title>Reshown: Six devices (A,B,C,D,E, F) are each assigned one of three IP addresses...how many different assignments are possible?</title>
<link>https://ask.ghassem.com/310/devices-assigned-addresses-different-assignments-possible?show=310#q310</link>
<description>Six devices (A,B,C,D,E, F) are each assigned one of three IP addresses (IP#1, IP#2, IP#3). If three&lt;br /&gt;
devices are assigned IP#1, two devices are assigned IP#2, and one device IP#3, how many different&lt;br /&gt;
assignments are possible?&lt;br /&gt;
&lt;br /&gt;
This is question 4 from lecture 3A.</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/310/devices-assigned-addresses-different-assignments-possible?show=310#q310</guid>
<pubDate>Mon, 08 Oct 2018 23:58:52 +0000</pubDate>
</item>
<item>
<title>Commented: How many different ways are there to deal four 13 card hands to four players from a standard deck of 52 cards?</title>
<link>https://ask.ghassem.com/306/many-different-ways-there-deal-hands-players-standard-cards?show=309#c309</link>
<description>Yes thanks. I just learnt about the Basic Counting Rule(BCR) from the textbook too which made this even more clearer. BCR says that if there are r actions with the first action having m1 possibilities and second having m2 possibilities and so on, then the total number of possibilities is m1*m2... *mr. So with your simplified example, &amp;nbsp;the number of actions (r) is 2 for disturbing to 2 people&lt;br /&gt;
For the first person or action there are 6 possibilities (m1) for distributing 4 cards&lt;br /&gt;
For the second person or action &amp;nbsp;there is only 1 possibility (m2) for distributing the remain 2 cards. &lt;br /&gt;
&lt;br /&gt;
By the BCR the total number of possibilities is(m1*m2) 6*1 which is 6.&lt;br /&gt;
&lt;br /&gt;
This applied to my original question means the answer I found is correct! Thanks again.</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/306/many-different-ways-there-deal-hands-players-standard-cards?show=309#c309</guid>
<pubDate>Mon, 08 Oct 2018 20:56:04 +0000</pubDate>
</item>
<item>
<title>Answer selected: A standard deck of 52 cards is shuffled and a single card is drawn. What is the probability that this card is a Joker</title>
<link>https://ask.ghassem.com/238/standard-deck-cards-shuffled-single-drawn-probability-joker?show=239#a239</link>
<description>&lt;p&gt;In a standard deck of cards, as shown in the image that you have included, does not contain any &lt;em&gt;Jokers&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;J is for &lt;em&gt;Jack&lt;/em&gt;.&lt;/p&gt;</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/238/standard-deck-cards-shuffled-single-drawn-probability-joker?show=239#a239</guid>
<pubDate>Fri, 05 Oct 2018 22:15:03 +0000</pubDate>
</item>
<item>
<title>Answered: What is the difference between the mean and the median? Calculate both for the following number set {18, 24, 19. 16. 21}</title>
<link>https://ask.ghassem.com/279/what-difference-between-median-calculate-following-number?show=280#a280</link>
<description>&lt;p&gt;The &lt;strong&gt;mean&lt;/strong&gt; is all of the numbers in a data set, divided by the number of numbers. Another word for mean is &lt;strong&gt;average&lt;/strong&gt;.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;median&lt;/strong&gt; is the middle number in an &lt;em&gt;&lt;strong&gt;ordered&lt;/strong&gt;&lt;/em&gt; &lt;strong&gt;&lt;em&gt;set of numbers. &lt;/em&gt;&lt;/strong&gt;If there is an even number of numbers (ie. 4), then take the two middle numbers, and divide them by 2.&lt;/p&gt;

&lt;p&gt;Both calculations are meant to find the number that represents the data set (and the range of ts numbers) the best.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;mean&lt;/strong&gt; (or average) in this case is: 18 + 24 + 19 + 16 + 21 &lt;strong&gt;/&amp;nbsp;&lt;/strong&gt;5 = 19.6&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;median&lt;/strong&gt; in this case is: {16, 18, 19, 21, 24} = 19&lt;/p&gt;</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/279/what-difference-between-median-calculate-following-number?show=280#a280</guid>
<pubDate>Fri, 05 Oct 2018 20:26:57 +0000</pubDate>
</item>
<item>
<title>Commented: What is the difference between a bar plot and a histogram?</title>
<link>https://ask.ghassem.com/222/what-is-the-difference-between-a-bar-plot-and-a-histogram?show=246#c246</link>
<description>Great explanation. Thanks.</description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/222/what-is-the-difference-between-a-bar-plot-and-a-histogram?show=246#c246</guid>
<pubDate>Tue, 02 Oct 2018 15:44:29 +0000</pubDate>
</item>
</channel>
</rss>