Incarceration

Config

class whynot.simulators.incarceration.Config[source]

Metaparameters for a single run of simulator.

random_seed

Controls all randomness of the simulation

Type:int
min_age

Minimum age for incarceration

Type:int
start_iter

Start iteration of simulation

Type:int
end_iter

End iteration of simulation

Type:int
percent

Initial incarceration rate

Type:float
random_sentence_type

Assign lenient or harsh sentence randomly

Type:bool
random_sentence_bias

Probability of picking harsh sentence

Type:float
mean_sentence_harsh

Mean sentence length (months) for harsh assignment

Type:float
mean_sentence_lenient

Mean sentence length (months) for lenient assignment

Type:float

Experiments

Experiments for the incarceration simulator.

whynot.simulators.incarceration.experiments.SentenceLength = <whynot.framework.GenericExperiment object>

Randomized trial with interference between units.