0

This is from Thomas and Cover's textbook, 2nd.

Def. A source code $C$ for a random variable $X$ is a mapping from $\mathcal{X}$, the range of $X$, to $\mathcal{D}^\star$, the set of finite length strings of symbols from a $D$-ary alphabet.

Ok. Then the example immediately following is:

$C(red) = 00$, $C(blue) = 11$ is a source code for $\mathcal{X} = \{red, blue\}$ with alphabet $\mathcal{D} = \{0, 1\}.$

  1. What is an "alphabet" and a "symbol" in this definition?
  2. Since the range of random variables are subsets of $\mathbb{R}$, then how can $C$ map from blue and red when these are not element of $\mathbb{R}$?
  • @GEdgar Could you elaborate or provide ref? – Sin Nombre Oct 11 '22 at 02:22
  • Not an expert on this subject, but I think I’d define a “$D$-ary alphabet” to be just a set with $D$ elements. In this context, once an alphabet has been introduced, the elements of the alphabet are called “symbols”. – littleO Oct 11 '22 at 07:16