DecodeAI
← Question Bank

Mathematics & Statistics

Information Theory

Interview questions on Information Theory.

31 questions

General

Q1. Run the following Python code in a Python interpreter. What are the results?

Sign in to bookmark
import math
import numpy
print (math.log(1.0/0.98)) # Natural log (ln)
print (numpy.log(1.0/0.02)) # Natural log (ln)
print (math.log10(1.0/0.98)) # Common log (base 10)
print (numpy.log10(1.0/0.02)) # Common log (base 10)
print (math.log2(1.0/0.98)) # Binary log (base 2)
print (numpy.log2(1.0/0.02)) # Binary log (base 2)

General

Q2. The three basic laws of logarithms:

Sign in to bookmark
  1. First law logA+logB=logAB\log A + \log B = \log AB Compute the following expression:log103+log104\log_{10}3 + \log_{10}42. Second lawlogAn=nlogA\log A^n = n\log ACompute the following expression:log246\log_24^63. Third law logAlogB=logAB.\log A − \log B = \log \frac{A}{B} . Therefore, subtracting logB\log B from in logA\log A in logAB\log \frac{A}{B} . Compute the following expression: loge15loge3\log_e15 - \log_e3

General

Q3. Write Shannon's famous general formulae for uncertainty.

Sign in to bookmark

General

Q4. Choose exactly one, and only one answer.

Sign in to bookmark
  1. For an event which is certain to happen, what is the entropy? (a) 1.0 (b) 0.0 (c) The entropy is undefined (d) −1 (e) 0.5 (f) log2(N)log_2(N), N being the number of possible events
  2. For N equiprobable events, what is the entropy? (a) 1.0 (b) 0.0 (c) The entropy is undefined (d) −1 (e) 0.5 (f) log2(N)log_2(N)

General

Q5. Shannon found that entropy was the only function satisfying three natural properties.

Sign in to bookmark

Enumerate these properties.

General

Q6. In information theory, minus the logarithm of the probability of a symbol (essentially the number of bits required to represent it efficiently in a binary code) is defined to be the information conveyed by transmitting that symbol. In this context, the entropy can be interpreted as the expected information conveyed by transmitting a single symbol from an alphabet in which the symbols occur with the probabilities $π_k$.

Sign in to bookmark

Mark the correct answer: Information is a/an [decrease/increase] in uncertainty.

General

Q7. Claud Shannon's paper “A mathematical theory of communication”, marked the birth of information theory. Published in 1948, it has become since the Magna Carta of the information age. Describe in your own words what is meant by the term Shannon bit.

Sign in to bookmark

General

Q8. With respect to the notion of surprise in the context of information theory:

Sign in to bookmark
  1. Define what it actually meant by being surprised.
  2. Describe how it is related to the likelihood of an event happening.
  3. True or False: The less likely the occurrence of an event, the smaller information it conveys.

General

Q9. Assume a source of signals that transmits a given message a with probability $P_a$. Assume further that the message is encoded into an ordered series of ones and zeros (a bit string) and that a receiver has a decoder that converts the bit string back into its respective message. Shannon devised a formulae that describes the size that the mean length of the bit string can be compressed to. Write the formulae.

Sign in to bookmark

General

Q10. Answer the following questions:

Sign in to bookmark
  1. Assume a source that provides a constant stream of N equally likely symbols x1,x2,...,xN{x1, x2, . . . , xN }. What does Shannon's formulae reduce to in this particular case?
  2. Assume that each equiprobable pixel in a monochrome image that is fed to a DL classification pipeline, can have values ranging from 0 to 255. Find the entropy in bits.

General

Q11. Given Shannon's famous general formulae for uncertainty:

Sign in to bookmark

H=a=1NPalog2Pa(bitspersymbol)H = -\sum_{a=1}^NP_a\log_2P_a \\(bits per symbol)

  1. Plot a graph of the curve of probability vs. uncertainty.
  2. Complete the sentence: The curve is [symmetrical/asymmetrical].
  3. Complete the sentence: The curve rises to a [minimum/maximum] when the two symbols are equally likely (Pa=0.5P_a = 0.5).

General

Q12. **True or False** : Given random variables X, Y and Z where $Y = X + Z$ then:

Sign in to bookmark

H(X,Y)=H(X,Z)H(X, Y ) = H(X, Z)

General

Q13. What is the entropy of a biased coin? Suppose a coin is biased such that the probability of ‘heads’ is $p(x_h) = 0.98$

Sign in to bookmark
  1. Complete the sentence: We can predict ‘heads’ for each flip with an accuracy of [___]%.
  2. Complete the sentence : If the result of the coin toss is ‘heads’,the amount of Shannon information gained is [___] bits.
  3. Complete the sentence: If the result of the coin toss is ‘tails’, the amount of Shannon information gained is [___] bits.
  4. Complete the sentence : It is always true that the more information is associated with an outcome, the [more/less] surprising it is.
  5. Provided that the ratio of tosses resulting in ‘heads’ is p(xh)p(x_h), and the ratio of tosses resulting in ‘tails’ isp(xt) p(x_t), and also provided thatp(xh)+p(xt)=1 p(x_h)+p(x_t) = 1, what is formulae for the average surprise?
  6. What is the value of the average surprise in bits?

