GithubHelp home page GithubHelp logo

baro77 / quadratic_influence Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 78.65 MB

Support repository for article "Quadratic Payments with constrained probabilities"

Home Page: https://arxiv.org/abs/2104.12700

MATLAB 8.50% TeX 91.50%
quadratic-voting incentives referendum cost-function octave medium quadratic-payments arxiv marginal-probability

quadratic_influence's Introduction

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.

quadratic_influence's People

Contributors

baro77 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.