openavmkit.vertical_equity_study
VerticalEquityStudy
VerticalEquityStudy(df_sales_in, field_sales, field_prediction, confidence_interval=0.95, iterations=10000, seed=777)
Perform vertical equity analysis and summarize the results.
Attributes:
Name | Type | Description |
---|---|---|
rows |
int
|
Total number of rows in the input DataFrame. |
confidence_interval |
float
|
The confidence interval (e.g. 0.95 for 95% confidence) |
prd |
ConfidenceStat
|
The price-related differential, with confidence intervals |
prb |
ConfidenceStat
|
The price-related bias, with confidence intervals |
quantiles |
DataFrame
|
A dataframe containing the median ratio, with confidence intervals, of all ten price quantile tiers |
Source code in openavmkit/vertical_equity_study.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|