Skip to content

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecological Inference in Elections

This repository provides scripts for the ecological inference algorithm described in the paper "A Fast Ecological Inference Algorithm for the R×C Case."

Scripts Overview

  • EM_algorithms.py
    Implements the EM algorithm to solve the ecological inference problem (EC). Each proposed method has its own file:

    • EM_full.py
    • EM_mult.py
    • EM_pdf.py
    • EM_cdf.py
    • EM_simulate.py
  • EM_cluster.py
    Specifically designed for running the experiments described in the paper, including comparative analysis of methods. This script clusters instances and applies the EM algorithm to evaluate performance across various settings. With text_instances.py you can generate the command lines to run these experiments.

  • 2021_11_Presidencial_Preproc.py
    Reproduces the main results from the Chilean presidential election (first round) in November 2021.

  • Other Scripts
    Perform additional analyses and generate figures and tables for the paper.

Usage

Ensure all dependencies are installed before running the scripts. Refer to the paper for methodological details and interpretation of results.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages