Information Theory and Coding

Similar documents
Information Theory - Entropy. Figure 3


MAHALAKSHMI ENGINEERING COLLEGE-TRICHY QUESTION BANK UNIT V PART-A. 1. What is binary symmetric channel (AUC DEC 2006)

MAHALAKSHMI ENGINEERING COLLEGE QUESTION BANK. SUBJECT CODE / Name: EC2252 COMMUNICATION THEORY UNIT-V INFORMATION THEORY PART-A

EC2252 COMMUNICATION THEORY UNIT 5 INFORMATION THEORY

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road UNIT I

An instantaneous code (prefix code, tree code) with the codeword lengths l 1,..., l N exists if and only if. 2 l i. i=1

Channel capacity. Outline : 1. Source entropy 2. Discrete memoryless channel 3. Mutual information 4. Channel capacity 5.

3F1: Signals and Systems INFORMATION THEORY Examples Paper Solutions

CSCI 2570 Introduction to Nanocomputing

1 Introduction to information theory

6.02 Fall 2012 Lecture #1

Chapter 3 Source Coding. 3.1 An Introduction to Source Coding 3.2 Optimal Source Codes 3.3 Shannon-Fano Code 3.4 Huffman Code

ELECTRONICS & COMMUNICATIONS DIGITAL COMMUNICATIONS

1 Ex. 1 Verify that the function H(p 1,..., p n ) = k p k log 2 p k satisfies all 8 axioms on H.

Lecture 1: Shannon s Theorem

Principles of Communications

Chapter 9 Fundamental Limits in Information Theory

Physical Layer and Coding

Revision of Lecture 5

Entropy as a measure of surprise

Multimedia Communications. Mathematical Preliminaries for Lossless Compression

Digital communication system. Shannon s separation principle

Lecture 11: Information theory THURSDAY, FEBRUARY 21, 2019

Introduction to Information Theory. Uncertainty. Entropy. Surprisal. Joint entropy. Conditional entropy. Mutual information.

Dept. of Linguistics, Indiana University Fall 2015

UNIT I INFORMATION THEORY. I k log 2

3F1 Information Theory, Lecture 3

16.36 Communication Systems Engineering

EE376A: Homework #3 Due by 11:59pm Saturday, February 10th, 2018

Exercises with solutions (Set B)

Chapter 4. Data Transmission and Channel Capacity. Po-Ning Chen, Professor. Department of Communications Engineering. National Chiao Tung University

3F1 Information Theory, Lecture 1

3F1 Information Theory, Lecture 3

Compression and Coding

God doesn t play dice. - Albert Einstein

Basic information theory

1. Basics of Information

Coding for Discrete Source

Module 1. Introduction to Digital Communications and Information Theory. Version 2 ECE IIT, Kharagpur

Information and Entropy

Roll No. :... Invigilator's Signature :.. CS/B.TECH(ECE)/SEM-7/EC-703/ CODING & INFORMATION THEORY. Time Allotted : 3 Hours Full Marks : 70

EECS 229A Spring 2007 * * (a) By stationarity and the chain rule for entropy, we have

ELEC546 Review of Information Theory

ITCT Lecture IV.3: Markov Processes and Sources with Memory

Optimum Soft Decision Decoding of Linear Block Codes

Uncertainity, Information, and Entropy

Information Theory and Coding Prof. S. N. Merchant Department of Electrical Engineering Indian Institute of Technology, Bombay

ECE Advanced Communication Theory, Spring 2009 Homework #1 (INCOMPLETE)

channel of communication noise Each codeword has length 2, and all digits are either 0 or 1. Such codes are called Binary Codes.

Introduction to Information Theory. By Prof. S.J. Soni Asst. Professor, CE Department, SPCE, Visnagar

Information Theory and Coding Techniques

Noisy channel communication

Ch 0 Introduction. 0.1 Overview of Information Theory and Coding

Lecture 4 Noisy Channel Coding

Communications Theory and Engineering

Chapter I: Fundamental Information Theory

9 THEORY OF CODES. 9.0 Introduction. 9.1 Noise

Run-length & Entropy Coding. Redundancy Removal. Sampling. Quantization. Perform inverse operations at the receiver EEE

Information Sources. Professor A. Manikas. Imperial College London. EE303 - Communication Systems An Overview of Fundamentals

Exercise 1. = P(y a 1)P(a 1 )

Information Theory CHAPTER. 5.1 Introduction. 5.2 Entropy

DCSP-3: Minimal Length Coding. Jianfeng Feng

INTRODUCTION TO INFORMATION THEORY

(Classical) Information Theory III: Noisy channel coding

Lecture 12. Block Diagram

ECS 332: Principles of Communications 2012/1. HW 4 Due: Sep 7

An introduction to basic information theory. Hampus Wessman

Cyclic Redundancy Check Codes

Entropies & Information Theory

Digital Communications III (ECE 154C) Introduction to Coding and Information Theory

Motivation for Arithmetic Coding

Shannon s noisy-channel theorem

Lecture 5: Channel Capacity. Copyright G. Caire (Sample Lectures) 122

X 1 : X Table 1: Y = X X 2

Digital Image Processing Lectures 25 & 26

Chapter 2: Source coding

Coding of memoryless sources 1/35

Basic Principles of Lossless Coding. Universal Lossless coding. Lempel-Ziv Coding. 2. Exploit dependences between successive symbols.

Classical Information Theory Notes from the lectures by prof Suhov Trieste - june 2006

Channel Coding I. Exercises SS 2017

Source Coding. Master Universitario en Ingeniería de Telecomunicación. I. Santamaría Universidad de Cantabria

Introduction to Wireless & Mobile Systems. Chapter 4. Channel Coding and Error Control Cengage Learning Engineering. All Rights Reserved.

4. Quantization and Data Compression. ECE 302 Spring 2012 Purdue University, School of ECE Prof. Ilya Pollak

Notes 3: Stochastic channels and noisy coding theorem bound. 1 Model of information communication and noisy channel

Lecture 2. Capacity of the Gaussian channel

6.02 Fall 2011 Lecture #9

Shannon's Theory of Communication

Upper Bounds on the Capacity of Binary Intermittent Communication

Lecture 8: Shannon s Noise Models

Revision of Lecture 4

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

ECE Information theory Final (Fall 2008)

Chapter 2 Source Models and Entropy. Any information-generating process can be viewed as. computer program in executed form: binary 0

ELG 5372 Error Control Coding. Claude D Amours Lecture 2: Introduction to Coding 2

EE376A - Information Theory Midterm, Tuesday February 10th. Please start answering each question on a new page of the answer booklet.

PART III. Outline. Codes and Cryptography. Sources. Optimal Codes (I) Jorge L. Villar. MAMME, Fall 2015

Information Theory. Coding and Information Theory. Information Theory Textbooks. Entropy

Summary of Last Lectures

MARKOV CHAINS A finite state Markov chain is a sequence of discrete cv s from a finite alphabet where is a pmf on and for

Transcription:

Information Theory and oding Subject ode : 0E55 IA Marks : 5 No. of Lecture Hrs/Week : 04 Exam Hours : 0 Total no. of Lecture Hrs. : 5 Exam Marks : 00 PART - A Unit : Information Theory: Introduction, Measure of information, Average information content of symbols in long independent sequences, Average information content of symbols in long dependent sequences. Mark-off statistical model for information source, Entropy and information rate of mark-off source. 6 Hours Unit : Source oding: Encoding of the source output, Shannon s encoding algorithm. ommunication hannels, Discrete communication channels, ontinuous channels. 6 Hours Unit : Fundamental Limits on Performance: Source coding theorem, Huffman coding, Discrete memory less hannels, Mutual information, hannel apacity. 6 Hours Unit 4: hannel coding theorem, Differential entropy and mutual information for continuous ensembles, hannel capacity Theorem. 6 Hours PART - B Unit 5: Introduction to Error ontrol oding: Introduction, Types of errors, examples, Types of codes Linear Block odes: Matrix description, Error detection and correction, Standard arrays and table look up for decoding. 7 Hours Unit 6: Binary ycle odes, Algebraic structures of cyclic codes, Encoding using an (n-k) bit shift register, Syndrome calculation. BH codes. 7 Hours Unit 7: RS codes, Golay codes, Shortened cyclic codes, Burst error correcting codes. Burst and Random Error correcting codes. 7 Hours Unit 8: onvolution odes, Time domain approach. Transform domain approach. 7Hours Text Books: Digital and analog communication systems, K. Sam Shanmugam, John Wiley, 996. Digital communication, Simon Haykin, John Wiley, 00. Reference Books: IT and ryptography, Ranjan Bose, TMH, II edition, 007 Digital ommunications - Glover and Grant; Pearson Ed. nd Ed 008 Page

INDEX SHEET Sl No. Unit & Topic of Discussion PAGE NO. PART - A 4 UNIT : INFORMATION THEORY Introduction 5 Measure of information 5 4 Average information content of symbols in long independent 8 Sequences 5 Average information content of symbols in long dependent 9 Sequences 6 Mark-off statistical model for information source, 7 Entropy and information rate of mark-off source. 9 8 Review questions 7 9 UNIT 9 SOURE ODING 0 Encoding of the source output 0 Shannon s encoding algorithm ommunication hannels 44 Discrete communication channels 45 4 Review questions 7 5 UNIT 74 FUNDAMENTAL LIMITS ON PERFORMANE 6 Source coding theorem 75 7 Huffman coding 75 8 Discrete memory less hannels 8 9 Mutual information 88 0 hannel apacity 90 Review questions 0 UNIT 4 ontinuous hannel 4 Differential entropy and mutual information for continuous 9 Ensembles 5 hannel capacity Theorem 6 Review questions 9 7 PART B UNIT 5 0 INTRODUTION TO ERROR ONTROL ODING 8 Introduction 9 Types of errors 0 Types of codes Linear Block odes: Matrix description. 6 Error detection and correction 46 Standard arrays and table look up for decoding 49 Page

4 Hamming codes 5 5 Review questions 55 6 UNIT 6 56 7 Binary yclic odes 57 8 Algebraic structures of cyclic codes 67 9 Encoding using an (n-k) bit shift register, 7 40 Syndrome calculation. 78 4 BH codes 8 4 Review questions 8 4 UNIT 7 8 44 Introduction 84 45 Golay codes and Shortened cyclic codes 88 46 R S codes 89 47 Burst error correcting codes 89 48 Burst and Random Error correcting codes 9 49 Review questions 96 50 UNIT 8 97 5 onvolution odes 98 5 Time domain approach 00 5 Transform domain approach. 06 54 Review questions 6 Page

Information Theory and oding www.allsyllabus.com 0E55 Unit : PART A Information Theory Syllabus: Introduction, Measure of information, Average information content of symbols in long independent sequences, Average information content of symbols in long dependent sequences. Mark-off statistical model for information source, Entropy and information rate of mark-off source. 6 Hours Text Books: Digital and analog communication systems, K. Sam Shanmugam, John Wiley, 996. Reference Books: Digital ommunications - Glover and Grant; Pearson Ed. nd Ed 008 Page 4

Unit :. Introduction: ommunication Information Theory ommunication involves explicitly the transmission of information from one point to another, through a succession of processes. Basic elements to every communication system o o o Transmitter hannel and Receiver ommunication System Source of information Transmitter HANNEL Receiver User of information Message Transmitted Received Estimate of signal Signal signal message signal Information sources are classified as: INFORMATION SOURE ANALOG DISRETE Source definition Analog : Emit a continuous amplitude, continuous time electrical wave from. Discrete : Emit a sequence of letters of symbols. The output of a discrete information source is a string or sequence of symbols.. Measure the information: To measure the information content of a message quantitatively, we are required to arrive at an intuitive concept of the amount of information. onsider the following examples: A trip to Mercara (oorg) in the winter time during evening hours,. It is a cold day. It is a cloudy day. Possible snow flurries Page 5

I (m k ) = log Amount of information received is obviously different for these messages. o Message () ontains very little information since the weather in coorg is cold for most part of the time during winter season. o The forecast of cloudy day contains more informat ion, since it is not an event that occurs often. o In contrast, the forecast of snow flurries convey s even more information, since the occurrence of snow in coorg is a rare event. On an intuitive basis, then with a knowledge of the occurrence of an event, what can be said about the amount of information conveyed? It is related to the probability of occurrence of the event. What do you conclude from the above example with regard to quantity of information? Message associated with an event least likely to occur contains most information. The information content of a message can be expressed quantitatively as follows: The above concepts can now be formed interns of probabilities as follows: Say that, an information source emits one of q po ssible messages m, m m q with p, p p q as their probs. of occurrence. Based on the above intusion, the information content of the k th message, can be written as I (m k ) p k Also to satisfy the intuitive concept, of information. Therefore, I (m k ) must zero as p k I (m k ) > I (m j ); if p k < p j I (m k ) O (m j ); if p k -------------- I I (m k ) O; when O < p k < Another requirement is that when two independent messages are received, the total information content is Sum of the information conveyed by each of the messages. Thus, we have I (m k & m q ) I (m k & m q ) = I mk + I mq ------ I We can define a measure of information as p k ------ III Page 6

