ArticleslgStudy

mathematics

Hartley function

Hartley function is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Hartley function rather than just read about it. In short: The Hartley function is a measure of uncertainty, introduced by Ralph Hartley in 1928. If a sample from a finite set A uniformly at random is picked, the amount of information revealed after the outcome is known is given by the Hartley function H0(A):=logb|A|, where |A| denotes the cardinality of A.

Key takeaways

  • Hartley function belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Hartley function to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Hartley function from memory before moving on to harder problems.

Reference excerpt

The Hartley function is a measure of uncertainty, introduced by Ralph Hartley in 1928. If a sample from a finite set A uniformly at random is picked, the amount of information revealed after the outcome is known is given by the Hartley function

H0(A):=logb|A|, where |A| denotes the cardinality of A. If the base of the logarithm is 2, then the unit of uncertainty is the shannon (more commonly known as bit). If it is the natural logarithm, then the unit is the nat. Hartley used a base-ten logarithm, and with this base, the unit of information is called the hartley (aka ban or dit) in his honor. It is also known as the Hartley entropy or max-entropy.

Hartley function, Shannon entropy, and Rényi entropy The Hartley function coincides with the Shannon entropy (as well as with the Rényi entropies of all orders) in the case of a uniform probability distribution. It is a special case of the Rényi entropy since:

H0(X)=11−0log⁡∑i=1|𝒳|pi0=log⁡|𝒳|. But it can also be viewed as a primitive construction, since, as emphasized by Kolmogorov and Rényi, the Hartley function can be defined without introducing any notions of probability (see Uncertainty and information by George J. Klir, p. 423).

Characterization of the Hartley function 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ényi showed that the Hartley function in base 2 is the only function mapping natural numbers to real numbers that satisfies

H(mn)=H(m)+H(n) (additivity) H(m)≤H(m+1) (monotonicity) H(2)=1 (normalization) 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.

Derivation of the Hartley function We want to show that the Hartley function, log2(n), is the only function mapping natural numbers to real numbers that satisfies

H(mn)=H(m)+H(n) (additivity) H(m)≤H(m+1) (monotonicity) H(2)=1 (normalization) Let f be a function on positive integers that satisfies the above three properties. From the additive property, we can show that for any integer n and k,

f(nk)=kf(n). Let a, b, and t be any positive integers. There is a unique integer s determined by

as≤bt≤as+1.(1) Therefore,

slog2a≤tlog2b≤(s+1)log2a and

st≤log2blog2a≤s+1t. On the other hand, by monotonicity,

f(as)≤f(bt)≤f(as+1). Using equation (1), one gets

sf(a)≤tf(b)≤(s+1)f(a), and

st≤f(b)f(a)≤s+1t. Hence,

|f(b)f(a)−log2(b)log2(a)|≤1t. Since t can be arbitrarily large, the difference on the left hand side of the above inequality must be zero,

f(b)f(a)=log2(b)log2(a). So,

f(a)=μlog2(a) for some constant μ, which must be equal to 1 by the normalization property.

See also Rényi entropy Min-entropy

References

This article incorporates material from Hartley function on PlanetMath, which is licensed under the Creative Commons Attribution/Share-Alike License. This article incorporates material from Derivation of Hartley function on PlanetMath, which is licensed under the Creative Commons Attribution/Share-Alike License.

Worked examples

Example 1 — a first encounter with Hartley function

Start with the simplest possible case. Write down what Hartley function claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Hartley function before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Hartley function ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Hartley function

In research
Hartley function appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Hartley function in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Hartley function is common in secondary-school and first-year university syllabi. It links to neighbouring topics Information theory, so understanding it makes those chapters shorter.
In everyday life
Look for Hartley function outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Hartley function” →

How to study Hartley function in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Hartley function means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Hartley function out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Hartley function in simple terms?

The Hartley function is a measure of uncertainty, introduced by Ralph Hartley in 1928. If a sample from a finite set A uniformly at random is picked, the amount of information revealed after the outcome is known is given by the Hartley function H0(A):=logb|A|, where |A| denotes the cardinality of A.

Why does Hartley function matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Hartley function?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Hartley function.

Tags

  • Information theory

Keep exploring