0
I write my thesis on the topic of texture analysis and with the help of MATLAB I made some calculations, including on entropy. In the explanation of the formulas, I used the entropy formula used by the MATLAB and I was asked by the judges why I use a logarithm base 2 instead of natural logarithm.
Based on my previous searches, I got the answer that MATLAB uses the logarithm base 2 because information was thought in terms of bits, hence the magical number, 2.
So, my question is, why MATLAB use the base 2 log over natural log? What is the is the advantage of log 2 over log e in this case?
I think this can answer your question. https://youtu.be/2s3aJfRr9gE?t=284 Claude Shannon was using bits (log base 2) because he was using the uncertainty of a fair coin flip