0E55 Unit of information measure Base of the logarithm will determine the unit assigned to the information content. Natural logarithm base : nat Base - 0 Base - : bit : Hartley / decit Use of binary digit as the unit of information? Is based on the fact that if two possible binary digits occur with equal proby (p = p = ½) then the correct identification of the binary digit conveys an amount of information. I (m ) = I (m ) = log (½ ) = bit One bit is the amount if information that we gain when one of two possible and equally likely events occurs. Illustrative Example A source puts out one of five possible messages during each message interval. The probs. of these messages are p = ; p = ; p = : p =, p5 4 4 6 6 What is the information content of these messages? I (m ) = - log I (m ) = - log I (m ) = - log I (m 4) = - log I (m 5) = - log 4 = bits 8 6 6 = bit = bits = 4 bits = 4 bits HW: alculate I for the above messages in nats and Hartley Page 7

Digital ommunication System: Source of information Message signal Estimate of the Message signal User of information Source Source Transmitter Encoder decoder Source Estimate of code word source codeword hannel hannel Encoder decoder hannel Estimate of code word channel codeword Receiver Modulator Demodulator Waveform hannel Received signal Entropy and rate of Information of an Information Source / Model of a Mark off Source. Average Information ontent of Symbols in Long Independence Sequences Suppose that a source is emitting one of M possible symbols s 0, s.. s M in a statically independent sequence Let p, p,.. p M be the problems of occurrence of the M-symbols resply. suppose further that during a long period of transmission a sequence of N symbols have been generated. On an average s will occur NP times S will occur NP times : : s i will occur NP i times The information content of the i th symbol is I (s i) = log P i N occurrences of s i contributes an information content of i i i p bitspn.i(s)=pn.log Total information content of the message is = Sum of the contribution due to each of i p i bits Page 8

i.e., Itotal = NP log NP log M i Averageinforamtion content p i bits H = per symbol in given by N i This is equation used by Shannon M symbols of the source alphabet I total M bits per p i symbol Average information content per symbol is also called the source entropy. ---- IV.4 The average information associated with an extremely unlikely message, with an extremely likely message and the dependence of H on the probabilities of messages consider the situation where you have just two messages of probs. p and (-p). Average information per message is H = p log ( p) log p At p = O, H = O and at p =, H = O again, The maximum value of H can be easily obtained as, H = ½ log + ½ log = log = max H max = bit / message Plot and H can be shown below H p O ½ P The above observation can be generalized for a source with an alphabet of M symbols. Entropy will attain its maximum value, when the symbol probabilities are equal, i.e., when p = p = p =. = p M = Hmax = log M bits / symbol Hmax = p M log p M Hmax = p M log M M Page 9

H max = M log M log M Information rate If the source is emitting symbols at a fixed rate of r s symbols / sec, the average source information rate R is defined as R = r s. H bits / sec Illustrative Examples. onsider a discrete memoryless source with a source alphabet A = { s o, s, s } with respective probs. p 0 =, p =, p = ½. Find the entropy of the source. Solution: By definition, the entropy of a source is given by M H = p i log bits/ symbol i p i H for this example is H (A) = p i log i 0 p i Substituting the values given, we get H (A) = p o log + P log p log P o p p = log 4 + log 4 + ½ log = =.5 bits if r s = per sec, then H (A) = r s H (A) =.5 bits/sec. An analog signal is band limited to B Hz, sampled at the Nyquist rate, and the samples are quantized into 4-levels. The quantization levels Q, Q, Q, and Q 4 (messages) are assumed independent and occur with probs. P = P = and P = P =. Find the information rate of the source. 8 8 Solution: By definition, the average information H is given by H = p log + p log + p log + p log p p Substituting the values given, we get p 4 p 4 Page 0

H = log 8 + log 8 + log 8 + log 8 8 8 8 8 =.8 bits/ message. Information rate of the source by definition is R = r s H R = B, (.8) = (.6 B) bits/sec. ompute the values of H and R, if in the above example, the quantities levels are so chosen that they are equally likely to occur, Solution: Average information per message is H = 4 ( log 4) = bits/message and R = r s H = B () = (4B) bits/sec.5 Mark off Model for Information Sources Assumption A source puts out symbols belonging to a finite alphabet according to certain probabilities depending on preceding symbols as well as the particular symbol in question. Define a random process A statistical model of a system that produces a sequence of symbols stated above is and which is governed by a set of probs. is known as a random process. Therefore, we may consider a discrete source as a random process And the converse is also true. i.e. A random process that produces a discrete sequence of symbols chosen from a finite set may be considered as a discrete source. Discrete stationary Mark off process? Provides a statistical model for the symbol sequences emitted by a discrete source. General description of the model can be given as below:. At the beginning of each symbol interval, the source will be in the one of n possible states,,.. n Where n is defined as Page

m n (M) M = no of symbol / letters in the alphabet of a discrete stationery source, m = source is emitting a symbol sequence with a residual influence lasting m symbols. i.e. m: represents the order of the source. nd m = means a order source m = means a first order source. The source changes state once during each symbol interval from say i to j. The probabilityy of this transition is P ij. P ij depends only on the initial state i and the final state j but does not depend on the states during any of the preceeding symbol intervals.. When the source changes state from i to j it emits a symbol. Symbol emitted depends on the initial state i and the transition ij.. Let s, s,.. s M be the symbols of the alphabet, and let x, x, x, x k, be a sequence of th random variables, where x k represents the k symbol in a sequence emitted by the source. Then, the probability that the k th symbol emitted is s q will depend on the previous symbols x, x, x,, x k emitted by the source. i.e., P (X k = s q / x, x,, x k ) 4. The residual influence of x, x,, x k on x k is represented by the state of the system at the beginning of the k interval. th symbol i.e. P (x k = s q / x, x,, x k ) = P (x k = s q / S k ) When S k in a discrete random variable representing the state of the system at the beginning of the th k interval. Term states is used to remember past history or residual influence in the same context as the use of state variables in system theory / states in sequential logic circuits. System Analysis with regard to Markoff sources Representation of Discrete Stationary Markoff sources: o Are represented in a graph form with the nodes in the graph to represent states and the transition between states by a directed line from the initial to the final state. Page

