@@ -85,7 +85,7 @@ def surprise(y: ArrayLike, what_prior: str = 'dist', memory: float = 0.2, num_gr
8585 store [i ] = p
8686 elif what_prior == 'T1' :
8787 # uses one-point correlations in memory to inform the next point
88- # estimate transition probabilites from data in memory
88+ # estimate transition probabilities from data in memory
8989 # find where in memory this has been observbed before, and preceded it
9090 memory_data = yth [rs [0 , i ] - memory :rs [0 , i ]]
9191 inmem = np .where (memory_data [:- 1 ] == yth [rs [0 , i ] - 1 ])[0 ]
@@ -124,7 +124,7 @@ def surprise(y: ArrayLike, what_prior: str = 'dist', memory: float = 0.2, num_gr
124124 out ['min' ] = np .nan
125125
126126 # Calculate statistics
127- out ['max' ] = np .max (store ) # maximum amount of information you cna gain in this way
127+ out ['max' ] = np .max (store ) # maximum amount of information you can gain in this way
128128 out ['mean' ] = np .mean (store )
129129 out ['sum' ] = np .sum (store )
130130 out ['median' ] = np .median (store )
@@ -587,7 +587,7 @@ def transition_matrix(y: ArrayLike, how_to_cg: str = 'quantile',
587587 num_groups : int, optional
588588 number of groups in the course-graining. Default is 2.
589589 tau : int or str, optional
590- analyze transition matricies corresponding to this lag. We
590+ analyze transition matrices corresponding to this lag. We
591591 could either downsample the time series at this lag and then do the
592592 discretization as normal, or do the discretization and then just
593593 look at this dicrete lag. Here we do the former. Can also set tau to 'ac'
0 commit comments