TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Exploring Mathematics with Matplotlib and Python

156 点作者 acangiano将近 6 年前

4 条评论

svat将近 6 年前
This is a nice article. For those who have not yet read it (it&#x27;s short, read it!), a one-paragraph summary: the author starts with a list of random numbers. Visualizing it (plotting the numbers, with the list index on the x axis) suggests &#x2F; leads to (for the author) curiosity about how often numbers repeat. Plotting <i>that</i> leads to the question of what the maximum frequency would be, as a size of the input list. This can lead to a hypothesis, which one can explore with larger runs. And then after some musings about this process, the post suddenly ends (leaving the rest to the reader), and gives the code that was used for plotting.<p>This article is essentially an encouragement and a reminder of our ability to do experimental mathematics (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;w&#x2F;index.php?title=Experimental_mathematics&amp;oldid=899918382" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;w&#x2F;index.php?title=Experimental_math...</a>): there&#x27;s even a journal for it, and the Wikipedia article on it is worth reading (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;w&#x2F;index.php?title=Experimental_Mathematics_(journal)&amp;oldid=894684677" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;w&#x2F;index.php?title=Experimental_Math...</a>). See also (I guess I&#x27;m just reproducing the first page of search results here) this article (<a href="https:&#x2F;&#x2F;www.maa.org&#x2F;external_archive&#x2F;devlin&#x2F;devlin_03_09.html" rel="nofollow">https:&#x2F;&#x2F;www.maa.org&#x2F;external_archive&#x2F;devlin&#x2F;devlin_03_09.htm...</a>), these two in the Notices of the AMS (<a href="https:&#x2F;&#x2F;www.ams.org&#x2F;notices&#x2F;200505&#x2F;fea-borwein.pdf" rel="nofollow">https:&#x2F;&#x2F;www.ams.org&#x2F;notices&#x2F;200505&#x2F;fea-borwein.pdf</a>, <a href="http:&#x2F;&#x2F;www.ams.org&#x2F;notices&#x2F;199506&#x2F;levy.pdf" rel="nofollow">http:&#x2F;&#x2F;www.ams.org&#x2F;notices&#x2F;199506&#x2F;levy.pdf</a>), this website (<a href="https:&#x2F;&#x2F;www.experimentalmath.info" rel="nofollow">https:&#x2F;&#x2F;www.experimentalmath.info</a>), this post by Wolfram (<a href="https:&#x2F;&#x2F;blog.stephenwolfram.com&#x2F;2017&#x2F;03&#x2F;two-hours-of-experimental-mathematics&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.stephenwolfram.com&#x2F;2017&#x2F;03&#x2F;two-hours-of-experim...</a>), and there&#x27;s even book by V. I. Arnold (besides a couple by Borwein and Bailey, and others).<p>Especially in number theory and probability, simple explorations with a computer can suggest deep conjectures that are yet to be proved.
评论 #20605256 未加载
评论 #20603953 未加载
r34将近 6 年前
1. How many people do there need to be in a room so the there is a greater than 50% chance of at least two of them sharing the same birthday?<p>2. How many numbers we have to draw from 365 so the there is a greater than 50% chance of at least two of them are the same?<p>3. How many numbers we have to draw from X so the there is a greater than Y% chance of at least Z of them are the same?<p>I think X,Y,Z are enough parameters:<p>Drawing from X=1000 numbers, what is the chance Y that Z=(5,6,7,8...) is the same?<p>Sorry, I&#x27;m not a matematician, just some breakfast ideas ;)<p>Edit: Inspired by <a href="http:&#x2F;&#x2F;datagenetics.com&#x2F;blog&#x2F;february72019&#x2F;index.html" rel="nofollow">http:&#x2F;&#x2F;datagenetics.com&#x2F;blog&#x2F;february72019&#x2F;index.html</a>
juggernaut390将近 6 年前
I’m embarrassed to see such a post upvoted. Also, matplotlib is outdated. If you want a good visualization tool, it should leverage as many features as it can to present the most information possible. This includes not just color but interactive tools like hover tools. A library like bokeh makes this extremely easy for example. I’m a bit sad to see such posts whose purpose is to demonstrate how to leverage visualization tools to improve our understanding of a phenomenon by people holding on to legacy outdated tools. It sends the wrong message.
评论 #20605337 未加载
评论 #20605058 未加载
评论 #20604847 未加载
enriquto将近 6 年前
As much as I love the Python language, it is shameful how it has become a sort of &quot;schtrumpf&quot;-like addition to any computer-related stuff. Such introductory tutorials are great (but this one, specifically, would benefit much by having the code that generates each figure next to it). However, it is really not necessary to specify that your particular thing is &quot;with Python&quot; as if it really meant anything fundamental.<p>What kind of shitty reasoning leads to this? &quot;Oh, let&#x27;s introduce this elementary mathematics to the illiterate masses by writing it as a Python script. Now everyone will understand it!&quot; This is a lack of respect for the agency of the readers.
评论 #20603311 未加载
评论 #20603179 未加载
评论 #20603253 未加载