I'm looking for a collection of parsed mathematical formulas (expressions). I'm interested in studying the statistical properties of mathematical expressions written by humans. (Thus, formulas generated mechanically are not interesting.) For now, I'd prefer formulas restricted to the elementary functions.

I'm considering the following sources, all of which make available database dumps:

  • Wikipedia articles
  • StackExchange Q&As, particularly from MathOverflow, Math.SE, or Physics.SE
  • arXiv papers about math and physics

These sources contain plenty of LaTeX formulas but they'd have to be extracted, parsed, and validated, which is by no means trivial.

Are there any datasets of naturally occurring mathematical formulas that would be easier to work with? Or, failing that, what other sources ought I consider?

  • 2
    Try this. A few years ago I have looked a paper about statistical properties of math formulas (perhaps there was a link to dataset), but can't find it right now. – Stanislav Kralin Apr 15 at 10:55
  • 1
    Thank you! Those datasets look really great. BTW, if you happen to find that paper, please let me know. – Evan Patterson Apr 16 at 16:49

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.