bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _mgc / _mgc_stat
function
scipy.stats._mgc:_mgc_stat
source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_mgc.py:383
Signature
def _mgc_stat(distx, disty)Summary
Helper function that calculates the MGC stat. See above for use.
Parameters
distx, disty: ndarraydistxanddistyhave shapes(n, p)and(n, q)or(n, n)and(n, n)if distance matrices.
Returns
stat: floatThe sample MGC test statistic within
[-1, 1].stat_dict: dictContains additional useful additional returns containing the following keys:
stat_mgc_map
MGC-map of the statistics.
opt_scale
The estimated optimal scale as a
(x, y)pair.
Aliases
scipy.stats._mgc._mgc_stat