Skip to main content

Package that implements the isotonic estimator for Wicksell's problem.

Project description

This package implements the isotonic estimator for Wicksell's problem given in the paper Adaptive and Efficient Isotonic Estimation in Wicksell's Problem.

How to use the package? After installing the package via the usual command line pip install, the user user can import the package using the lines of code:

from isotonic_estimator_lib import isotonic_estimator

then, having a vector of observed samples Z, the user can obtain the isotonic estimator together with its plot by running:

max_xs = max(Z)
res = isotonic_estimator.estimator(max_xs,Z)

where max_xs is needed for plotting purposes only. The resulting estimated cdf F of the hidden radii distribution is now stored into res. The resulting plot should look as follows:

We have also designed a test application in tkinter which is included in the package and where the user can visualize the performance of the isotonic estimator. After running the following code:

from isotonic_estimator_lib import tester_quality
tester_quality.tester()

a pop-up window will open asking to input a test hidden cdf F which can be chosen between the following set of distributions: "gamma, chi, betaprime, pareto, lognormal, truncnorm, arcsine, fatiguelife, weibull". The input is case sensitive. If the user gives non acceptable inputs, the tester will automatically produce an error. The suggested number of samples is 200, and it is not recommended to choose a value higher than 1000. The tester will produce some plots that illustrate the performance of the isotonic estimator. The resulting plot should look like this:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isotonic_estimator_lib-0.0.7.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

isotonic_estimator_lib-0.0.7-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page