In goodness of fit tests (COD, R2, X2) with probability density functions, we need and use their CDFs. With wind speed, another pdf is by Maximum Entropy Principle or Method, of the form: f(vi)=exp(-a0, a1*vi - a2*vi^2 - a3*vi^3). where a0, a1, a2 and a3 are Langrange multipliers to be determined [THAT I CAN DO!!!]. vi are wind speeds, with some repetive, in the discrete sense. And if continuous: f(v)=exp(-a0, a1*v - a2*v^2 - a3*v^3). In probability theory, a normalized PDF is such that: I=Integral(f(v))dv = 1; limits from lowest (v=0) to highest (v=maxv). Furthermore, the CDF is given by: CDF=F(v)=1-I I used "Green Energy: Basic Concepts and Fundamentals" by Xianguo Li: Pages 82-83 for all of the above. (And many in the literature) Also, I used the same data (as he did) provided by Gary Johnson (Wind Book) to calibrate my computations for the Lagrange multipliers with his (Prof Li's) and obtained the EXACT curve for Kansas City on page 86. My problem now is how to obtain the similar curve fig 3.4 on page 88, for the MEP, only. Any code, and in any programming language, shall be a big bonus for me. NB: I used numerical integration of f(v) in vain!