I have dataset which somewhat follows an exponentional decay
df_A
Period Count
0 1600
1 894
2 959
3 773
4 509
5 206
I want to calculate the decay rate by using 2 methods as I'm expecting both to give the same result, however, I get different results?
This is the first method:
decay_rate1 = (10**(log(df_A['Count'].iloc[5]/df_A['Count'].iloc[0]) / 5)) - 1
This is the second method:
decay_rate2 = np.log(df_A['Count'].iloc[0])/log(df_A['Count'].iloc[5]
What is the correct method of calculating the decay rate of a dataset?