Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a9614eb

Browse filesBrowse files
committed
DOC: quantile: fix lint; other minor adjustments
1 parent 6eaf792 commit a9614eb
Copy full SHA for a9614eb

File tree

Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed

‎numpy/lib/_function_base_impl.py

Copy file name to clipboardExpand all lines: numpy/lib/_function_base_impl.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4180,7 +4180,7 @@ def quantile(a,
41804180
a : array_like of real numbers
41814181
Input array or object that can be converted to an array.
41824182
q : array_like of float
4183-
Probability or sequence of probabilities for the quantiles to compute.
4183+
Probability or sequence of probabilities of the quantiles to compute.
41844184
Values must be between 0 and 1 inclusive.
41854185
axis : {int, tuple of int, None}, optional
41864186
Axis or axes along which the quantiles are computed. The default is
@@ -4270,10 +4270,6 @@ def quantile(a,
42704270
Given a sample `a` from an underlying distribution, `quantile` provides a
42714271
nonparametric estimate of the inverse cumulative distribution function.
42724272
4273-
Sample quantiles, the result of ``quantile``, provide nonparametric
4274-
estimation of the underlying population counterparts, represented by the
4275-
unknown :math:`F`, given a data vector `a` of length ``n``.
4276-
42774273
By default, this is done by interpolating between adjacent elements in
42784274
``y``, a sorted copy of `a`::
42794275
@@ -4336,12 +4332,16 @@ def quantile(a,
43364332
.. math:: P(Y < x) \\leq q \\quad\\text{and}\\quad P(Y \\leq x) \\geq q
43374333
43384334
with random variable :math:`Y\\sim P`.
4335+
Sample quantiles, the result of `quantile`, provide nonparametric
4336+
estimation of the underlying population counterparts, represented by the
4337+
unknown :math:`F`, given a data vector `a` of length ``n``.
4338+
43394339
Some of the estimators above arise when one considers :math:`F` as the
43404340
empirical distribution function of the data, i.e.
43414341
:math:`F(y) = \\frac{1}{n} \\sum_i 1_{a_i \\leq y}`.
43424342
Then, different methods correspond to different choices of :math:`x` that
4343-
fulfill the above coverage conditions. Methods that follow this approach are
4344-
``inverted_cdf`` and ``averaged_inverted_cdf``.
4343+
fulfill the above coverage conditions. Methods that follow this approach
4344+
are ``inverted_cdf`` and ``averaged_inverted_cdf``.
43454345
43464346
For weighted quantiles, the coverage conditions still hold. The
43474347
empirical cumulative distribution is simply replaced by its weighted

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.