o Transition probs. and the symbols emitted corresponding to the transition will be shown marked along the lines of the graph. A typical example for such a source is given below. A ½ P () = / P () = / P () = / B ½ A B B ½ A o It is an example of a source emitting one of three symbols A, B, and o The probability of occurrence of a symbol depends on the particular symbol in question and the symbol immediately proceeding it. o Residual or past influence lasts only for a duration of one symbol. Last symbol emitted by this source o The last symbol emitted by the source can be A or B or. Hence past history can be represented by three states- one for each of the three symbols of the alphabet. Nodes of the source o Suppose that the system is in state () and the last symbol emitted by the source was A. o The source now emits symbol (A) with probability ½and returns to state (). OR o The source emits letter (B) with probability andgoes to state () OR o The source emits symbol () with probability andgoes to state (). ½ A B To state To state State transition and symbol generation can also be illustrated using a tree diagram. Tree diagram Tree diagram is a planar graph where the nodes correspond to states and branches correspond to transitions. Transitions between states occur once every T s seconds. Along the branches of the tree, the transition probabilities and symbols emitted will be indicated.tree diagram for the source considered Page

Symbol probs. / ½ Symbols emitted A B ½ A B A B A B AA A AB A B BA B BB Symbol sequence / ½ A A B A B AA A AB A B B A B BA B BB / Initial A A B A B AA A AB A B state ½ B State at the end of the first symbol internal A B BA B BB State at the end of the second symbol internal Page 4

Use of the tree diagram Tree diagram can be used to obtain the probabilities of generating various symbol sequences. Generation a symbol sequence say AB This can be generated by any one of the following transitions: OR OR Therefore proby of the source emitting the two s ymbol sequence AB is given by P(AB) = P ( S =, S =, S = ) Or P ( S =, S =, S = ) ----- () Or P ( S =, S =, S = ) Note that the three transition paths are disjoint. Therefore P (AB) = P ( S =, S =, S = ) + P ( S =, S =, S = ) + P ( S =, S =, S = ) ----- () The first term on the RHS of the equation () can be written as P ( S =, S =, S = ) = P ( S = ) P (S = / S = ) P (S = / S =, S = ) = P ( S = ) P (S = / S = ) P (S = / S = ) Page 5

Recall the Markoff property. Transition probability to S depends on S but not on how the system got to S. Therefore, P (S =, S =, S = ) = / x ½ x Similarly other terms on the RHS of equation () can be evaluated. 4 Therefore P (AB) = / x ½ x + / x x + / x x = = 48 Similarly the probs of occurrence of other symbol sequences can be computed. Therefore, In general the probability of the source emitting a particular symbol sequence can be computed by summing the product of probabilities in the tree diagram along all the paths that yield the particular sequences of interest. Illustrative Example:. For the information source given draw the tree diagram and find the probs. of messages of lengths, and. A /4 p = ½ B P = ½ /4 Source given emits one of symbols A, B and Tree diagram for the source outputs can be easily drawn as shown. Page 6

½ ½ A ¾ A ¾ B ¾ A ¾ B ¾ B ¾ A ¾ AAA AA A B /4 AB A ¾ A B B /4 BB A ¾ AA A B /4 B A ¾ BA B BB B / 4 BBB Messages of length () and their probs A ½ x ¾ = / B ½ x ¾ = / ½ x + ½ x = = 8 8 Message of length () How may such messages are there? Seven Which are they? AA, A, B,, BB, B & A What are their probabilities? 9 Message AA : ½ x ¾ x ¾ = Message A: ½ x ¾ x = and so on. Tabulate the various probabilities Page 7

Information Theory and oding 0E55 Messages of Length () Messages of Length () Messages of Length () 9 7 A AA AAA 8 8 9 B A AA 8 8 B A 4 8 BB B A 9 AB 8 9 7 BBB 8 9 BB 8 B 8 9 BA 8 A B B A BB AA 8 8 8 8 8 9 8 9 8 Page 8

A second order Markoff source Model shown is an example of a source where the probability of occurrence of a symbol depends not only on the particular symbol in question, but also on the two symbols proceeding it. A P /8 () 8 / A 7 (AA) / 4 (AA) P () 8 7 B 7 /8 B /4 / B 8 7 P () (BB) 8 B (AB) 4 / 8 P4 () / 4 No. of states: n (M) m B 8 ; 4 M M = m = No. of symbols for which the residual influence lasts (duration of symbols) or M = No. of letters / symbols in the alphabet. Say the system in the state at the beginning of the symbols emitted by the source were BA. Similar comment applies for other states..6 Entropy and Information Rate of Markoff Sources Definition of the entropy of the source Assume that, the probability of being in state i at he beginning of the first symbol interval is the same as the probability of being in state i at the beginning of the second symbol interval, and so on. The probability of going from state i to j also doesn t depend on time, Entropy of state i is defined as the average information content of the symbols emitted from the i-th state. n H i p ij log bits / symbol ------ () j p ij Entropy of the source is defined as the average of the entropy of each state. n i.e. H = E(H i ) = p i H i ------ () j Where, Pi = the proby that the source is in state i'. Using eqn (), eqn. () becomes, Page 9

n n p H = p i ij log bits / symbol ------ () i j p ij Average information rate for the source is defined as R = r s. H bits/sec Where, r s is the number of state transitions per second or the symbol rate of the source. The above concepts can be illustrated with an example Illustrative Example:. onsider an information source modeled by a discrete stationary Mark off random process shown in the figure. Find the source entropy H and the average information content per symbol in messages containing one, two and three symbols. A /4 p = ½ B P = ½ / 4 The source emits one of three symbols A, B and. A tree diagram can be drawn as illustrated in the previous session to understand the various symbol sequences and their probabilities. A ¾ AAA ¾ A AA A A ¾ B / 4 AB ½ A ¾ A B B ¾ B / 4 BB A ¾ AA ¾ A A B / 4 B ½ A ¾ BA B ¾ B BB B ¾ B / 4 BBB Page 0

As per the outcome of the previous session we have Messages of Length () Messages of Length () Messages of Length () 9 7 A AA AAA 8 8 9 B A AA 8 8 B A 4 8 BB B A 9 AB 8 9 7 BBB 8 9 BB 8 B 8 BA A B B A BB AA 9 8 8 8 8 8 8 9 8 9 8 Page

Put i =, By definition H i is given by n H p i ij log p ij j n p H i j log p j j p log p log p p Substituting the values we get, H log log 4 / 4 4 / 4 4 = log log 4 4 4 H = 0.8 Similarly H = log 4 + log 4 = 0.8 4 4 By definition, the source entropy is given by, n H p i H i p i H i i i = (0.8) + (0.8) = (0.8) bits / symbol To calculate the average information content per symbol in messages containing two symbols. How many messages of length () are present? And what is the information content of these messages? There are seven such messages and their information content is: = log (BB I (AA) = I (BB) = log ( AA) ) i.e., I (AA) = I (BB) = log Similarly calculate for other messages and verify that they are (9 / ) =.8 bits =. 4 I (BB) = I (A) = log 5 Page

I (B) = I (A) = ( / ) b i t s Page

I () = log = = 4 bits P( / ) omputation of the average information content of these messages. Thus, we have H(two)= P i log 7 i 7 bits / sym. P i = P i. I i i Where I i = the I s calculated above for different messages of length two H Substituting the values we get, (two) 9 (.8) x (.45) (.45) (4) x (.45) x (.45) 9 x (.8) H (two).56 bits omputation of the average information content per symbol in messages containing two symbols using the relation. GN = Here, N = GN = = Average information content of the messages of length N Number of symbols in the message Average information content of the messages of length () H ( two ).56 =.8 bits / symbol Similarly compute other G s of interest for the problem under discussion viz G & G. You get them as G =.56 bits / symbol And G =.0970 bits / symbol G.8 from the values of G s calculated We note that, Page 4

G > G > G > H Statement It can be stated that the average information per symbol in the message reduces as the length of the message increases. The generalized form of the above statement If P (m i ) is the probability of a sequence m i of N symbols form the source with the average information content per symbol in the messages of N symbols defined by P(m i ) log P(m i ) i G N = N Where the sum is over all sequences m i containing N symbols, then G N is a monotonic decreasing function of N and in the limiting case it becomes. Lim G N = H bits / symbol N Recall H = entropy of the source The above example illustrates the basic concept that the average information content per symbol from a source emitting dependent sequence decreases as the message length increases. It can also be stated as, Alternatively, it tells us that the average number of bits per symbol needed to represent a message decreases as the message length increases. Problems: Example The state diagram of the stationary Mark off source is shown below Find (i) the entropy of each state (ii) The entropy of the source (iii) G, G and verify that G G H the entropy of the source. ½ P(state) = P(state) = P(state) = / A B Page 5

For the Mark off source shown, calculate the information rate. ½ ½ S ½ S S R L L R / ½ p = P = ½ P = By definition, the average information rate for the source is given by Solution: R = r s. H bits/sec ------ () Where, r s is the symbol rate of the source And H is the entropy of the source. To compute H alculate the entropy of each state using, n H i p ij log bits / sym p ----- () j ij For this example, H i p j ij log ; p i,, ------ () ij Put i = H i p j log p j j = - p log p p log p p log p Substituting the values, we get H = - x log - log - 0 = + log () + log () H = bit / symbol Put i =, in eqn. () we get, H = - p j j log p j i.e., H = - p log p p log p p log p Substituting the values given we get, Page 6

H = - 4 log log log 4 4 4 = + log 4 + log + log 4 4 4 = log + + log 4 H =.5 bits/symbol Similarly calculate H and it will be H = bit / symbol With H i computed you can now compute H, the source entropy, using. H = Pi i Hi = p H + p H + p H Substituting the values we get, H = x + x.5 + x 4 4.5 = + + 4 4.5.5 = + = =.5 bits / symbol H =.5 bits/symbol Now, using equation () we have Source information rate = R = r s.5 Taking r s as one per second we get R = x.5 =.5 bits / sec Page 7

Review questions: () Explain the terms (i) Self information (ii) Average information (iii) Mutual Information. () Discuss the reason for using logarithmic measure for measuring the amount of information. () Explain the concept of amount of information associated with message. Also explain what infinite information is and zero information. (4) A binary source emitting an independent sequence of 0 s and s with pro babilities p and (- p) respectively. Plot the entropy of the source. (5) Explain the concept of information, average information, information rate and redundancy as referred to information transmission. (6) Let X represents the outcome of a single roll of a fair dice. What is the entropy of X? (7) A code is composed of dots and dashes. Assume that the dash is times as long as the dot and has one-third the probability of occurrence. (i) alculate the information in dot and that in a dash; (ii) alculate the average information in dot-dash code; and (iii) Assume that a dot lasts for 0 ms and this same time interval is allowed between symbols. alculate the average rate of information transmission. (8) What do you understand by the term extension of a discrete memory less source? Show that the entropy of the nth extension of a DMS is n times the entropy of the original source. (9) A card is drawn from a deck of playing cards. A) You are informed that the card you draw is spade. How much information did you receive in bits? B) How much information did you receive if you are told that the card you drew is an ace? ) How much information did you receive if you are told that the card you drew is an ace of spades? Is the information content of the message ace of spades the sum of the information contents of the messages spade and ace? (0) A block and white TV picture consists of 55 lines of picture information. Assume that each consists of 55 picture elements and that each element can have 56 brightness levels. Pictures are repeated the rate of 0/sec. alculate the average rate of information conveyed by a TV set to a viewer. () A zero memory source has a source alphabet S= {S, S, S} with P= {/, /4, /4}. Find the entropy of the source. Also determine the entropy of its second extension and verify that H (S ) = H(S). () Show that the entropy is maximum when source transmits symbols with equal probability. Plot the entropy of this source versus p (0<p<). () The output of an information source consists OF 8 symbols, 6 of which occurs with probability of / and remaining occur with a probability of /4. The source emits 000 symbols/sec. assuming that the symbols are chosen independently; find the rate of information of the source. A BB AA Page 8

Unit - : SOURE ODING Syllabus: Encoding of the source output, Shannon s encoding algorithm. ommunication hannels, Discrete communication channels, ontinuous channels. Text Books: Digital and analog communication systems, K. Sam Shanmugam, John Wiley, 996. Reference Books: Digital ommunications - Glover and Grant; Pearson Ed. nd Ed 008 Page 9

