Solving Probability and Statistics Problems by Program Synthesis

By Leonard Tang, Elizabeth Ke, Nikhil Singh, Nakul Verma, Iddo Drori. 2021

15 citations recorded by the source corpus.

We solve university level probability and statistics questions by program synthesis using OpenAI's Codex, a Transformer trained on text and fine-tuned on code. We transform course problems from MIT's 18.05 Introduction to Probability and Statistics and Harvard's STAT110 Probability into programming tasks. We then execute the generated code to get a solution. Since these course questions are grounded in probability, we often aim to have Codex generate probabilistic programs that simulate a large number of probabilistic dependencies to compute its solution. Our approach requires prompt engineering to transform the question from its original form to an explicit, tractable form that results in a correct program and solution. To estimate the amount of work needed to translate an original question into its tractable form, we measure the similarity between original and transformed questions. Our work is the first to introduce a new dataset of university-level probability and statistics problems and solve these problems in a scalable fashion using the program synthesis capabilities of large language models.

Subfields: Artificial Intelligence, Information Systems, Natural Language Processing, Code Generation & Program Synthesis

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yoshua Bengio
  2. Mohit Bansal
  3. Sergey Levine
  4. Jianfeng Gao
  5. Ruslan Salakhutdinov
  6. Quoc V. Le
  7. Percy Liang
  8. Pushmeet Kohli

In Information Systems

  1. Xinyun Chen
  2. Oriol Vinyals
  3. Pushmeet Kohli
  4. Nate Kushman
  5. Foutse Khomh
  6. Nando de Freitas
  7. Johannes Welbl
  8. Po-Sen Huang

In Natural Language Processing

  1. Xinyun Chen
  2. Mohit Bansal
  3. Yoshua Bengio
  4. Pushmeet Kohli
  5. Quoc V. Le
  6. Percy Liang
  7. Junyoung Chung
  8. Jianfeng Gao

In Code Generation & Program Synthesis

  1. Xinyun Chen
  2. Pushmeet Kohli

Citations in the corpus