python-docs-fr/library/statistics.po

886 lines
28 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Copyright (C) 2001-2018, Python Software Foundation
# For licence information, see README file.
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-04 11:33+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../Doc/library/statistics.rst:2
msgid ":mod:`statistics` --- Mathematical statistics functions"
msgstr ""
#: ../Doc/library/statistics.rst:12
msgid "**Source code:** :source:`Lib/statistics.py`"
msgstr "**Code source :** :source:`Lib/statistics.py`"
#: ../Doc/library/statistics.rst:21
msgid ""
"This module provides functions for calculating mathematical statistics of "
"numeric (:class:`Real`-valued) data."
msgstr ""
#: ../Doc/library/statistics.rst:26
msgid ""
"Unless explicitly noted otherwise, these functions support :class:`int`, :"
"class:`float`, :class:`decimal.Decimal` and :class:`fractions.Fraction`. "
"Behaviour with other types (whether in the numeric tower or not) is "
"currently unsupported. Mixed types are also undefined and implementation-"
"dependent. If your input data consists of mixed types, you may be able to "
"use :func:`map` to ensure a consistent result, e.g. ``map(float, "
"input_data)``."
msgstr ""
#: ../Doc/library/statistics.rst:35
msgid "Averages and measures of central location"
msgstr ""
#: ../Doc/library/statistics.rst:37
msgid ""
"These functions calculate an average or typical value from a population or "
"sample."
msgstr ""
#: ../Doc/library/statistics.rst:41
msgid ":func:`mean`"
msgstr ""
#: ../Doc/library/statistics.rst:41
msgid "Arithmetic mean (\"average\") of data."
msgstr ""
#: ../Doc/library/statistics.rst:42
msgid ":func:`fmean`"
msgstr ""
#: ../Doc/library/statistics.rst:42
msgid "Fast, floating point arithmetic mean."
msgstr ""
#: ../Doc/library/statistics.rst:43
msgid ":func:`geometric_mean`"
msgstr ""
#: ../Doc/library/statistics.rst:43
msgid "Geometric mean of data."
msgstr ""
#: ../Doc/library/statistics.rst:44
msgid ":func:`harmonic_mean`"
msgstr ""
#: ../Doc/library/statistics.rst:44
msgid "Harmonic mean of data."
msgstr ""
#: ../Doc/library/statistics.rst:45
msgid ":func:`median`"
msgstr ""
#: ../Doc/library/statistics.rst:45
msgid "Median (middle value) of data."
msgstr ""
#: ../Doc/library/statistics.rst:46
msgid ":func:`median_low`"
msgstr ""
#: ../Doc/library/statistics.rst:46
msgid "Low median of data."
msgstr ""
#: ../Doc/library/statistics.rst:47
msgid ":func:`median_high`"
msgstr ""
#: ../Doc/library/statistics.rst:47
msgid "High median of data."
msgstr ""
#: ../Doc/library/statistics.rst:48
msgid ":func:`median_grouped`"
msgstr ""
#: ../Doc/library/statistics.rst:48
msgid "Median, or 50th percentile, of grouped data."
msgstr ""
#: ../Doc/library/statistics.rst:49
msgid ":func:`mode`"
msgstr ""
#: ../Doc/library/statistics.rst:49
msgid "Single mode (most common value) of discrete or nominal data."
msgstr ""
#: ../Doc/library/statistics.rst:50
msgid ":func:`multimode`"
msgstr ""
#: ../Doc/library/statistics.rst:50
msgid "List of modes (most common values) of discrete or nomimal data."
msgstr ""
#: ../Doc/library/statistics.rst:51
msgid ":func:`quantiles`"
msgstr ""
#: ../Doc/library/statistics.rst:51
msgid "Divide data into intervals with equal probability."
msgstr ""
#: ../Doc/library/statistics.rst:55
msgid "Measures of spread"
msgstr ""
#: ../Doc/library/statistics.rst:57
msgid ""
"These functions calculate a measure of how much the population or sample "
"tends to deviate from the typical or average values."
msgstr ""
#: ../Doc/library/statistics.rst:61
msgid ":func:`pstdev`"
msgstr ""
#: ../Doc/library/statistics.rst:61
msgid "Population standard deviation of data."
msgstr ""
#: ../Doc/library/statistics.rst:62
msgid ":func:`pvariance`"
msgstr ""
#: ../Doc/library/statistics.rst:62
msgid "Population variance of data."
msgstr ""
#: ../Doc/library/statistics.rst:63
msgid ":func:`stdev`"
msgstr ""
#: ../Doc/library/statistics.rst:63
msgid "Sample standard deviation of data."
msgstr ""
#: ../Doc/library/statistics.rst:64
msgid ":func:`variance`"
msgstr ""
#: ../Doc/library/statistics.rst:64
msgid "Sample variance of data."
msgstr ""
#: ../Doc/library/statistics.rst:69
msgid "Function details"
msgstr ""
#: ../Doc/library/statistics.rst:71
msgid ""
"Note: The functions do not require the data given to them to be sorted. "
"However, for reading convenience, most of the examples show sorted sequences."
msgstr ""
#: ../Doc/library/statistics.rst:76
msgid ""
"Return the sample arithmetic mean of *data* which can be a sequence or "
"iterator."
msgstr ""
#: ../Doc/library/statistics.rst:78
msgid ""
"The arithmetic mean is the sum of the data divided by the number of data "
"points. It is commonly called \"the average\", although it is only one of "
"many different mathematical averages. It is a measure of the central "
"location of the data."
msgstr ""
#: ../Doc/library/statistics.rst:83
msgid "If *data* is empty, :exc:`StatisticsError` will be raised."
msgstr ""
#: ../Doc/library/statistics.rst:85
msgid "Some examples of use:"
msgstr ""
#: ../Doc/library/statistics.rst:104
msgid ""
"The mean is strongly affected by outliers and is not a robust estimator for "
"central location: the mean is not necessarily a typical example of the data "
"points. For more robust, although less efficient, measures of central "
"location, see :func:`median` and :func:`mode`. (In this case, \"efficient\" "
"refers to statistical efficiency rather than computational efficiency.)"
msgstr ""
#: ../Doc/library/statistics.rst:111
msgid ""
"The sample mean gives an unbiased estimate of the true population mean, "
"which means that, taken on average over all the possible samples, "
"``mean(sample)`` converges on the true mean of the entire population. If "
"*data* represents the entire population rather than a sample, then "
"``mean(data)`` is equivalent to calculating the true population mean μ."
msgstr ""
#: ../Doc/library/statistics.rst:120
msgid "Convert *data* to floats and compute the arithmetic mean."
msgstr ""
#: ../Doc/library/statistics.rst:122
msgid ""
"This runs faster than the :func:`mean` function and it always returns a :"
"class:`float`. The result is highly accurate but not as perfect as :func:"
"`mean`. If the input dataset is empty, raises a :exc:`StatisticsError`."
msgstr ""
#: ../Doc/library/statistics.rst:137
msgid "Convert *data* to floats and compute the geometric mean."
msgstr ""
#: ../Doc/library/statistics.rst:139
msgid ""
"Raises a :exc:`StatisticsError` if the input dataset is empty, if it "
"contains a zero, or if it contains a negative value."
msgstr ""
#: ../Doc/library/statistics.rst:142
msgid ""
"No special efforts are made to achieve exact results. (However, this may "
"change in the future.)"
msgstr ""
#: ../Doc/library/statistics.rst:155
msgid ""
"Return the harmonic mean of *data*, a sequence or iterator of real-valued "
"numbers."
msgstr ""
#: ../Doc/library/statistics.rst:158
msgid ""
"The harmonic mean, sometimes called the subcontrary mean, is the reciprocal "
"of the arithmetic :func:`mean` of the reciprocals of the data. For example, "
"the harmonic mean of three values *a*, *b* and *c* will be equivalent to ``3/"
"(1/a + 1/b + 1/c)``."
msgstr ""
#: ../Doc/library/statistics.rst:163
msgid ""
"The harmonic mean is a type of average, a measure of the central location of "
"the data. It is often appropriate when averaging quantities which are rates "
"or ratios, for example speeds. For example:"
msgstr ""
#: ../Doc/library/statistics.rst:167
msgid ""
"Suppose an investor purchases an equal value of shares in each of three "
"companies, with P/E (price/earning) ratios of 2.5, 3 and 10. What is the "
"average P/E ratio for the investor's portfolio?"
msgstr ""
#: ../Doc/library/statistics.rst:176
msgid ""
"Using the arithmetic mean would give an average of about 5.167, which is too "
"high."
msgstr ""
#: ../Doc/library/statistics.rst:179
msgid ""
":exc:`StatisticsError` is raised if *data* is empty, or any element is less "
"than zero."
msgstr ""
#: ../Doc/library/statistics.rst:187
msgid ""
"Return the median (middle value) of numeric data, using the common \"mean of "
"middle two\" method. If *data* is empty, :exc:`StatisticsError` is raised. "
"*data* can be a sequence or iterator."
msgstr ""
#: ../Doc/library/statistics.rst:191
msgid ""
"The median is a robust measure of central location, and is less affected by "
"the presence of outliers in your data. When the number of data points is "
"odd, the middle data point is returned:"
msgstr ""
#: ../Doc/library/statistics.rst:200
msgid ""
"When the number of data points is even, the median is interpolated by taking "
"the average of the two middle values:"
msgstr ""
#: ../Doc/library/statistics.rst:208
msgid ""
"This is suited for when your data is discrete, and you don't mind that the "
"median may not be an actual data point."
msgstr ""
#: ../Doc/library/statistics.rst:211
msgid ""
"If your data is ordinal (supports order operations) but not numeric (doesn't "
"support addition), you should use :func:`median_low` or :func:`median_high` "
"instead."
msgstr ""
#: ../Doc/library/statistics.rst:215
msgid ":func:`median_low`, :func:`median_high`, :func:`median_grouped`"
msgstr ""
#: ../Doc/library/statistics.rst:220
msgid ""
"Return the low median of numeric data. If *data* is empty, :exc:"
"`StatisticsError` is raised. *data* can be a sequence or iterator."
msgstr ""
#: ../Doc/library/statistics.rst:223
msgid ""
"The low median is always a member of the data set. When the number of data "
"points is odd, the middle value is returned. When it is even, the smaller "
"of the two middle values is returned."
msgstr ""
#: ../Doc/library/statistics.rst:234
msgid ""
"Use the low median when your data are discrete and you prefer the median to "
"be an actual data point rather than interpolated."
msgstr ""
#: ../Doc/library/statistics.rst:240
msgid ""
"Return the high median of data. If *data* is empty, :exc:`StatisticsError` "
"is raised. *data* can be a sequence or iterator."
msgstr ""
#: ../Doc/library/statistics.rst:243
msgid ""
"The high median is always a member of the data set. When the number of data "
"points is odd, the middle value is returned. When it is even, the larger of "
"the two middle values is returned."
msgstr ""
#: ../Doc/library/statistics.rst:254
msgid ""
"Use the high median when your data are discrete and you prefer the median to "
"be an actual data point rather than interpolated."
msgstr ""
#: ../Doc/library/statistics.rst:260
msgid ""
"Return the median of grouped continuous data, calculated as the 50th "
"percentile, using interpolation. If *data* is empty, :exc:`StatisticsError` "
"is raised. *data* can be a sequence or iterator."
msgstr ""
#: ../Doc/library/statistics.rst:269
msgid ""
"In the following example, the data are rounded, so that each value "
"represents the midpoint of data classes, e.g. 1 is the midpoint of the class "
"0.5--1.5, 2 is the midpoint of 1.5--2.5, 3 is the midpoint of 2.5--3.5, "
"etc. With the data given, the middle value falls somewhere in the class "
"3.5--4.5, and interpolation is used to estimate it:"
msgstr ""
#: ../Doc/library/statistics.rst:280
msgid ""
"Optional argument *interval* represents the class interval, and defaults to "
"1. Changing the class interval naturally will change the interpolation:"
msgstr ""
#: ../Doc/library/statistics.rst:290
msgid ""
"This function does not check whether the data points are at least *interval* "
"apart."
msgstr ""
#: ../Doc/library/statistics.rst:295
msgid ""
"Under some circumstances, :func:`median_grouped` may coerce data points to "
"floats. This behaviour is likely to change in the future."
msgstr ""
#: ../Doc/library/statistics.rst:300
msgid ""
"\"Statistics for the Behavioral Sciences\", Frederick J Gravetter and Larry "
"B Wallnau (8th Edition)."
msgstr ""
#: ../Doc/library/statistics.rst:303
msgid ""
"The `SSMEDIAN <https://help.gnome.org/users/gnumeric/stable/gnumeric."
"html#gnumeric-function-SSMEDIAN>`_ function in the Gnome Gnumeric "
"spreadsheet, including `this discussion <https://mail.gnome.org/archives/"
"gnumeric-list/2011-April/msg00018.html>`_."
msgstr ""
#: ../Doc/library/statistics.rst:311
msgid ""
"Return the single most common data point from discrete or nominal *data*. "
"The mode (when it exists) is the most typical value and serves as a measure "
"of central location."
msgstr ""
#: ../Doc/library/statistics.rst:315
msgid ""
"If there are multiple modes, returns the first one encountered in the "
"*data*. If the smallest or largest of multiple modes is desired instead, use "
"``min(multimode(data))`` or ``max(multimode(data))``. If the input *data* "
"is empty, :exc:`StatisticsError` is raised."
msgstr ""
#: ../Doc/library/statistics.rst:320
msgid ""
"``mode`` assumes discrete data, and returns a single value. This is the "
"standard treatment of the mode as commonly taught in schools:"
msgstr ""
#: ../Doc/library/statistics.rst:328
msgid ""
"The mode is unique in that it is the only statistic which also applies to "
"nominal (non-numeric) data:"
msgstr ""
#: ../Doc/library/statistics.rst:336
msgid ""
"Now handles multimodal datasets by returning the first mode encountered. "
"Formerly, it raised :exc:`StatisticsError` when more than one mode was found."
msgstr ""
#: ../Doc/library/statistics.rst:344
msgid ""
"Return a list of the most frequently occurring values in the order they were "
"first encountered in the *data*. Will return more than one result if there "
"are multiple modes or an empty list if the *data* is empty:"
msgstr ""
#: ../Doc/library/statistics.rst:360
msgid ""
"Return the population standard deviation (the square root of the population "
"variance). See :func:`pvariance` for arguments and other details."
msgstr ""
#: ../Doc/library/statistics.rst:371
msgid ""
"Return the population variance of *data*, a non-empty iterable of real-"
"valued numbers. Variance, or second moment about the mean, is a measure of "
"the variability (spread or dispersion) of data. A large variance indicates "
"that the data is spread out; a small variance indicates it is clustered "
"closely around the mean."
msgstr ""
#: ../Doc/library/statistics.rst:377
msgid ""
"If the optional second argument *mu* is given, it should be the mean of "
"*data*. If it is missing or ``None`` (the default), the mean is "
"automatically calculated."
msgstr ""
#: ../Doc/library/statistics.rst:381
msgid ""
"Use this function to calculate the variance from the entire population. To "
"estimate the variance from a sample, the :func:`variance` function is "
"usually a better choice."
msgstr ""
#: ../Doc/library/statistics.rst:385
msgid "Raises :exc:`StatisticsError` if *data* is empty."
msgstr ""
#: ../Doc/library/statistics.rst:387 ../Doc/library/statistics.rst:461
msgid "Examples:"
msgstr "Exemples :"
#: ../Doc/library/statistics.rst:395
msgid ""
"If you have already calculated the mean of your data, you can pass it as the "
"optional second argument *mu* to avoid recalculation:"
msgstr ""
#: ../Doc/library/statistics.rst:404
msgid ""
"This function does not attempt to verify that you have passed the actual "
"mean as *mu*. Using arbitrary values for *mu* may lead to invalid or "
"impossible results."
msgstr ""
#: ../Doc/library/statistics.rst:408
msgid "Decimals and Fractions are supported:"
msgstr ""
#: ../Doc/library/statistics.rst:422
msgid ""
"When called with the entire population, this gives the population variance "
"σ². When called on a sample instead, this is the biased sample variance s², "
"also known as variance with N degrees of freedom."
msgstr ""
#: ../Doc/library/statistics.rst:426
msgid ""
"If you somehow know the true population mean μ, you may use this function to "
"calculate the variance of a sample, giving the known population mean as the "
"second argument. Provided the data points are representative (e.g. "
"independent and identically distributed), the result will be an unbiased "
"estimate of the population variance."
msgstr ""
#: ../Doc/library/statistics.rst:435
msgid ""
"Return the sample standard deviation (the square root of the sample "
"variance). See :func:`variance` for arguments and other details."
msgstr ""
#: ../Doc/library/statistics.rst:446
msgid ""
"Return the sample variance of *data*, an iterable of at least two real-"
"valued numbers. Variance, or second moment about the mean, is a measure of "
"the variability (spread or dispersion) of data. A large variance indicates "
"that the data is spread out; a small variance indicates it is clustered "
"closely around the mean."
msgstr ""
#: ../Doc/library/statistics.rst:452
msgid ""
"If the optional second argument *xbar* is given, it should be the mean of "
"*data*. If it is missing or ``None`` (the default), the mean is "
"automatically calculated."
msgstr ""
#: ../Doc/library/statistics.rst:456
msgid ""
"Use this function when your data is a sample from a population. To calculate "
"the variance from the entire population, see :func:`pvariance`."
msgstr ""
#: ../Doc/library/statistics.rst:459
msgid "Raises :exc:`StatisticsError` if *data* has fewer than two values."
msgstr ""
#: ../Doc/library/statistics.rst:469
msgid ""
"If you have already calculated the mean of your data, you can pass it as the "
"optional second argument *xbar* to avoid recalculation:"
msgstr ""
#: ../Doc/library/statistics.rst:478
msgid ""
"This function does not attempt to verify that you have passed the actual "
"mean as *xbar*. Using arbitrary values for *xbar* can lead to invalid or "
"impossible results."
msgstr ""
#: ../Doc/library/statistics.rst:482
msgid "Decimal and Fraction values are supported:"
msgstr ""
#: ../Doc/library/statistics.rst:496
msgid ""
"This is the sample variance s² with Bessel's correction, also known as "
"variance with N-1 degrees of freedom. Provided that the data points are "
"representative (e.g. independent and identically distributed), the result "
"should be an unbiased estimate of the true population variance."
msgstr ""
#: ../Doc/library/statistics.rst:501
msgid ""
"If you somehow know the actual population mean μ you should pass it to the :"
"func:`pvariance` function as the *mu* parameter to get the variance of a "
"sample."
msgstr ""
#: ../Doc/library/statistics.rst:507
msgid ""
"Divide *dist* into *n* continuous intervals with equal probability. Returns "
"a list of ``n - 1`` cut points separating the intervals."
msgstr ""
#: ../Doc/library/statistics.rst:510
msgid ""
"Set *n* to 4 for quartiles (the default). Set *n* to 10 for deciles. Set "
"*n* to 100 for percentiles which gives the 99 cuts points that separate "
"*dist* in to 100 equal sized groups. Raises :exc:`StatisticsError` if *n* "
"is not least 1."
msgstr ""
#: ../Doc/library/statistics.rst:515
msgid ""
"The *dist* can be any iterable containing sample data or it can be an "
"instance of a class that defines an :meth:`~inv_cdf` method. For meaningful "
"results, the number of data points in *dist* should be larger than *n*. "
"Raises :exc:`StatisticsError` if there are not at least two data points."
msgstr ""
#: ../Doc/library/statistics.rst:520
msgid ""
"For sample data, the cut points are linearly interpolated from the two "
"nearest data points. For example, if a cut point falls one-third of the "
"distance between two sample values, ``100`` and ``112``, the cut-point will "
"evaluate to ``104``."
msgstr ""
#: ../Doc/library/statistics.rst:525
msgid ""
"The *method* for computing quantiles can be varied depending on whether the "
"data in *dist* includes or excludes the lowest and highest possible values "
"from the population."
msgstr ""
#: ../Doc/library/statistics.rst:529
msgid ""
"The default *method* is \"exclusive\" and is used for data sampled from a "
"population that can have more extreme values than found in the samples. The "
"portion of the population falling below the *i-th* of *m* sorted data points "
"is computed as ``i / (m + 1)``. Given nine sample values, the method sorts "
"them and assigns the following percentiles: 10%, 20%, 30%, 40%, 50%, 60%, "
"70%, 80%, 90%."
msgstr ""
#: ../Doc/library/statistics.rst:536
msgid ""
"Setting the *method* to \"inclusive\" is used for describing population data "
"or for samples that are known to include the most extreme values from the "
"population. The minimum value in *dist* is treated as the 0th percentile "
"and the maximum value is treated as the 100th percentile. The portion of the "
"population falling below the *i-th* of *m* sorted data points is computed as "
"``(i - 1) / (m - 1)``. Given 11 sample values, the method sorts them and "
"assigns the following percentiles: 0%, 10%, 20%, 30%, 40%, 50%, 60%, 70%, "
"80%, 90%, 100%."
msgstr ""
#: ../Doc/library/statistics.rst:545
msgid ""
"If *dist* is an instance of a class that defines an :meth:`~inv_cdf` method, "
"setting *method* has no effect."
msgstr ""
#: ../Doc/library/statistics.rst:568
msgid "Exceptions"
msgstr "Exceptions"
#: ../Doc/library/statistics.rst:570
msgid "A single exception is defined:"
msgstr ""
#: ../Doc/library/statistics.rst:574
msgid "Subclass of :exc:`ValueError` for statistics-related exceptions."
msgstr ""
#: ../Doc/library/statistics.rst:578
msgid ":class:`NormalDist` objects"
msgstr ""
#: ../Doc/library/statistics.rst:580
msgid ""
":class:`NormalDist` is a tool for creating and manipulating normal "
"distributions of a `random variable <http://www.stat.yale.edu/"
"Courses/1997-98/101/ranvar.htm>`_. It is a composite class that treats the "
"mean and standard deviation of data measurements as a single entity."
msgstr ""
#: ../Doc/library/statistics.rst:586
msgid ""
"Normal distributions arise from the `Central Limit Theorem <https://en."
"wikipedia.org/wiki/Central_limit_theorem>`_ and have a wide range of "
"applications in statistics."
msgstr ""
#: ../Doc/library/statistics.rst:592
msgid ""
"Returns a new *NormalDist* object where *mu* represents the `arithmetic mean "
"<https://en.wikipedia.org/wiki/Arithmetic_mean>`_ and *sigma* represents the "
"`standard deviation <https://en.wikipedia.org/wiki/Standard_deviation>`_."
msgstr ""
#: ../Doc/library/statistics.rst:597
msgid "If *sigma* is negative, raises :exc:`StatisticsError`."
msgstr ""
#: ../Doc/library/statistics.rst:601
msgid ""
"A read-only property for the `arithmetic mean <https://en.wikipedia.org/wiki/"
"Arithmetic_mean>`_ of a normal distribution."
msgstr ""
#: ../Doc/library/statistics.rst:607
msgid ""
"A read-only property for the `standard deviation <https://en.wikipedia.org/"
"wiki/Standard_deviation>`_ of a normal distribution."
msgstr ""
#: ../Doc/library/statistics.rst:613
msgid ""
"A read-only property for the `variance <https://en.wikipedia.org/wiki/"
"Variance>`_ of a normal distribution. Equal to the square of the standard "
"deviation."
msgstr ""
#: ../Doc/library/statistics.rst:619
msgid ""
"Makes a normal distribution instance computed from sample data. The *data* "
"can be any :term:`iterable` and should consist of values that can be "
"converted to type :class:`float`."
msgstr ""
#: ../Doc/library/statistics.rst:623
msgid ""
"If *data* does not contain at least two elements, raises :exc:"
"`StatisticsError` because it takes at least one point to estimate a central "
"value and at least two points to estimate dispersion."
msgstr ""
#: ../Doc/library/statistics.rst:629
msgid ""
"Generates *n* random samples for a given mean and standard deviation. "
"Returns a :class:`list` of :class:`float` values."
msgstr ""
#: ../Doc/library/statistics.rst:632
msgid ""
"If *seed* is given, creates a new instance of the underlying random number "
"generator. This is useful for creating reproducible results, even in a "
"multi-threading context."
msgstr ""
#: ../Doc/library/statistics.rst:638
msgid ""
"Using a `probability density function (pdf) <https://en.wikipedia.org/wiki/"
"Probability_density_function>`_, compute the relative likelihood that a "
"random variable *X* will be near the given value *x*. Mathematically, it is "
"the ratio ``P(x <= X < x+dx) / dx``."
msgstr ""
#: ../Doc/library/statistics.rst:644
msgid ""
"The relative likelihood is computed as the probability of a sample occurring "
"in a narrow range divided by the width of the range (hence the word \"density"
"\"). Since the likelihood is relative to other points, its value can be "
"greater than `1.0`."
msgstr ""
#: ../Doc/library/statistics.rst:651
msgid ""
"Using a `cumulative distribution function (cdf) <https://en.wikipedia.org/"
"wiki/Cumulative_distribution_function>`_, compute the probability that a "
"random variable *X* will be less than or equal to *x*. Mathematically, it "
"is written ``P(X <= x)``."
msgstr ""
#: ../Doc/library/statistics.rst:658
msgid ""
"Compute the inverse cumulative distribution function, also known as the "
"`quantile function <https://en.wikipedia.org/wiki/Quantile_function>`_ or "
"the `percent-point <https://www.statisticshowto.datasciencecentral.com/"
"inverse-distribution-function/>`_ function. Mathematically, it is written "
"``x : P(X <= x) = p``."
msgstr ""
#: ../Doc/library/statistics.rst:664
msgid ""
"Finds the value *x* of the random variable *X* such that the probability of "
"the variable being less than or equal to that value equals the given "
"probability *p*."
msgstr ""
#: ../Doc/library/statistics.rst:670
msgid ""
"Returns a value between 0.0 and 1.0 giving the overlapping area for the two "
"probability density functions."
msgstr ""
#: ../Doc/library/statistics.rst:673
msgid ""
"Instances of :class:`NormalDist` support addition, subtraction, "
"multiplication and division by a constant. These operations are used for "
"translation and scaling. For example:"
msgstr ""
#: ../Doc/library/statistics.rst:683
msgid ""
"Dividing a constant by an instance of :class:`NormalDist` is not supported "
"because the result wouldn't be normally distributed."
msgstr ""
#: ../Doc/library/statistics.rst:686
msgid ""
"Since normal distributions arise from additive effects of independent "
"variables, it is possible to `add and subtract two independent normally "
"distributed random variables <https://en.wikipedia.org/wiki/"
"Sum_of_normally_distributed_random_variables>`_ represented as instances of :"
"class:`NormalDist`. For example:"
msgstr ""
#: ../Doc/library/statistics.rst:706
msgid ":class:`NormalDist` Examples and Recipes"
msgstr ""
#: ../Doc/library/statistics.rst:708
msgid ":class:`NormalDist` readily solves classic probability problems."
msgstr ""
#: ../Doc/library/statistics.rst:710
msgid ""
"For example, given `historical data for SAT exams <https://blog.prepscholar."
"com/sat-standard-deviation>`_ showing that scores are normally distributed "
"with a mean of 1060 and a standard deviation of 192, determine the "
"percentage of students with test scores between 1100 and 1200, after "
"rounding to the nearest whole number:"
msgstr ""
#: ../Doc/library/statistics.rst:723
msgid ""
"Find the `quartiles <https://en.wikipedia.org/wiki/Quartile>`_ and `deciles "
"<https://en.wikipedia.org/wiki/Decile>`_ for the SAT scores:"
msgstr ""
#: ../Doc/library/statistics.rst:733
msgid ""
"To estimate the distribution for a model than isn't easy to solve "
"analytically, :class:`NormalDist` can generate input samples for a `Monte "
"Carlo simulation <https://en.wikipedia.org/wiki/Monte_Carlo_method>`_:"
msgstr ""
#: ../Doc/library/statistics.rst:750
msgid "Normal distributions commonly arise in machine learning problems."
msgstr ""
#: ../Doc/library/statistics.rst:752
msgid ""
"Wikipedia has a `nice example of a Naive Bayesian Classifier <https://en."
"wikipedia.org/wiki/Naive_Bayes_classifier#Sex_classification>`_. The "
"challenge is to predict a person's gender from measurements of normally "
"distributed features including height, weight, and foot size."
msgstr ""
#: ../Doc/library/statistics.rst:757
msgid ""
"We're given a training dataset with measurements for eight people. The "
"measurements are assumed to be normally distributed, so we summarize the "
"data with :class:`NormalDist`:"
msgstr ""
#: ../Doc/library/statistics.rst:770
msgid ""
"Next, we encounter a new person whose feature measurements are known but "
"whose gender is unknown:"
msgstr ""
#: ../Doc/library/statistics.rst:779
msgid ""
"Starting with a 50% `prior probability <https://en.wikipedia.org/wiki/"
"Prior_probability>`_ of being male or female, we compute the posterior as "
"the prior times the product of likelihoods for the feature measurements "
"given the gender:"
msgstr ""
#: ../Doc/library/statistics.rst:794
msgid ""
"The final prediction goes to the largest posterior. This is known as the "
"`maximum a posteriori <https://en.wikipedia.org/wiki/"
"Maximum_a_posteriori_estimation>`_ or MAP:"
msgstr ""