pith. sign in

arxiv: 2212.00751 · v2 · pith:E6WMJKLZnew · submitted 2022-12-01 · 💻 cs.FL · cs.LG

P(Expression|Grammar): Probability of deriving an algebraic expression with a probabilistic context-free grammar

classification 💻 cs.FL cs.LG
keywords expressiongrammarprobabilitycalculatinggivengrammarsalgebraicalgorithms
0
0 comments X
read the original abstract

Probabilistic context-free grammars have a long-term record of use as generative models in machine learning and symbolic regression. When used for symbolic regression, they generate algebraic expressions. We define the latter as equivalence classes of strings derived by grammar and address the problem of calculating the probability of deriving a given expression with a given grammar. We show that the problem is undecidable in general. We then present specific grammars for generating linear, polynomial, and rational expressions, where algorithms for calculating the probability of a given expression exist. For those grammars, we design algorithms for calculating the exact probability and efficient approximation with arbitrary precision.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.