For a random variable sequence, first I convert it to a numpy ndarray. Then i want to calculate the entropy rate? Have good ways to do it? not entropy.
Besides, the variable generated by model is random. To simply, I create a list, then, convert it to a numpy ndarray.
import numpy as np
list_num = [4,6,2,8,1,0,10,2,9]
a = np.asarray(list_num)
a.shape
#compute the extropy rate of a