Skip to content

Support repository for article "Quadratic Payments with constrained probabilities"

Notifications You must be signed in to change notification settings

baro77/quadratic_influence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Quadratic Influence misc stuff

Support repository for article "Quadratic Payments with constrained probabilities" originally posted on Medium (June 10th, 2020), rewritten in LaTeX on April 2021 to use a typesetting environment more suitable for this kind of content, and available on arXiv:2104.12700 (cs.GT) since April 27th, 2021.

  • referendum_code.m contains unleashed Octave code defining p(y,n,i) and ∆p(y,n,i) and plotting graphs of the referendum model;

  • BALLOT_PRECOMPUTED_PYs is a quite big archive (almost 1GB overall) of precomputed values of p(y,n,i) for the 101 x 1000 x 502 lattice domain defined by:

    • y ∈ (0, 0.01, 0.02, ..., 1)
    • n ∈ (1, 2, 3, ..., 1000)
    • i ∈ (0, 1, 2, ..., 501)

    It also hosts a second function defining p(y,n,i) in a more Octave-ish way, thanks to use of matrix algebra instead of almost all for cycles.

    More details in folder's README.md file

  • LATEX folder contains .tex source for the article, together with bibliography support files and PDF obtained with PdfLaTeX via TeXstudio

NOTE

Even if function outputs represent probabilities (so values bounded in [0,1]), intermediate stages of implemented formulas can lead to overflow of double floating point numbers used by Octave, e.g. resulting in ∞⋅0 and NaN. The above lattice domain is almost the biggest currently allowed, for bigger ones code refactoring is an actual need.