An Empirical Symbol Distribution

Counting observed symbols and dividing by the message length gives a sample distribution. It describes that observed message under the selected alphabet.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a small text
  2. Check a future message separately
  3. Turn a short sequence into normalized counts
  4. Track sample scope before using the model

Trace a small text

In AAAB, A occurs three times and B once, giving frequencies \(3/4\) and \(1/4\). Frequency tables give the counting method.

Check a future message separately

A frequency estimate from one document may not fit a different source. A code built for the earlier counts can perform differently on later data. See frequency estimates from samples.[1][2]

Turn a short sequence into normalized counts

The message ABACAA has six symbols. A occurs four times, B once and C once. Their empirical probabilities are \(2/3\), \(1/6\) and \(1/6\). These frequencies do not describe the order of the message. See dictionary frequency counts.

A: 4 of 6
B: 1 of 6
C: 1 of 6
Probabilities sum to 1

Track sample scope before using the model

In a short message an absent symbol may still be possible in the broader source. Use distinct training data or a smoothing policy if required. Empty input has no empirical proportions.

References

  1. Claude E. Shannon, A Mathematical Theory of Communication ↩
  2. David J. C. MacKay, Information Theory, Inference, and Learning Algorithms ↩