Discrete Data/Examples/Colors of Rainbow

From ProofWiki
Jump to navigation Jump to search

Example of Discrete Data

The set $C$ of colors of the rainbow:

$C = \set {\text {red}, \text {orange}, \text {yellow}, \text {green}, \text {blue}, \text {indigo}, \text {violet} }$

is an example of discrete data.

In such a circumstance where the discrete data are non-numerical, it is usually possible to assign (natural) numbers to each of the elements, for example:

\(\ds \text {red}\) \(\to\) \(\ds 1\)
\(\ds \text {orange}\) \(\to\) \(\ds 2\)
\(\ds \text {yellow}\) \(\to\) \(\ds 3\)
\(\ds \text {green}\) \(\to\) \(\ds 4\)
\(\ds \text {blue}\) \(\to\) \(\ds 5\)
\(\ds \text {indigo}\) \(\to\) \(\ds 6\)
\(\ds \text {violet}\) \(\to\) \(\ds 7\)

and so the set $C'$ can be considered instead:

$C' = \set {1, 2, 3, 4, 5, 6, 7}$


Sources