How to run statistics Cumulative Distribution Function and Probability Density Function using SciPy?

给你一囗甜甜゛ 提交于 2019-12-05 01:19:12

问题


I am new to Python and new to SciPy libraries. I wanted to take some ques from the experts here on the list before dive into SciPy world.

I was wondering if some one could provide a rough guide about how to run two stats functions: Cumulative Distribution Function (CDF) and Probability Distribution Function (PDF).

My use case is the following: I have a sampleSpaceList [] which have 1000 floating point values. When a new floating point value is generated in my program, I would like to run both CDF and PDF on the sampleList for it and get the probability of value less or equal for CDF and probability distribution for PDF.

some more information

Basically, in my program there are events which can either succeed or fail. If they succeed, then I calculate a event-ratio for that event and add to my sampleSpaceList until it reaches a threshold of 1000. Once the threshold is achieved, then for any next event-ratio; I would like to get a probability that whether that event-ratio would succeed or not in my system.

What I basically would like to get is the probability of success for a particular event ratio.

I am not very sure whether CDF or PDF will be relative to my problem so that 's why I wanted to learn how to use both but at any given moment, I will be only using either CDF or PDF to get a probability of event-ratio being successful.


回答1:


See this article: Probability distributions in SciPy.



来源:https://stackoverflow.com/questions/1154378/how-to-run-statistics-cumulative-distribution-function-and-probability-density-f

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!