Description
I have the answers but I need the tutor to check and make different versions of the codes but it should run the same results
the tutor should be very good in python
q1- Consider the message “Mississippi River.” What is the entropy of the message?
Here is a proposed coding scheme
Letter
Symbol
I
01
S
10
P
010
R
011
V
000
E
001
_ (space)
110
M
111
What is the entropy of the message coded using this system?
Is this system an optimum prefix-free code, explain why. If it is not, explain why and provide a table with an optimum code and give the entropy of the new code.
Upload a file with your response.
Q2- Scenario Setup
Message (X): A binary message where ‘0’ and ‘1’ are equally likely. So,
p(X=0)=0.5 and p(X=1)=0.5.
Noisy Channel:
When ‘0’ is sent, there’s a p chance the receiver gets ‘0’ and a (1-p) chance the receiver gets ‘1’.
When ‘1’ is sent, there’s a 95% chance the receiver gets ‘1’ and a 5% chance the receiver gets ‘0’.
What value of p is needed to give a mutual information of 0.75 bits? Explain what a mutual information of 0.75 bits means.
q3-
Odds of 2:1 mean that I wager $1 I get my $1 wager back plus $2. Even odds (1:1) means that a horse has a 50% chance of winning.
The Kelly fraction for a horse race is given by
f* = (bp-q) / b
Where:
f* = the optimal bet size as a percentage of your bankroll
b = the decimal odds offered by the bookmaker
p = the probability of winning
q = the probability of losing (1-p)
Find the Kelly fraction given the following conditions
Horse
Probability of Win
Odds
A
0.5
1
B
0.4
2
C
0.1
10
Simulate 10 races by generating a winner using the probabilities and making bets based on the Kelly fraction.
After each race report the result like this where X,Y,Z are the dollar amounts of the bets on each horse.
Bet made: Horse A $X, Horse B $Y, Horse C $Z
Race 1 Winner: Horse B
Resulting bankroll: $109
Q4-Slides 44 and 45 of slide deck 10 detail the construction of G1, G2 and the taps used for each space vehicle.
The digital output is all 1’s and 0’s. However when transmitted with BPSK all of the 1’s become 1s and all of the 0’s become -1s. Generate the transmitted BPSK sequence of 1023 bits for space vehicle 20.
(The slides are provided in the attachment)