Unit - : SOURE ODING. Encoding of the Source Output: Need for encoding Suppose that, M messages = N, which are equally likely to occur. Then recall that average information per messages interval in H = N. Say further that each message is coded into N bits, Average information carried by an individual bit is = H bit N If the messages are not equally likely, then H will be les s than N and each bit will carry less than one bit of information. Is it possible to improve the situation? Yes, by using a code in which not all messages are encoded into the same number of bits. The more likely a message is, the fewer the number of bits that should be used in its code word. Source encoding Process by which the output of an information source is converted into a binary sequence. Symbol sequence emitted by the information source Input Source Encoder Output : a binary sequence Where, G N = If the encoder operates on blocks of N symbols, t he bit rate of the encoder is given as Produces an average bit rate of G N bits / symbol p(m N i ) log p(m i ) p(m i ) = Probability of sequence m i of N symbols from the source, Sum is over all sequences m i containing N symbols. G N in a monotonic decreasing function of N and Lim N GN = H bits / symbol Performance measuring factor for the encoder oding efficiency: η c i Definition of ηc = Source inf ormation rate Average output bit rate of the encoder η c = H(S) ^ H N Page 0

. Shannon s Encoding Algorithm: Formulation of the design of the source encoder an be formulated as follows: One of q possible messages A message INPUT SourceOUTPUT encoder A unique binary code word c i of length n i bits for the message m i N-symbols Replaces the input message symbols by a sequence of binary digits q messages : m, m,..m i,.., m q Probs. of messages : p, p,....p i,..., p ni : an integer The objective of the designer q To find n i and c i for i =,,..., q such that the average number of bits per symbol H N used in the coding scheme is as close to G N as possible. ^ ^ Where, H = q n p i i N q N i and G N = pi log N i p i i.e., the objective is to have ^ H N G N as closely as possible The algorithm proposed by Shannon and Fano Step : Messages for a given block size (N) m, m,... m q are to be arranged in decreasing order of probability. Step : The number of n i (an integer) assigned to message m i is bounded by log n i log p i p i Step : The code word is generated from the binary fraction expansion of F i defined as Page

i F i = p k, with F taken to be zero. k Step 4: hoose n i bits in the expansion of step () Say, i =, then if n i as per step () is = and If the F i as per stop () is 0.000 Then step (4) says that the code word is: 00 for message () With similar comments for other messages of the source. The codeword for the message m i is the binary fraction expansion of F i upto n i bits. i.e., i = (Fi)binary, ni bits Step 5: Design of the encoder can be completed by repeating the above steps for all the messages of block length chosen. Illustrative Example Design of source encoder for the information source given, A /4 p = ½ B P = ½ / 4 ompare the average output bit rate and efficiency of the coder for N =, &. Solution: The value of N is to be specified. ase I: Say N = Block size Step : Write the tree diagram and get the symbol sequence of length =. Tree diagram for illustrative example () of session () Page

A ¾ AAA A ¾ A AA A B / 4 AB ¾ ½ A ¾ A B B ¾ B /4 BB A ¾ AA ¾ A A B / 4 B ½ A ¾ BA B ¾ B BB B ¾ B / 4 BBB From the previous session we know that the source emits fifteen (5) distinct three symbol messages. They are listed below: Messages AAA AA A AB AA BBB BB B BA A B B A BB Probability 7 9 9 7 9 9 9 9 88 8 8 8 8 8 8 8 8 8 8 8 8 8 Step : Arrange the messages m i in decreasing order of probability. Messages m i AAA BBB AA BB BA BB AA AB B A B A B A Probability 7 7 9 9 9 9 9 9 p i 88 8 8 8 8 8 8 8 8 8 8 8 8 8 Step : ompute the number of bits to be assigned to a message m i using. Log n i log ; i =,,. 5 p i p i Say i =, then bound on n i is 8 8 log n log 7 7 Page

i.e.,.45 < n <.45 Recall n i has to be an integer n can be taken as, n = Step 4: Generate the codeword using the binary fraction expansion of F i defined as i F i = p k ; with F = 0 k Say i =, i.e., the second message, then calculate n you should get it as bits. p Next, calculate F = p k k 7. Get the binary fraction expansion of 7. You k k 8 8 get it as : 0.000 Step 5: Since n i =, truncate this exploration to bits. The codeword is: 00 Step 6: Repeat the above steps and complete the design of the encoder for other messages listed above. The following table may be constructed Message Binary expansion of ode word pi Fi ni m i F i c i AAA 7 0.00000 000 7 8 BBB 7/8.000 00 8 9 AA 8 54/8 4 000 00 9 BB 8 6/8 4 0 0 9 BA 8 9 7/8 4.0000 00 8 BB 9 8/8 4 0000 00 8 9 AA 90/8 4 000 0 8 AB 8 99/8 4 000 00 Page 4

B 08/8 6 00 00 8 A 8 /8 6 0 0 B 8 4/8 6 000 00 A 8 7/8 6 00 00 8 B 0/8 6 000 00 8 A /8 6 0 0 6/8 6 0 the average number of bits per symbol used by the encoder Average number of bits = n i p i Substituting the values from the table we get, Average Number of bits =.89 Average Number of bits per symbol = H Here N =, ^ H.89 =. bits / symbol State entropy is given by n ^ N n n i i N Hi = p ij j log p ij bits / symbol Here number of states the source can be in are two i.e., n = Hi = pij j log p ij Say i =, then entropy of state () is Hi = pij j log p j p log p p Substituting the values known we get, log p Page 5

H = 4 x log / 4 4 log / 4 4 = x log log 4 4 4 H = 0.8 Similarly we can compute, H as H = p log j Substituting we get, p p p log p H = x log log 4 / 4 4 / 4 x log 4 4 = log 4 4 H = 0.8 Entropy of the source by definition is n H = p i H i ; j th P i = Probability that the source is in the i state. H = p i H i ; = ph + ph i Substituting the values, we get, H = ½ x 0.8 + ½ x 0.8 = 0.8 H = 0.8 bits / sym. Page 6

What is the efficiency of the encoder? By definition we have η c = H x 00 H x 00 0.8 x 00 6.4% ^ ^ H H. η c for N = is, 6.4% ase II Say N = The number of messages of length two and their probabilities (obtai ned from the tree diagram) can be listed as shown in the table. Given below ^ alculate H N and verify that it is.44 bits / sym. Encoder efficiency for this case is H η c = ^ x00 H N Substituting the values we get, η c = 56.4% N = Message pi ni ci AA 9/ 00 BB 9/ 0 A / 4 00 B / 4 00 B / 4 00 A / 4 0 / 4 ase III: N = Proceeding on the same lines you would see that N = Message p i n i c i A /8 00 B /8 0 /4 Page 7

