Final Year Project — B.A. (Mod.) in Computer Science, Linguistics and a Language
Trinity College Dublin
This project extends Allen's Interval Algebra (1983) by introducing probabilistic modeling and simulations to handle uncertainty in temporal relations and their composition.
- Implementation of the 13 Allen interval relations
- Composition (transitivity) table logic
- Probabilistic birth/death state transition simulations
- Interval generation with customizable parameters
- Statistical analysis and hypothesis testing
- Multiple simulation modes with varying parameters
constants.py
– Allen relation and state definitionsrelations.py
– Allen relations and composition logicintervals.py
– Interval generation and relation detectionsimulations.py
– Birth/death process simulation enginestats.py
– Statistical analysis and hypothesis testingREADME.md
– Project descriptionLICENSE
– MIT License
The project provides multiple ways to simulate and analyze interval relations:
-
Use
intervals.py
functions to generate random intervals and determine their relations:gen()
- Generate single intervals with birth/death probabilitiesrun()
- Generate two intervals and determine their relationmany()
- Run multiple simulations with identical parameters
-
Use
simulations.py
for more complex state transition simulations:arSimulate()
- Run birth/death process simulationsdemo()
- Run a series of simulations with different parameters
-
Use
stats.py
to analyze relation distributions:entropy()
- Calculate information entropychi_square_uniform()
- Test against uniform distributiondescribe()
- Get comprehensive statistics