<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Probability distributions in SciPy</title>
	<atom:link href="http://www.johndcook.com/blog/2009/07/20/probability-distributions-scipy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johndcook.com/blog/2009/07/20/probability-distributions-scipy/</link>
	<description>The blog of John D. Cook</description>
	<lastBuildDate>Sat, 11 Feb 2012 01:10:06 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: nick</title>
		<link>http://www.johndcook.com/blog/2009/07/20/probability-distributions-scipy/comment-page-1/#comment-21490</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Tue, 21 Jul 2009 17:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=2699#comment-21490</guid>
		<description>I&#039;ve been meaning to see how stat packages organize their distribution families. I thought it would be exactly this, but didn&#039;t want to be hasty. Thanks so much, now I know the right way to proceed in my application!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been meaning to see how stat packages organize their distribution families. I thought it would be exactly this, but didn&#8217;t want to be hasty. Thanks so much, now I know the right way to proceed in my application!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johndcook.com/blog/2009/07/20/probability-distributions-scipy/comment-page-1/#comment-21461</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 20 Jul 2009 20:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=2699#comment-21461</guid>
		<description>Omer: You can calculate the sample mean and sample variance no matter what distribution your data comes from. However, if your data comes from a normal distribution, the sample mean and sample variance are the best estimators for the population parameters in a technical sense. 

Does it look like your data follow a normal distribution? If not, what kind of distribution do they follow? That seems to be the first thing to settle. If you have questions as to the appropriate distribution for your data, perhaps we should continue this discussion via email. See the &quot;About&quot; tab at the top for my contact info.</description>
		<content:encoded><![CDATA[<p>Omer: You can calculate the sample mean and sample variance no matter what distribution your data comes from. However, if your data comes from a normal distribution, the sample mean and sample variance are the best estimators for the population parameters in a technical sense. </p>
<p>Does it look like your data follow a normal distribution? If not, what kind of distribution do they follow? That seems to be the first thing to settle. If you have questions as to the appropriate distribution for your data, perhaps we should continue this discussion via email. See the &#8220;About&#8221; tab at the top for my contact info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralf Gommers</title>
		<link>http://www.johndcook.com/blog/2009/07/20/probability-distributions-scipy/comment-page-1/#comment-21460</link>
		<dc:creator>Ralf Gommers</dc:creator>
		<pubDate>Mon, 20 Jul 2009 19:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=2699#comment-21460</guid>
		<description>Actually, I just realized what is going on with python help(). The distributions are class instances, and their docstrings are updated at import time to be instance-specific. IPython is smart enough to then do the right thing, the Python interpreter is not - it just displays the class docstring.</description>
		<content:encoded><![CDATA[<p>Actually, I just realized what is going on with python help(). The distributions are class instances, and their docstrings are updated at import time to be instance-specific. IPython is smart enough to then do the right thing, the Python interpreter is not &#8211; it just displays the class docstring.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omer Khalid</title>
		<link>http://www.johndcook.com/blog/2009/07/20/probability-distributions-scipy/comment-page-1/#comment-21459</link>
		<dc:creator>Omer Khalid</dc:creator>
		<pubDate>Mon, 20 Jul 2009 19:48:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=2699#comment-21459</guid>
		<description>If I understood correct; scipy.stats.mean and scipy.stats.std will be sample&#039;s mean and standard deviation but this is not normal distribution yet. right? Because in your examples you are referring to scipy.stats.norm.* ?

I suppose normal-distribution mean/std.deviation could be calculated through these functions: scipy.stats.norm.mean and scipy.stats.norm.std. 

Probably it would be best I guess to first fit the sample set to a distribution and get a mean/std.deviation for it. If this could be the right approach then, would fit function will return a distribution type object which one can use for mean, std and probability?</description>
		<content:encoded><![CDATA[<p>If I understood correct; scipy.stats.mean and scipy.stats.std will be sample&#8217;s mean and standard deviation but this is not normal distribution yet. right? Because in your examples you are referring to scipy.stats.norm.* ?</p>
<p>I suppose normal-distribution mean/std.deviation could be calculated through these functions: scipy.stats.norm.mean and scipy.stats.norm.std. </p>
<p>Probably it would be best I guess to first fit the sample set to a distribution and get a mean/std.deviation for it. If this could be the right approach then, would fit function will return a distribution type object which one can use for mean, std and probability?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johndcook.com/blog/2009/07/20/probability-distributions-scipy/comment-page-1/#comment-21457</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 20 Jul 2009 19:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=2699#comment-21457</guid>
		<description>Omer: If you just want to compute sample mean and sample standard deviation, you could use the functions &lt;code&gt;scipy.stats.mean&lt;/code&gt; and &lt;code&gt;scipy.stats.std&lt;/code&gt;. But if you want to fit parameters for non-normal distributions, look at the &lt;code&gt;fit&lt;/code&gt; method on the distribution you&#039;re using to describe your data.</description>
		<content:encoded><![CDATA[<p>Omer: If you just want to compute sample mean and sample standard deviation, you could use the functions <code>scipy.stats.mean</code> and <code>scipy.stats.std</code>. But if you want to fit parameters for non-normal distributions, look at the <code>fit</code> method on the distribution you&#8217;re using to describe your data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omer Khalid</title>
		<link>http://www.johndcook.com/blog/2009/07/20/probability-distributions-scipy/comment-page-1/#comment-21456</link>
		<dc:creator>Omer Khalid</dc:creator>
		<pubDate>Mon, 20 Jul 2009 18:53:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=2699#comment-21456</guid>
		<description>A good step in the right direction...

It would be good John if you could expand more on certain use cases. i.e. if one have a sample space of X as list [], then what steps one should take to calculate the mean and standard deviation.

From that moment onwards, your article provides a clear way forward to get PDF/CDF probabilities..

Thanks,
Omer</description>
		<content:encoded><![CDATA[<p>A good step in the right direction&#8230;</p>
<p>It would be good John if you could expand more on certain use cases. i.e. if one have a sample space of X as list [], then what steps one should take to calculate the mean and standard deviation.</p>
<p>From that moment onwards, your article provides a clear way forward to get PDF/CDF probabilities..</p>
<p>Thanks,<br />
Omer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralf Gommers</title>
		<link>http://www.johndcook.com/blog/2009/07/20/probability-distributions-scipy/comment-page-1/#comment-21454</link>
		<dc:creator>Ralf Gommers</dc:creator>
		<pubDate>Mon, 20 Jul 2009 18:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.johndcook.com/blog/?p=2699#comment-21454</guid>
		<description>The python help() facility does not do the right thing (not sure why) but ipython does:

In [4]: scipy.stats.norm?

gives the same as the html docs.</description>
		<content:encoded><![CDATA[<p>The python help() facility does not do the right thing (not sure why) but ipython does:</p>
<p>In [4]: scipy.stats.norm?</p>
<p>gives the same as the html docs.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.327 seconds -->

