This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / 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 : ndarray

distx and disty have shapes (n, p) and (n, q) or (n, n) and (n, n) if distance matrices.

Returns

stat : float

The sample MGC test statistic within [-1, 1].

stat_dict : dict

Contains 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