^ H = bits / symbol and η c = 40.56% onclusion for the above example We note that the average output bit rate of the encoder H N decreases as N increases and ^ hence the efficiency of the encoder increases as N increases. Operation of the Source Encoder Designed: I. onsider a symbol string ABBAAABBB at the encoder input. If the encoder uses a block size of, find the output of the encoder. A B / 4 / 4 SOURE ENODER OUTPUT p = ½ P = ½ INFORMN. SOURE Recall from the outcome of session (5) that for the source given possible three symbol sequences and their corresponding code words are given by Message mi n i AAA 000 BBB 00 AA 4 00 BB 4 0 BA 4 00 BB 4 00 AA AB 4 00 odeword B 6 00 A 6 0 B 6 00 A 6 00 B 6 00 A 6 0 ci Determination of the code words and their size as illustrated in the previous session Page 8

6 Output of the encoder can be obtained by replacing successive groups of three input symbols by the code words shown in the table. Input symbol string is AB BA AA BBB { 00 00 0 0 Encoded version of the symbol string II. If the encoder operates on two symbols at a time what is the output of the encoder for the same symbol string? Again recall from the previous session that for the source given, different two-symbol sequences and their encoded bits are given by N = Message No. of bits c i mi ni AA 00 BB 0 A 4 00 B 4 00 B 4 00 A 4 0 4 For this case, the symbol string will be encoded as A BB A AA B BB { { { { { { 000000 00 0 Encoded message DEODING table. How is decoding accomplished? By starting at the left-most bit and making groups of bits with the codewords listed in the ase I: N = i) Take the first bit group viz 0 why? ii) heck for a matching word in the table. iii) If no match is obtained, then try the first 4-bit group 00 and again check for the matching word. iv) On matching decode the group. Page 9

NOTE: For this example, step (ii) is not satisfied and with step (iii) a match is found and the decoding results in AB. Repeat this procedure beginning with the fifth bit to decode the remaining symbol groups. Symbol string would be AB BA AA BA onclusion from the above example with regard to decoding It is clear that the decoding can be done easily by knowing the codeword lengths apriori if no errors occur in the bit string in the transmission process. The effect of bit errors in transmission Leads to serious decoding problems. Example: For the case of N =, if the bit string, 0000000 was received at the decoder input with one bit error as 000000 What then is the decoded message? Solution: Received bit string is 0 0 0 0 0 Error bit BAAB ----- () For the errorless bit string you have already seen that the decoded symbol string is AB BA AA BA ----- () () and () reveal the decoding problem with bit error. Illustrative examples on source encoding. A source emits independent sequences of symbols from a source alphabet containing five symbols with probabilities 0.4, 0., 0., 0. and 0.. i) ompute the entropy of the source ii) Design a source encoder with a block size of two. Solution: Source alphabet = (s, s, s, s 4, s 5 ) (i) Probs. of symbols = p, p, p, p 4, p 5 = 0.4, 0., 0., 0., 0. Substituting we get, Entropy of the source = H = p i log p i bits / symbol i H = - [p log p + p log p + p log p + p 4 log p 4 + p 5 log p 5 ] 5 = - [0.4 log 0.4 + 0. log 0. + 0. log 0. + 0. log 0. + 0. log 0.] Page 40

H =. bits/symbol (ii) Some encoder with N = Different two symbol sequences for the source are: (s s ) AA ( ) BB ( ) ( ) DD ( ) EE (s s ) AB ( ) B ( ) D ( ) DE ( ) ED (s s ) A ( ) BD ( ) E ( ) D ( ) E A total of 5 messages (s s 4 ) AD ( ) BE ( ) B ( ) DB ( ) EB (s s 5 ) AE ( ) BA ( ) A ( ) DA ( ) EA Arrange the messages in decreasing order of probability and determine the number of bits n i as explained. Proby. No. of bits Messages pi AA 0.6 AB 0.08 A 0.08 B 0.08 BA 0.08 A 0.08... 0.04... 0.04... 0.04... 0.04... 0.04... 0.04... 0.04... 0.0... 0.0... 0.0... 0.0... 0.0... 0.0... 0.0... 0.0... 0.0... 0.0... 0.0... 0.0 ni 4 5 6 7 ^ alculate H = ^ Substituting, H =.6 bits/symbol. A technique used in constructing a source encoder consists of arranging the messages in decreasing order of probability and dividing the message into two almost equally probable Page 4

groups. The messages in the first group are given the bit O and the messages in the second group are given the bit. The procedure is now applied again for each group separately, and continued until no further division is possible. Using this algorithm, find the code words for six messages occurring with probabilities, /4, /, /4, /6, /, / Solution: () Arrange in decreasing order of probability m5 / 0 0 m6 / 0 m4 /6 0 m / 0 m /4 0 m /4 st division nd division rd division 4 th division ode words are m = 0 m = 0 m = m 4 = 0 m 5 = 00 m 6 = 0 Example () a) For the source shown, design a source encoding scheme using block size of two symbols and variable length code words ^ b) alculate H used by the encoder c) If the source is emitting symbols at a rate of 000 symbols per second, compute the output bit rate of the encoder. ½ ½ S ½ S S R L L R / ½ p = P = ½ P = Page 4

Solution (a). The tree diagram for the source is ½ LL (/6) ½ LS (/6) LS (/6) ½ ½ SL (/6) ½ ½ SS (/8) ¾ ½ SR (/6) ½ RS (/8) ½ SL (/) ½ SS (/6) SR (/) ½ LL (/6) SL (/) SS (/6) ½ SR (/) ½ RS (/6) ½ RR (/6) ½ LL LS SL SS SR RS RR Different Messages of Length Two. Note, there are seven messages of length (). They are SS, LL, LS, SL, SR, RS & RR.. ompute the message probabilities and arrange in descending order. 4. ompute n i, F i. F i (in binary) and c i as explained earlier and tabulate the results, with usual notations. Message m i p i n i F i F i (binary) c i SS /4 0.0000 00 LL /8 /4.000 00 LS /8 /8.00 0 SL /8 4/8.000 00 SR /8 5/8.00 0 RS /8 6/8.00 0 RR /8 7/8.0 Page 4

G = 7 p log i p i =.75 bits/symbol i 7 ^ (b) H p n = i i i =.75 bits/symbol ^ Recall, H N G N + N ; Here N = ^ H G + (c) Rate = 75 bits/sec.. SOURE ENODER DESIGN AND OMMUNIATION HANNELS The schematic of a practical communication system is shown. hannel Encoder Electrical ommunication channel OR Transmissi on medium Noise b hannel c d e f g hannel h Encoder Data ommunication hannel (Discrete) oding hannel (Discrete) Modulation hannel (Analog) Transmitter Physical channel Receiver Σ Demodulator Decoder Fig. : BINARY OMMN. HANNEL HARATERISATION ommunication hannel ommunication hannel carries different meanings and characterizations depending on its terminal points and functionality. (i) Portion between points c & g: Referred to as coding channel Accepts a sequence of symbols at its input and produces a sequence of symbols at its output. ompletely characterized by a set of transition probabilities p ij. These probabilities will depend on the parameters of () The modulator, () Transmiss ion media, () Noise, and (4) Demodulator Page 44

