Hi,
I have this data set consisting of some values for which I want to get the distribution for through random sampling. How would could I do that in Python. I'm new to Python and don't know where to start. Is there a python package that could do this, i.e. give me the distribution of my 'population' data set?

Sofia

You could perhaps start with the statistics package in scipy: scipy.stats. Among other things, it contains classical tests like chisquared to test a sample against a known distribution (you must know some statistics to use this). See here http://docs.scipy.org/doc/scipy/reference/tutorial/stats.html

I have looked into that package, but I still was looking on how to do it through some random sampling. And that takes on a uniform distribution. I would like to end up with the probability for my data sets automatically. I'm just not sure on what to use so that I can be able to send in my set of data into the random sample.

I have looked into that package, but I still was looking on how to do it through some random sampling. And that takes on a uniform distribution. I would like to end up with the probability for my data sets automatically. I'm just not sure on what to use so that I can be able to send in my set of data into the random sample.

Your question is not precise enough, can you describe your input and what you're expecting as output ? For example there is a snippet here to put data into bins http://www.daniweb.com/software-development/python/code/373120 . Can it be of any help ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.