Skip to content

Instantly share code, notes, and snippets.

@MatteosCode
MatteosCode / code_for_section_3.1_full_version.py
Created May 14, 2025 15:54
Full version of code used to generate the simulations of subchapter 3.1 without comments
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from scipy.stats import chisquare
np.random.seed(42)
# Parameters
n_auctions = 100
@MatteosCode
MatteosCode / code_for_section_3.1.py
Created May 14, 2025 15:46
code used in the paper titled: "Collusion in Auctions: Game-Theoretic Models, Statistical Detection, and Policy Design" section 3.1
# Import necessary libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from scipy.stats import chisquare
# Set reproducibility
np.random.seed(42)