Difference between revisions of "161-A3.1"

From Microlab Classes
Jump to navigation Jump to search
Line 9: Line 9:
  
 
{| class="wikitable" style="text-align: center; width: 45%;"
 
{| class="wikitable" style="text-align: center; width: 45%;"
|+ <math>X</math>: Blood Type, <math>Y</math>: Chance for Skin Cancer
+
|+ Table 1: <math>X</math>: Blood Type, <math>Y</math>: Chance for Skin Cancer
 
|-
 
|-
 
! scope="col" |  
 
! scope="col" |  
Line 74: Line 74:
  
 
Let us try to understand what this means:
 
Let us try to understand what this means:
* If we only consider <math>X</math>, we can determine the blood type of a person by looking at the results of a blood test, and we can calculate the entropy, <math>H\left(X\right)</math>, i.e. the expected value of the information we get when we observe the results of the blood test.
+
* If we only consider <math>X</math>, we have the ''a priori'' probabilities, <math>P_X</math> for each blood type, and we can calculate the entropy, <math>H\left(X\right)</math>, i.e. the expected value of the information we get when we observe the results of the blood test.
* If we do not have access to the blood test, but instead, we get to access the person's susceptibility to skin cancer, can we still determine their blood type?
+
* Will our expectations change if we do not have access to the blood test, but instead, we get to access (1) the person's susceptibility to skin cancer, and (2) the conditional probabilities in Table 1? Since we are given more information, we expect:
 +
** The uncertainty to be equal to the original uncertainty if <math>X</math> and <math>Y</math> are independent, or
 +
** A reduction in the uncertainty
  
 
== Example 2: A Noiseless Binary Channel ==
 
== Example 2: A Noiseless Binary Channel ==

Revision as of 09:37, 2 October 2020

  • Activity: Mutual Information and Channel Capacity
  • Instructions: In this activity, you are tasked to
    • Walk through the examples.
    • Calculate the channel capacity of different channel models.
  • Should you have any questions, clarifications, or issues, please contact your instructor as soon as possible.

Example 1: Mutual Information

Given the following probabilities:

Table 1: : Blood Type, : Chance for Skin Cancer
A B AB O
Very Low 1/8 1/16 1/32 1/32
Low 1/16 1/8 1/32 1/32
Medium 1/16 1/16 1/16 1/16
High 1/4 0 0 0

To get the entropies of and , we need to calculate the marginal probabilities:

 

 

 

 

(1)

 

 

 

 

(2)

And since:

 

 

 

 

(3)

We get:

 

 

 

 

(4)

 

 

 

 

(5)

Calculating the conditional entropies using:

 

 

 

 

(6)

 

 

 

 

(7)

Note that . Calculating the mutual information, we get:

 

 

 

 

(8)

Or equivalently:

 

 

 

 

(9)

Let us try to understand what this means:

  • If we only consider , we have the a priori probabilities, for each blood type, and we can calculate the entropy, , i.e. the expected value of the information we get when we observe the results of the blood test.
  • Will our expectations change if we do not have access to the blood test, but instead, we get to access (1) the person's susceptibility to skin cancer, and (2) the conditional probabilities in Table 1? Since we are given more information, we expect:
    • The uncertainty to be equal to the original uncertainty if and are independent, or
    • A reduction in the uncertainty

Example 2: A Noiseless Binary Channel

Example 3: A Noisy Channel with Non-Overlapping Outputs

Example 4: The Binary Symmetric Channel (BSC)

Sources

  • Yao Xie's slides on Entropy and Mutual Information