Question: Write a function in R for computing entropy using log20. Generate at least 20 probability values between 0.025 and 1 using R's seq) function and

Write a function in R for computing entropy using log20. Generate at least 20 probability values between 0.025 and 1 using R's seq) function and compute entropies using your function. Plot these probabilities on an x-axis and the entropies on a y-axis. Compute the maximum entropy among your probabilities and identify that point on your plot using color and text. Write a function in R for computing entropy using log20. Generate at least 20 probability values between 0.025 and 1 using R's seq) function and compute entropies using your function. Plot these probabilities on an x-axis and the entropies on a y-axis. Compute the maximum entropy among your probabilities and identify that point on your plot using color and text
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
