mergeron 2025.739439.6__py3-none-any.whl → 2025.739439.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mergeron might be problematic. Click here for more details.

mergeron/__init__.py CHANGED
@@ -15,7 +15,7 @@ from ruamel import yaml
15
15
 
16
16
  _PKG_NAME: str = Path(__file__).parent.name
17
17
 
18
- VERSION = "2025.739439.6"
18
+ VERSION = "2025.739439.7"
19
19
 
20
20
  __version__ = VERSION
21
21
 
@@ -224,14 +224,14 @@ def diversion_share_boundary_wtd_avg(
224
224
  dps: int = 5,
225
225
  ) -> GuidelinesBoundary:
226
226
  R"""
227
- Share combinations on the share-weighted average diversion ratio boundary.
227
+ Share combinations on the share-weighted average diversion share boundary.
228
228
 
229
229
  Parameters
230
230
  ----------
231
231
  _delta_star
232
- Diversion share (:math:`\overline{d} / \overline{r}`)
232
+ Diversion share, :math:`\overline{d} / \overline{r}` or :math:`\overline{g} / (m^* \cdot \overline{r})`.
233
233
  _r_val
234
- recapture ratio
234
+ Recapture ratio.
235
235
  agg_method
236
236
  Whether "arithmetic mean", "geometric mean", or "distance".
237
237
  weighting
@@ -424,7 +424,7 @@ def diversion_share_boundary_xact_avg(
424
424
  dps: int = 5,
425
425
  ) -> GuidelinesBoundary:
426
426
  R"""
427
- Share combinations for the exact average diversion/share-ratio boundary.
427
+ Share combinations for the exact average diversion share boundary.
428
428
 
429
429
  Notes
430
430
  -----
