I want to calculate the value for a given probability using the st.gumbel_r.ppf(). I'm comparing it with the analytical solution and it is giving me completely different results, anyone knows why? I obtained the values for the scale and location using the moment of methods
P_class = [0.14285714, 0.28571429, 0.42857143, 0.57142857, 0.71428571, 0.85714286, 0.999999]
u = 8.590342451210152
alpha = 0.1841827435642898
h_class1 = st.gumbel_r.ppf(P_class, scale = u, loc = alpha)
h_class = u-np.log(-np.log(P_class))/alpha
Results
h_class1 = [ -5.53466431, -1.7516637 , 1.6076281 , 5.17091797, 9.54112426, 16.24661736, 118.86414528]
h_class = [4.97583548, 7.36682128, 9.49000861, 11.74212971, 14.50424958, 18.74235061, 83.60013865]
I want to get the same h_class results when using the scipy function