General

Q14. Write the formulae for the Kullback-Leibler divergence between two discrete probability

Sign in to bookmark

density functions P and Q.

General

Q15. Describe one intuitive interpretation of the KL-divergence with respect to bits.

Sign in to bookmark

General

Q16. 1. True or False: The KL-divergence is not a symmetric measure of similarity, i.e.:

Sign in to bookmark

DKL(PQ)!=DKL(QP)D_{KL}(P||Q) != D_{KL}(Q||P) 2. True or False: The KL-divergence satisfies the triangle inequality. 3. True or False: The KL-divergence is not a distance metric. 4. True or False: In information theory, KLD is regarded as a measure of the information gained when probability distribution Q is used to approximate a true probability distribution P . 5. True or False: The units of KL-divergence are units of information. 6. True or False: The KLD is always non-negative, namely: DKL(PQ)0.D_{KL}(P||Q) ≥ 0. 7. True or False: In a decision tree, high information gain indicates that adding a split to the decision tree results in a less accurate model.

General

Q17. Given two distributions $f1$ and $f2$ and their respective joint distribution $f$, write the formulae for the mutual information of$ f1 $and$ f2$.

Sign in to bookmark

General

Q18. There are several measures by which one can determine how to optimally split attributes in a decision tree. List the three most commonly used measures and write their formulae.

Sign in to bookmark

General

Q19. Complete the sentence: In a decision tree, the attribute by which we choose to split is the one with `[minimum/maximum]` information gain.

Sign in to bookmark

General

Q20. To study factors affecting the decision of a frog to jump (or not), a deep learning researcher from a Brazilian rain-forest, collects data pertaining to several independent binary co-variates.

Sign in to bookmark

General

Q21. This question discusses the link between binary classification, information gain and decision trees. Recent research suggests that Cannabis (Fig. 4.5), and Cannabinoids administration in particular may reduce the size of malignant tumours in rodents. The data (Table 9.2) comprises a training set of feature vectors with corresponding class labels which a researcher intents classifying using a decision tree.

Sign in to bookmark

General

Q22. To study factors affecting the expansion of stars, a physicist is provided with data regrading two independent variables; $θ_1 (T/F)$ indicating whether a star is dense, and $θ2 (T/F)$ indicating whether a star is adjacent to a black-hole. He is told that the binary response variable, $γ$, indicates whether expansion was observed.

Sign in to bookmark

e.g.: expansion=+,no expansion=\text{expansion}=+, \text{no expansion}=- Referring to table (4.3), each row indicates the observed values, columns (θi)(θi) denote features and class label (γ)(γ) denotes whether expansion was observed.

General

Q23. To study factors affecting tumour shrinkage in humans, a deep learning researcher is provided with data regrading two independent variables; $θ1(S/M/L)$ indicating whether the tumour is small(S), medium(M) or large(L), and $θ2(T/F)$ indicating whether the tumour has undergone radiation therapy. He is told that the binary response variable, $γ$, indicates whether tumour shrinkage was observed $(e.g. shrinkage=+, no shrinkage=-)$.

Sign in to bookmark

Referring to table (4.4), each row indicates the observed values, columns (θi)(θ_i) denote features and class label (γ)(γ) denotes whether shrinkage was observed.

General

Q24. Shannon described a communications system consisting five elements (4.6), two of which are the source S and the destination D.

Sign in to bookmark

General

Q25. Complete the sentence: Mutual information is a Shannon entropy-based measure of dependence between random variables. The mutual information between X and Z can be understood as the (a) [...] of the (b) [...] in X given Z:

Sign in to bookmark

I(X;Z):=H(X)H(XZ)I(X; Z) := H(X) − H(X | Z) where H is the Shannon entropy, and H(XZ)H (X | Z ) is the conditional entropy of ZZ given XX.

General

Q26. What is the expression for the Boltzmann probability distribution?

Sign in to bookmark

General

Q27. Information theory, quantum physics and thermodynamics are closely interconnected. There are several equivalent formulations for the second law of thermodynamics. One approach to describing uncertainty stems from Boltzmanns fundamental work on entropy in statistical mechanics. Describe what is meant by Boltzmanns entropy.

Sign in to bookmark

General

Q28. From Boltzmanns perspective, what is the entropy of an octahedral dice?

Sign in to bookmark

General

Q29. 1. Define the term concave function.

Sign in to bookmark
  1. Define the term convex function.
  2. State Jensen's inequality and its implications.

General

Q30. **True or False**: Using Jensen's inequality, it is possible to show that the KL divergence

Sign in to bookmark

is always greater or equal to zero.

General

Q31. Jensen’s inequality forms the basis for many algorithms for probabilistic inference, including expectation maximization and variational inference. Explain what Jensen’s inequality is.

Sign in to bookmark