@@ -462,9 +462,9 @@ def diversion_share_boundary_xact_avg(
462
462
  Parameters
463
463
  ----------
464
464
  _delta_star
465
- Diversion share (:math:`\overline{d} / \overline{r}`).
465
+ Diversion share, :math:`\overline{d} / \overline{r}` or :math:`\overline{g} / (m^* \cdot \overline{r})`.
466
466
  _r_val
467
- Recapture ratio
467
+ Recapture ratio.
468
468
  recapture_form
469
469
  Whether recapture-ratio is MNL-consistent ("inside-out") or has fixed
470
470
  value for both merging firms ("proportional").
@@ -591,7 +591,7 @@ def diversion_share_boundary_min(
591
591
  Parameters
592
592
  ----------
593
593
  _delta_star
594
- Diversion share (:math:`\overline{d} / \overline{r}`).
594
+ Diversion share, :math:`\overline{d} / \overline{r}` or :math:`\overline{g} / (m^* \cdot \overline{r})`.
595
595
  _r_val
596
596
  Recapture ratio.
597
597
  recapture_form
@@ -635,7 +635,7 @@ def diversion_share_boundary_max(
635
635
  Parameters
636
636
  ----------
637
637
  _delta_star
638
- Diversion share (:math:`\overline{d} / \overline{r}`).
638
+ Diversion share, :math:`\overline{d} / \overline{r}` or :math:`\overline{g} / (m^* \cdot \overline{r})`.
639
639
  _
640
640
  Placeholder for recapture ratio included for consistency with other
641
641
  share-ratio boundary functions.
@@ -704,9 +704,9 @@ def lerp[LerpT: (float, MPFloat, ArrayDouble, ArrayBIGINT)](
704
704
  Parameters
705
705
  ----------
706
706
  _x1, _x2
707
- bounds :math:`x_1, x_2` to interpolate between.
707
+ Interpolation bounds :math:`x_1, x_2`.
708
708
  _r
709
- interpolation weight :math:`r` assigned to :math:`x_2`
709
+ Interpolation weight :math:`r` assigned to :math:`x_2`
710
710
 
711
711
  Returns
712
712
  -------
@@ -728,14 +728,15 @@ def lerp[LerpT: (float, MPFloat, ArrayDouble, ArrayBIGINT)](
728
728
 
729
729
 
730
730
  """
731
- if not 0 <= _r <= 1:
732
- raise ValueError("Specified interpolation weight must lie in [0, 1].")
733
- elif _r == 0:
734
- return _x1
735
- elif _r == 1:
736
- return _x2
737
- else:
738
- return fma(_x2, _r, fma(_x1, -_r, _x1))
731
+ match _r:
732
+ case 0:
733
+ return _x1
734
+ case 1:
735
+ return _x2
736
+ case _:
737
+ if not 0 <= _r <= 1:
738
+ raise ValueError("Specified interpolation weight must lie in [0, 1].")
739
+ return fma(_x2, _r, fma(_x1, -_r, _x1))
739
740
 
740
741
 
741
742
  def round_cust(
@@ -108,9 +108,9 @@ def diversion_share_boundary_qdtr_wtd_avg(
108
108
  Parameters
109
109
  ----------
110
110
  _delta_star
111
- corollary to GUPPI bound (:math:`\overline{g} / (m^* \cdot \overline{r})`)
111
+ Diversion share, :math:`\overline{d} / \overline{r}` or :math:`\overline{g} / (m^* \cdot \overline{r})`.
112
112
  _r_val
113
- recapture ratio
113
+ Recapture ratio.
114
114
  weighting
115
115
  Whether "own-share" or "cross-product-share" (or None for simple, unweighted average)
116
116
  recapture_form
@@ -229,9 +229,9 @@ def diversion_share_boundary_distance(
229
229
  Parameters
230
230
  ----------
231
231
  _delta_star
232
- corollary to GUPPI bound (:math:`\overline{g} / (m^* \cdot \overline{r})`)
232
+ Diversion share, :math:`\overline{d} / \overline{r}` or :math:`\overline{g} / (m^* \cdot \overline{r})`.
233
233
  _r_val
234
- recapture ratio
234
+ Recapture ratio.
235
235
  agg_method
236
236
  Whether "arithmetic mean" or "distance".
237
237
  weighting
@@ -409,9 +409,9 @@ def diversion_share_boundary_xact_avg_mp(
409
409
  Parameters
410
410
  ----------
411
411
  _delta_star
412
- Diversion share (:math:`\overline{d} / \overline{r}`).
412
+ Diversion share, :math:`\overline{d} / \overline{r}` or :math:`\overline{g} / (m^* \cdot \overline{r})`.
413
413
  _r_val
414
- Recapture ratio
414
+ Recapture ratio.
415
415
  recapture_form
416
416
  Whether recapture-ratio is MNL-consistent ("inside-out") or has fixed
417
417
  value for both merging firms ("proportional").
@@ -529,14 +529,14 @@ def _diversion_share_boundary_wtd_avg_autoroot(
529
529
  dps: int = 5,
530
530
  ) -> GuidelinesBoundary:
531
531
  R"""
532
- Share combinations on the share-weighted average diversion ratio boundary.
532
+ Share combinations on the share-weighted average diversion share boundary.
533
533
 
534
534
  Parameters
535
535
  ----------
536
536
  _delta_star
537
- Diversion share (:math:`\overline{d} / \overline{r}`)
537
+ Diversion share, :math:`\overline{d} / \overline{r}` or :math:`\overline{g} / (m^* \cdot \overline{r})`.
538
538
  _r_val
539
- recapture ratio
539
+ Recapture ratio.
540
540
  agg_method
541
541
  Whether "arithmetic mean", "geometric mean", or "distance".
542
542
  weighting
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mergeron
3
- Version: 2025.739439.6
3
+ Version: 2025.739439.7
4
4
  Summary: Python for analyzing merger enforcement policy
5
5
  License: MIT
6
6
  Keywords: merger enforcement policy,merger guidelines,merger screening,enforcement presumptions,concentration standards,diversion ratio,upward pricing pressure,GUPPI
@@ -1,10 +1,10 @@
1
- mergeron/__init__.py,sha256=N0U945_z3ITfbb9y0ygeHHdFdDUmi0L8oA3fYRpvRrc,6751
1
+ mergeron/__init__.py,sha256=IiCnxgPoGTxGfs7Z74pv6xAfnTSXSISfl7Ed_mrS224,6751
2
2
  mergeron/core/__init__.py,sha256=4Y_q-Qu7gXENVKHS-lNebn5mPZDy9oPHFwUV7fAW9Nw,3269
3
3
  mergeron/core/empirical_margin_distribution.py,sha256=61U-KLB563BPWM5zWyWp82c4PhcsAG-IKI0WWYGjBKg,11740
4
4
  mergeron/core/ftc_merger_investigations_data.py,sha256=oM4cs2PnyeSwyV1LOE_EYCUEzCKPm7lnCGxLIc6JQY8,28820
5
5
  mergeron/core/guidelines_boundaries.py,sha256=PvSOLB6KlXu9KX6NdpStuRluP6nrZqUzSHT6usa5600,15630
6
- mergeron/core/guidelines_boundary_functions.py,sha256=4HnNp1t6R99qszo3XCshL_hWXzsX4UCohPjzWWobGx0,30527
7
- mergeron/core/guidelines_boundary_functions_extra.py,sha256=g4V4-vxX8g6X-lXUVyU4-yPj5LTjCoRDPQUlbb2bBHY,22078
6
+ mergeron/core/guidelines_boundary_functions.py,sha256=nStdhnxtvWJJ0jOR-5mPydDE3KMFf6rrfrT3IQUjjGY,30759
7
+ mergeron/core/guidelines_boundary_functions_extra.py,sha256=DqwAsZ-ynbRAJE3rzAELCJEWyOtor3rvYUUUDTQpD7M,22243
8
8
  mergeron/core/pseudorandom_numbers.py,sha256=-mPveXjJJ446NrBMAmWIa2jI6j0Px0xcCJTGEEsn3bo,10149
9
9
  mergeron/data/__init__.py,sha256=SAFkR23RBM0zwGam2TeWmw08oHAKmU2YF-Nygj73ies,1845
10
10
  mergeron/data/damodaran_margin_data_serialized.zip,sha256=Wc1v9buSrYTWWAravG8W9nPbgsU07zMtSAR2RvMQU5s,623482
@@ -15,6 +15,6 @@ mergeron/gen/data_generation_functions.py,sha256=hXUq5D2CIUkM4_NdGXiOb4XATYwIUeU
15
15
  mergeron/gen/enforcement_stats.py,sha256=etTax-sBSn8DveF-IxuBJDdX0XSBD6oFU9vaZe6cYks,14387
16
16
  mergeron/gen/upp_tests.py,sha256=gRJISQ2jGmIDmFOvaTIkvYooI4mK-QbgkfgL46RrRio,7445
17
17
  mergeron/py.typed,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
18
- mergeron-2025.739439.6.dist-info/METADATA,sha256=-rd7oQdokempRxB-VX-YVVK9xgmmkvnJMIQgqsdspCg,4219
19
- mergeron-2025.739439.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
20
- mergeron-2025.739439.6.dist-info/RECORD,,
18
+ mergeron-2025.739439.7.dist-info/METADATA,sha256=Y-j9QMbM5qpsUVI_83FmBiTQdp--Xaw9IGVw4NjvEVc,4219
19
+ mergeron-2025.739439.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
20
+ mergeron-2025.739439.7.dist-info/RECORD,,