A discrete channel (ii) Portion between points d and f: Provides electrical connection between the source and the destination. The input to and the output of this channel are analog electrical waveforms. Referred to as continuous or modulation channel or simply analog channel. Are subject to several varieties of impairments Due to amplitude and frequency response variations of the channel within the passband. Due to variation of channel characteristics with time. Non-linearities in the channel. hannel can also corrupt the signal statistically due to various types of additive and multiplicative noise..4 Mathematical Model for Discrete ommunication hannel: hannel between points c & g of Fig. () The input to the channel? A symbol belonging to an alphabet of M symbols in the general case is the input to the channel. he output of the channel A symbol belonging to the same alphabet of M input symbols is the output of the channel. Is the output symbol in a symbol interval same as the input symbol during the same symbol interval? The discrete channel is completely modeled by a set of probabilities th Probability that the input to the channel is the i symbol of the alphabet. p t i (i =,,. M) and p ij Probability that the i th symbol is received as the j th symbol of the alphabet at the output of the channel. Discrete M-ary channel If a channel is designed to transmit and receive one of M possibl e symbols, it is called a discrete M-ary channel. discrete binary channel and the statistical model of a binary channel Page 45

Shown in Fig. (). O P00 O Transmitted P0 digit X P0 p Received digit X p ij = p(y = j / X=i) t = p(x = o); p p o t P(X = ) p r = p(y = o); p r P(Y = ) o p oo + p o = ; p + p 0 = Fig. () Its features X & Y: random variables binary valued Input nodes are connected to the output nodes by four paths. (i) Path on top of graph : Represents an input O appearing correctly as O as the channel output. (ii) Path at bottom of graph : (iii) Diogonal path from 0 to : Represents an input bit O appearing incorrectly as at the channel output (due to noise) (iv) Diagonal path from to 0 : Similar comments Errors occur in a random fashion and the occurrence of errors can be statistically modelled by assigning probabilities to the paths shown in figure (). A memory less channel: If the occurrence of an error during a bit interval does not affect the behaviour of the system during other bit intervals. Probability of an error can be evaluated as p(error) = P e = P (X Y) = P (X = 0, Y = ) + P (X =, Y = 0) P e = P (X = 0). P (Y = / X = 0) + P (X = ), P (Y = 0 / X= ) an also be written as, P e = p t p 0 + p t p 0 ------ () o We also have from the model Page 46

p o r po t p00 p t. p0, and p r po t p0 p t p ----- () Binary symmetric channel (BS) If, p 00 = p = p (say), then the channel is called a BS. Parameters needed to characterize a BS Model of an M-ary DM. p p p t i p r j = p(x = i) = p(y = j) p = p(y = j / X = i) ij INPUT X j OUTPUT Y i pij pim M M Fig. () This can be analysed on the same lines presented above for a binary channel. M r t p j p i i p ij ----- () The p(error) for the M-ary channel Generalising equation () above, we have P(error) P p t M M p e i i ij ----- (4) j j i In a DM how many statistical processes are involved and which are they? Two, (i) Input to the channel and (ii) Noise Page 47

Definition of the different entropies for the DM. i) Entropy of INPUT X: H(X). M HX p t log p i t bits / symbol ----- (5) i i ii) Entropy of OUTPUT Y: H(Y) M HY p r log p i r bits / symbol ----- (6) i i iii) onditional entropy: H(X/Y) M M HX / Y P (X i, Y j) log p (X i / Y j)bits/symbol - (7) i j iv) Joint entropy: H(X,Y) M M HX, Y P (X i, Y j) log p (X i, Y j)bits/symbol i i - (8) v) onditional entropy: H(Y/X) M M H (Y/X) P (X i, Y j) log p (Y j / X i)bits/symbol i i - (9) Representation of the conditional entropy H(X/Y) represents how uncertain we are of the channel input x, on the average, when we know the channel output Y. Similar comments apply to H(Y/X) vi) Joint Entropy H(X, Y) H(X) H(Y/X) H(Y) H(X/Y) - (0) ENTROPIES PERTAINING TO DM To prove the relation for H(X Y) By definition, we have, M M H(XY) = p ( i, j) log p ( i, j) i j Page 48

i associated with variable X, white j with variable Y. H(XY) = p ( i) p ( j / i) log p ( i) p ( j / i) ij = p ( i) p ( j / i) log p ( i) ij p ( i) p ( j / i) log p ( i) Say, i is held constant in the first summation of the first t erm on RHS, then we can write H(XY) as H(XY) = p ( i) log p ( i) p ( ij) log p ( j / i) H(XY) H(X) H(Y / X) Hence the proof.. For the discrete channel model shown, find, the probability of error. 0 p 0 Since the channel is symmetric, p(, 0) = p(0, ) = ( - p) X p Received Transmitted digit digit P(error) = P e = P(X Y) = P(X = 0, Y = ) + P (X =, Y = 0) Y Proby. Of error means, situation when X Y = P(X = 0). P(Y = / X = 0) + P(X = ). P(Y = 0 / X = ) Assuming that 0 & are equally likely to occur P(error) = x ( p) + ( p) = - p + - p P(error) = ( p). A binary channel has the following noise characteristics: Page 49

X P(Y/X) Y 0 0 / / / / If the input symbols are transmitted with probabilities ¾ & respectively, find H(X), H(Y), H(XY), H(Y/X). Solution: Given = P(X = 0) = ¾ and P(Y = ) H(X) = p i log p i log 4 log 4 0.878 bits / symbol i 4 4 ompute the probability of the output symbols. hannel model is- x y x y p(y = Y ) = p(x = X, Y = Y ) + p(x = X, Y = Y ) ----- () To evaluate this construct the p(xy) matrix using. y y P(XY) = p(x). p(y/x) =.. x 4 4 4.. 4 4 x 6 ----- () P(Y = Y ) = 7 -- Sum of first column of matrix () Similarly P(Y ) = 5 sum of nd column of P(XY) onstruct P(X/Y) matrix using Page 50