jueves, 14 de febrero de 2013

Noisy channel

Python creates certain number words that come as a parameter, then sends the same word many times to see the probability of success or failure
Python:


In the shell script I do repetitions of words of a certain length, also i change the length of the word and the probability of 0 and 1, then in an awk script I can get the standard deviation and the averange, and send this data to the final file and process the data.

Shell script


In awk script I get the average and standard deviation
AWK script


With gnuplot I produce a graph to know what happened in the experiment.


And some plots that can help us to underestand the results.

q0 = 0.1
q1 = 0.1


 After I implemented more functions to analyze probabilities of 0 and 1 (q0, q1), and also compute the standard deviation.


While the length of the chain grows the probability of success is weakened and if the frequency of 0 is high but the probability of success to 0 It is not as high like the probability of 1 then while the frequencies of 0 going up so these will lose the success rate because In longer words are more failures.

1 comentario:

  1. Your readers would probably appreciate having the figure legends and the code commentary in English as well ;) 5 pts for the code, and in the report, having written it in English compensates the spelling errors and it's also worth 5 pts.

    ResponderEliminar