If the input symbols to a communication channel represent the outcomes of a chance event…