<?xml version="1.0" encoding="UTF-8"?>

<record version="12" id="6070">
 <title>Hartley function</title>
 <name>HartleyFunction</name>
 <created>2004-08-04 15:29:26</created>
 <modified>2006-09-08 04:05:56</modified>
 <type>Definition</type>
 <creator id="5987" name="kshum"/>
 <author id="5987" name="kshum"/>
 <classification>
	<category scheme="msc" code="94A17"/>
 </classification>
 <defines>
	<concept>Hartley entropy</concept>
	<concept>Hartley information</concept>
 </defines>
 <related>
	<object name="ShannonsTheoremEntropy"/>
	<object name="EntropyOfAPartition"/>
 </related>
 <preamble>% this is the default PlanetMath preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
%\usepackage{graphicx}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here</preamble>
 <content>{\bf Definition}

The {\it Hartley function} is a \PMlinkescapetext{measure} of uncertainty, introduced by Hartley in 1928. If we pick a sample from a finite set $A$ uniformly at random, the \PMlinkescapetext{information} revealed after we know the \PMlinkescapetext{outcome} is given by the Hartley function
\[
  H(A) := \log_b(|A|).
\]
If the base of the logarithm is 2, then the uncertainty is
measured in bits. If it is the natural logarithm, then the \PMlinkescapetext{unit} is nats. It is also known as the Hartley entropy. 

\bigskip

{\bf Remark:}

 The Hartley function is a special case of Shannon's entropy. Each element  in the sample space $A$ is associated with probability $p=1/|A|$. For an element $\omega\in A$, the Hartley \PMlinkescapetext{information} of the event $\{\omega\}$ is $-\log(p)=\log(|A|)$, which is constant over $\omega\in A$. The average \PMlinkescapetext{information} over the whole sample space is thus also equal to $\log(|A|)$.

\bigskip

{\bf Characterization}

The Hartley function only depends on the number of elements in a
set, and hence can be viewed as a function on natural numbers.
R\'enyi showed that the Hartley function in base 2 is the only
function mapping natural numbers to real numbers that
\PMlinkescapetext{satisfies}
\begin{enumerate}
\item $H(mn) = H(m)+H(n)$ \ \ \ (\PMlinkescapetext{additivity}),

\item $H(m) \leq H(m+1)$ \ \ \ (monotonicity), and

\item $H(2)=1$ \ \ \ (normalization).
\end{enumerate}

Condition 1 says that the uncertainty of the Cartesian product of
two finite sets $A$ and $B$ is the sum of uncertainties of $A$ and
$B$. Condition 2 says that a larger set has larger uncertainty.</content>
</record>
