mergeron 2024.738972.0__py3-none-any.whl → 2024.738973.0__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/core/__init__.py +16 -6
- mergeron/core/guidelines_boundaries.py +71 -884
- mergeron/core/guidelines_boundary_functions.py +826 -0
- mergeron/core/{guidelines_boundaries_specialized_functions.py → guidelines_boundary_functions_extra.py} +38 -4
- mergeron/gen/__init__.py +0 -9
- {mergeron-2024.738972.0.dist-info → mergeron-2024.738973.0.dist-info}/METADATA +1 -1
- {mergeron-2024.738972.0.dist-info → mergeron-2024.738973.0.dist-info}/RECORD +8 -7
- {mergeron-2024.738972.0.dist-info → mergeron-2024.738973.0.dist-info}/WHEEL +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Specialized methods for defining and analyzing boundaries for Guidelines standards.
|
|
3
3
|
|
|
4
|
-
These methods provide
|
|
5
|
-
to have
|
|
4
|
+
These methods (functions) provide rely on scipy of sympy for core computations,
|
|
5
|
+
and may provide improved precision than core functions, but tend to have
|
|
6
|
+
poor performance
|
|
6
7
|
|
|
7
8
|
"""
|
|
8
9
|
|
|
@@ -18,7 +19,8 @@ from scipy.spatial.distance import minkowski as distance_function # type: ignor
|
|
|
18
19
|
from sympy import lambdify, simplify, solve, symbols
|
|
19
20
|
|
|
20
21
|
from .. import _PKG_NAME # noqa: TID252
|
|
21
|
-
from .
|
|
22
|
+
from . import GuidelinesBoundary
|
|
23
|
+
from .guidelines_boundary_functions import _shrratio_boundary_intcpt, lerp
|
|
22
24
|
|
|
23
25
|
__version__ = version(_PKG_NAME)
|
|
24
26
|
|
|
@@ -34,7 +36,39 @@ class GuidelinesBoundaryCallable:
|
|
|
34
36
|
s_naught: float = 0
|
|
35
37
|
|
|
36
38
|
|
|
37
|
-
def
|
|
39
|
+
def dh_area_quad(_dh_val: float = 0.01, /, *, prec: int = 9) -> float:
|
|
40
|
+
"""
|
|
41
|
+
Area under the ΔHHI boundary.
|
|
42
|
+
|
|
43
|
+
When the given ΔHHI bound matches a Guidelines safeharbor,
|
|
44
|
+
the area under the boundary is half the intrinsic clearance rate
|
|
45
|
+
for the ΔHHI safeharbor.
|
|
46
|
+
|
|
47
|
+
Parameters
|
|
48
|
+
----------
|
|
49
|
+
_dh_val
|
|
50
|
+
Merging-firms' ΔHHI bound.
|
|
51
|
+
prec
|
|
52
|
+
Specified precision in decimal places.
|
|
53
|
+
|
|
54
|
+
Returns
|
|
55
|
+
-------
|
|
56
|
+
Area under ΔHHI boundary.
|
|
57
|
+
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
_dh_val = mpf(f"{_dh_val}")
|
|
61
|
+
_s_naught = (1 - mp.sqrt(1 - 2 * _dh_val)) / 2
|
|
62
|
+
|
|
63
|
+
return round(
|
|
64
|
+
float(
|
|
65
|
+
_s_naught + mp.quad(lambda x: _dh_val / (2 * x), [_s_naught, 1 - _s_naught])
|
|
66
|
+
),
|
|
67
|
+
prec,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def hhi_delta_boundary_qdtr(_dh_val: float = 0.01, /) -> GuidelinesBoundaryCallable:
|
|
38
72
|
"""
|
|
39
73
|
Generate the list of share combination on the ΔHHI boundary.
|
|
40
74
|
|
mergeron/gen/__init__.py
CHANGED
|
@@ -223,15 +223,6 @@ class SSZConstants(float, enum.ReprEnum):
|
|
|
223
223
|
|
|
224
224
|
|
|
225
225
|
# Validators for selected attributes of MarketSpec
|
|
226
|
-
def _sample_size_validator(
|
|
227
|
-
_object: MarketSpec, _attribute: Attribute[int], _value: int, /
|
|
228
|
-
) -> None:
|
|
229
|
-
if _value < 10**6:
|
|
230
|
-
raise ValueError(
|
|
231
|
-
f"Sample size must be no less than {10**6:,d}; got, {_value:,d}."
|
|
232
|
-
)
|
|
233
|
-
|
|
234
|
-
|
|
235
226
|
def _share_spec_validator(
|
|
236
227
|
_instance: MarketSpec, _attribute: Attribute[ShareSpec], _value: ShareSpec, /
|
|
237
228
|
) -> None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mergeron
|
|
3
|
-
Version: 2024.
|
|
3
|
+
Version: 2024.738973.0
|
|
4
4
|
Summary: Analysis of standards defined in Horizontal Merger Guidelines
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: merger policy analysis,merger guidelines,merger screening,policy presumptions,concentration standards,upward pricing pressure,GUPPI
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
mergeron/License.txt,sha256=7iX-y0EyjkbVJKJLS4ZKzuuE1wd0lryfsD_IytLG8lQ,1246
|
|
2
2
|
mergeron/__init__.py,sha256=_0Bt2k2P8MPlF_WagQKGspaSODn-pkqib0uvSd4gys4,1019
|
|
3
3
|
mergeron/core/InCommon RSA Server CA cert chain.pem,sha256=W8TqydgY8jphQ4fr6WMdT6jLwqFjHLpx8fFr3LXub4s,4292
|
|
4
|
-
mergeron/core/__init__.py,sha256=
|
|
4
|
+
mergeron/core/__init__.py,sha256=9_FKQ5f8hJhmv6BfaSNrjKr8dEw8Twd4X3j3i6NvHOs,2257
|
|
5
5
|
mergeron/core/damodaran_margin_data.py,sha256=DHTQdFjuZ5Yl3Dbq0db0QR4FHUqJpZj4yi5zdUncLtg,8166
|
|
6
6
|
mergeron/core/excel_helper.py,sha256=XfdKNOEdB5zNJl8LguVyAcDjr5y2wapKDbNgAx6r-es,7831
|
|
7
7
|
mergeron/core/ftc_invdata.msgpack,sha256=WBFHgi7Ld4R-h2zL2Zc3TOIlKqVrbVFMH1LoI4-T-M0,264664
|
|
8
8
|
mergeron/core/ftc_merger_investigations_data.py,sha256=wHF1dKAqWlh1hMvaQv2uOCAKAHnuPvCGnmaOB3CJO9I,26929
|
|
9
|
-
mergeron/core/guidelines_boundaries.py,sha256=
|
|
10
|
-
mergeron/core/
|
|
9
|
+
mergeron/core/guidelines_boundaries.py,sha256=haMNATCWKkAjFCQTChHPqfgKq4DTM5SZb9R9RIXoCT0,12542
|
|
10
|
+
mergeron/core/guidelines_boundary_functions.py,sha256=Pmg73eXu1HUh4UW8s-wgep8udWXZqX3t266Yp3uSi70,25313
|
|
11
|
+
mergeron/core/guidelines_boundary_functions_extra.py,sha256=NOdxBgoP32RdXwY41vjGuo9VH80hCIv7jRYi5UhFgxQ,11423
|
|
11
12
|
mergeron/core/proportions_tests.py,sha256=tCrbya1el5u1OFOXphODP6yWOGywuNY6z9LBTsNRKzM,15320
|
|
12
13
|
mergeron/core/pseudorandom_numbers.py,sha256=uBK_fnhkOSkqnK4gEU8b3r_9B6r-vKmXZ64HViraTK8,9446
|
|
13
14
|
mergeron/ext/__init__.py,sha256=iyfxkX3-SoMS4ZQZKHKPn8JEMN536vpty9oSZf0LHv8,115
|
|
14
15
|
mergeron/ext/tol_colors.py,sha256=wFOHZXWZonbp9mhmSGu9mVujBYhdTsvx9_WikMpoCmo,22229
|
|
15
|
-
mergeron/gen/__init__.py,sha256
|
|
16
|
+
mergeron/gen/__init__.py,sha256=-yewgOkVtKpXmc6HhGwJjbMkpWOk9ODYd_DEmoYnS50,16022
|
|
16
17
|
mergeron/gen/_data_generation_functions.py,sha256=QLxeS35D3bqQjjDabq1QncqwptMaHBrtmZ-_JUo6SG4,23202
|
|
17
18
|
mergeron/gen/data_generation.py,sha256=7teP8OKgKp08riX2Yu7flMEvN6a_eNXJllv_Hdkt7W8,8842
|
|
18
19
|
mergeron/gen/investigations_stats.py,sha256=4-AY_zhqKSlGE8sQciuYxzg2U4efQs2014dydmWUFz4,22802
|
|
@@ -26,6 +27,6 @@ mergeron/jinja_LaTex_templates/mergeron.cls,sha256=AV2mk4-uERvAuMkE95Ka7el6LZsb0
|
|
|
26
27
|
mergeron/jinja_LaTex_templates/mergeron_table_collection_template.tex.jinja2,sha256=nr6xUI0_2KHG4Sz9k1JFVQjs2h9qS9BGt1MeE6Tygs8,2429
|
|
27
28
|
mergeron/jinja_LaTex_templates/setup_tikz_tables.tex.jinja2,sha256=WKVxtp3eoMchfGliQAJMj4w2FtBkWG5z2V3-hBYUYUQ,3292
|
|
28
29
|
mergeron/py.typed,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
29
|
-
mergeron-2024.
|
|
30
|
-
mergeron-2024.
|
|
31
|
-
mergeron-2024.
|
|
30
|
+
mergeron-2024.738973.0.dist-info/METADATA,sha256=VCkVedkcxNum0AjN3whp7lnAE3cJit1fAzOVh5OTxrU,6925
|
|
31
|
+
mergeron-2024.738973.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
32
|
+
mergeron-2024.738973.0.dist-info/RECORD,,
|
|
File without changes
|