从Python中的垃圾箱产生潜在的分布
我发现了一份PDF文件,描述了1978年美国的收入分配。每个收入范围我的人口百分比属于该收入范围。我想在Python中产生基础分布。数据看起来像这样:
under 3000$: 6.2%
$3000-4999$: 8.5%
$5000-$6999: 7.6%
等
,请参阅屏幕截图以获取更详细的描述。
我找到了函数scipy.stats.rv_histargram直方图,但我不确定如何创建此初始直方图。
I found a PDF document describing the income distribution in the US in 1978. Per income range I have the percentage of the population that falls in that income range. I'd like to generate the underlying distribution in python. The data looks something like this:
under 3000$: 6.2%
$3000-4999$: 8.5%
$5000-$6999: 7.6%
etc
See the screenshot for a more detailed description.
I've found the function scipy.stats.rv_histogram
that generates a distribution given a histogram, but I'm not sure how to create this initial histogram.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅
它明确指出:
您可以创建直方图,例如:
Refer the documentation for scipy.stats.rv_histogram
it clearly states that:
You can create the histogram like: