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 $ $ $ $ $ $2$
$5$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $0$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $1$
My lecturer said that this is true: $P$ $(2\le$$X\le3)$ = ${8\over 20}$
$P$ $(1\le$$X\le6)$ = $1$ - ${1\over 20}$ = ${19\over 20}$
So, my question is:
Why is he not adding the last number into the range?
To me, since it is $"less $ $ than $ $ or $ $ equal $ $ to"$ this has to be:
$P$ $(2\le$$X\le3)$ = ${12\over 20}$
$P$ $(1\le$$X\le6)$ = $1$ - ${0\over 20}$ = ${20\over 20}$
Does it have something to do with continuous or discrete data? Cause in another example he added the last number into the range.



It's important to note that (for example) $2\le X\le 3$ translates to "$2$ is less than or equal to $X,$ and $X$ is less than or equal to $3.$" Thus, $2\le X\le 3$ will be true if and only if both $2\le X$ and $X\le 3$ are true. Put another way, $2\le X\le 3$ will be true if and only if neither $X<2$ nor $3<X$ is true.
Thus, the reason that $P(2\le X\le 3)\ne\frac{12}{20}$ is because each of the following four statements is false: $$2\le 3.3\le 3\\2\le 3.4\le 3\\2\le 3.5\le 3\\2\le 3.9\le 3.$$ After all, $3$ is strictly less than each of $3.3,3.4,3.5,3.9.$
The reason that $P(1\le X\le 6)\ne\frac{20}{20}$ is because the following statement is false: $$1\le 0.8\le 6.$$ After all, $0.8$ is strictly less than $1.$
As a side note, you omitted $2.8$ from your stem-and-leaf plot.