Another example is to estimate the percentile of a given value within the distribution. The following code computes the ECDF of a set of data and uses it to estimate the 90th percentile:python import numpy as np from statsmodels.distributions.empirical_distribution import ECDF # generate a sample of random numbers data = np.random.normal(loc=0, scale=1, size=100) # compute the ECDF ecdf = ECDF(data) # estimate the 90th percentile percentile = ecdf(0.9) print(f'The 90th percentile is {percentile:.2f}.') ``` In both examples, the statsmodels.distributions.empirical_distribution package is used to compute the ECDF of a set of data.