Simple nonparametric inference for sealed first-price auctions.
Project description
A package for the "Nonparametric inference on counterfactuals in sealed first-price auctions" paper by Pasha Andreyanov and Grigory Franguridy.
It contains a class that fits the auction data using a symmetric first-price auction model with either additive or multiplicative heterogeneity, and predicts latent valuations and counterfactuals.
The interface of the package consists of 4 steps.
- pass a dataframe with auctionid and bid column names
- pass covariate (continuous and discrete) column names and create bid residuals and fitted values
- fit the non-parametric model
- predict latent bids, and also expected total surplus, potential bidder surplus and revenue, as functions of exclusion level
Arxiv and Github repository
https://arxiv.org/abs/2106.13856
https://github.com/pandreyanov/pashas_simple_fpa
Sample code
df = pd.read_csv('../_data/haile_data_prepared.csv', index_col=0)
model = Model(data = df, auctionid_columns = ['auctionid'], bid_column = 'actual_bid')
cont_covs = ['adv_value', 'hhi', 'volume_total_1']
disc_covs = ['year', 'forest']
model.residualize(cont_covs, disc_covs, 'multiplicative')
model.summary()
model.trim_residuals(5)
model.fit(smoothing_rate = 0.2, trim_percent = 5, reflect = True)
model.predict()
model.plot_stats()
Predictions
The counterfactuals are populated into the original dataset, ordered by the magnitude of bid redisuals. Some observations will not have a prediction, as they will be ignored (trimmed) in the non-parametric estimation.
- _resid : bid residuals
- _fitted : bid fitted values
- _trimmed : variable takes 1 if observations were omitted (trimmed) and 0 otherwise
- _u : u-quantile levels, takes values between 0 and 1
- _hat_q : estimate of quantile density of bid residuals
- _hat_v : estimate of quantile function of value residuals
- _latent_resid : same as _hat_v
- _ts : total surplus as function of exclusion level u
- _bs : potential bidder surplus as function of exclusion level u
- _rev : auctioneer revenue as function of exclusion level u
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_fpa-0.2.tar.gz.
File metadata
- Download URL: simple_fpa-0.2.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a99eb04a3905885cf19a7b0d61bc90b40b01e1794764a2c0eae3500e98660b46
|
|
| MD5 |
66d63757f60b10ca361b659a68b37855
|
|
| BLAKE2b-256 |
e9195d4302aceb2e9065f8b4dda8b810b8f40a898f930e09416d5aeb18c11ee1
|
File details
Details for the file simple_fpa-0.2-py3-none-any.whl.
File metadata
- Download URL: simple_fpa-0.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e23e185d6ec8d5fbca7ebaa083e7d446a922ca1f51cad022836c57039b9b696
|
|
| MD5 |
8df58325bb929c96171171ef01e36cf2
|
|
| BLAKE2b-256 |
fb79e1e7a85b4285d6e945fc11eb5f2bc1a3c44b91b77bae2b4e2205798cba62
|