# scipy 1.18.1 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input

    Computes Kendall's rank correlation tau on two variables *x* and *y*.

    Parameters
    ----------
    x : sequence
        First data list (for example, time).
    y : sequence
        Second data list.
    use_ties : {True, False}, optional
        Whether ties correction should be performed.
    use_missing : {False, True}, optional
        Whether missing data should be allocated a rank of 0 (False) or the
        average rank (True)
    method : {'auto', 'asymptotic', 'exact'}, optional
        Defines which method is used to calculate the p-value [1]_.
        'asymptotic' uses a normal approximation valid for large samples.
        'exact' computes the exact p-value, but can only be used if no ties
        are present. As the sample size increases, the 'exact' computation
        time may grow and the result may lose some precision.
        'auto' is the default and selects the appropriate
        method based on a trade-off between speed and accuracy.
    alternative : {'two-sided', 'less', 'greater'}, optional
        Defines the alternative hypothesis. Default is 'two-sided'.
        The following options are available:

        * 'two-sided': the rank correlation is nonzero
        * 'less': the rank correlation is negative (less than zero)
        * 'greater':  the rank correlation is positive (greater than zero)

    Returns
    -------
    res : SignificanceResult
        An object containing attributes:

        statistic : float
           The tau statistic.
        pvalue : float
           The p-value for a hypothesis test whose null hypothesis is
           an absence of association, tau = 0.

    References
    ----------
    .. [1] Maurice G. Kendall, "Rank Correlation Methods" (4th Edition),
           Charles Griffin & Co., 1970.

    
=== parse numpydoc
short_description: "Computes Kendall's rank correlation tau on two variables *x* and *y*."
blank_after_short_description: True
blank_after_long_description: False
style: numpydoc
- DocstringParam
  description: 'First data list (for example, time).'
  kind: param
  key: 'param'
  arg_name: 'x'
  type_name: 'sequence'
  is_optional: False
- DocstringParam
  description: 'Second data list.'
  kind: param
  key: 'param'
  arg_name: 'y'
  type_name: 'sequence'
  is_optional: False
- DocstringParam
  description: 'Whether ties correction should be performed.'
  kind: param
  key: 'param'
  arg_name: 'use_ties'
  type_name: '{True, False}'
  is_optional: True
  raw_type_name: '{True, False}, optional'
- DocstringParam
  description: |
    Whether missing data should be allocated a rank of 0 (False) or the
    average rank (True)
  kind: param
  key: 'param'
  arg_name: 'use_missing'
  type_name: '{False, True}'
  is_optional: True
  raw_type_name: '{False, True}, optional'
- DocstringParam
  description: |
    Defines which method is used to calculate the p-value [1]_.
    'asymptotic' uses a normal approximation valid for large samples.
    'exact' computes the exact p-value, but can only be used if no ties
    are present. As the sample size increases, the 'exact' computation
    time may grow and the result may lose some precision.
    'auto' is the default and selects the appropriate
    method based on a trade-off between speed and accuracy.
  kind: param
  key: 'param'
  arg_name: 'method'
  type_name: "{'auto', 'asymptotic', 'exact'}"
  is_optional: True
  raw_type_name: "{'auto', 'asymptotic', 'exact'}, optional"
- DocstringParam
  description: |
    Defines the alternative hypothesis. Default is 'two-sided'.
    The following options are available:
    
    * 'two-sided': the rank correlation is nonzero
    * 'less': the rank correlation is negative (less than zero)
    * 'greater':  the rank correlation is positive (greater than zero)
  kind: param
  key: 'param'
  arg_name: 'alternative'
  type_name: "{'two-sided', 'less', 'greater'}"
  is_optional: True
  default: "'two-sided'"
  raw_type_name: "{'two-sided', 'less', 'greater'}, optional"
- DocstringReturns
  description: |
    An object containing attributes:
    
    statistic : float
       The tau statistic.
    pvalue : float
       The p-value for a hypothesis test whose null hypothesis is
       an absence of association, tau = 0.
  kind: returns
  key: 'returns'
  type_name: 'SignificanceResult'
  is_generator: False
  return_name: 'res'
- DocstringMeta
  description: |
    .. [1] Maurice G. Kendall, "Rank Correlation Methods" (4th Edition),
           Charles Griffin & Co., 1970.
  kind: text
  key: 'references'
  title: 'References'
=== detect
numpydoc
=== compose numpydoc
Computes Kendall's rank correlation tau on two variables *x* and *y*.

Parameters
----------
x : sequence
    First data list (for example, time).
y : sequence
    Second data list.
use_ties : {True, False}, optional
    Whether ties correction should be performed.
use_missing : {False, True}, optional
    Whether missing data should be allocated a rank of 0 (False) or the
    average rank (True)
method : {'auto', 'asymptotic', 'exact'}, optional
    Defines which method is used to calculate the p-value [1]_.
    'asymptotic' uses a normal approximation valid for large samples.
    'exact' computes the exact p-value, but can only be used if no ties
    are present. As the sample size increases, the 'exact' computation
    time may grow and the result may lose some precision.
    'auto' is the default and selects the appropriate
    method based on a trade-off between speed and accuracy.
alternative : {'two-sided', 'less', 'greater'}, optional
    Defines the alternative hypothesis. Default is 'two-sided'.
    The following options are available:

    * 'two-sided': the rank correlation is nonzero
    * 'less': the rank correlation is negative (less than zero)
    * 'greater':  the rank correlation is positive (greater than zero)

Returns
-------
res : SignificanceResult
    An object containing attributes:

    statistic : float
       The tau statistic.
    pvalue : float
       The p-value for a hypothesis test whose null hypothesis is
       an absence of association, tau = 0.

References
----------
.. [1] Maurice G. Kendall, "Rank Correlation Methods" (4th Edition),
       Charles Griffin & Co., 1970.
