Difference between revisions of "Statistics"

Jump to navigation Jump to search
16,420 bytes added ,  05:30, 25 January 2021
no edit summary
(Created page with "{{short description|Study of the collection, analysis, interpretation, and presentation of data}} {{other uses|Statistics (disambiguation)}} {{StatsTopicTOC}} File:Standard...")
 
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{short description|Study of the collection, analysis, interpretation, and presentation of data}}
{{Template:Shortcut}}
{{other uses|Statistics (disambiguation)}}
<div style="float: right; margin-left: 12px">__TOC__</div>
{{StatsTopicTOC}}
 
For other uses, see [[Statistics (disambiguation)]].
 
[[File:Standard Normal Distribution.png|thumb|upright=1.3|right|The [[normal distribution]], a very common [[Probability density function|probability density]], useful because of the [[central limit theorem]].]]
[[File:Standard Normal Distribution.png|thumb|upright=1.3|right|The [[normal distribution]], a very common [[Probability density function|probability density]], useful because of the [[central limit theorem]].]]
[[File:Scatterplot.jpg|thumb|upright=1.3|right|[[Scatter plot]]s are used in descriptive statistics to show the observed relationships between different variables.]]
[[File:Iris Pairs Plot.png|thumb|upright=1.3|right|[[Scatter plot]]s are used in descriptive statistics to show the observed relationships between different variables, here using the [[Iris flower data set]].]]
<!--PLEASE DO NOT EDIT THE OPENING SENTENCE WITHOUT FIRST PROPOSING YOUR CHANGE AT THE TALK PAGE.-->
'''Statistics''' is the discipline that concerns the collection, organization, analysis, interpretation and presentation of data.<ref name=ox>{{cite web | title=Oxford Reference|url=https://www.oxfordreference.com/view/10.1093/acref/9780199541454.001.0001/acref-9780199541454-e-1566?rskey=nxhBLl&result=1979}}</ref><ref>{{cite encyclopedia |first=Jan-Willem |last=Romijn |year=2014 |title=Philosophy of statistics |encyclopedia=Stanford Encyclopedia of Philosophy |url=http://plato.stanford.edu/entries/statistics/}}</ref><ref>{{cite web | title=Cambridge Dictionary | url=https://dictionary.cambridge.org/dictionary/english/statistics}}</ref> In applying statistics to a scientific, industrial, or social problem, it is conventional to begin with a [[statistical population]] or a [[statistical model]] to be studied. Populations can be diverse groups of people or objects such as "all people living in a country" or "every atom composing a crystal". Statistics deals with every aspect of data, including the planning of data collection in terms of the design of [[statistical survey|surveys]] and [[experimental design|experiments]].<ref name=Dodge>Dodge, Y. (2006) ''The Oxford Dictionary of Statistical Terms'', Oxford University Press. {{isbn|0-19-920613-9}}</ref> See [[glossary of probability and statistics]].
 
 
You can use [[LibreOffice Calc]], [[Microsoft Excel]], [[SPSS]], [[Python]], and [[R]] to calculate statistics data.
 
 
* Run R code online
https://rdrr.io/snippets/
 
 
* compile R online
https://rextester.com/l/r_online_compiler
 
== Python ==
Open a [[terminal]]. Choose and input one of the below three [[command]]s.
 
lsb_release -a
cat /etc/lsb-release
cat /etc/issue
 
[[Ubuntu Linux]] 20.10
 
 
python3 --version
 
[[Python]] 3.8.6
 
 
 
 
# scipy
import scipy
print('scipy: {}'.format(scipy.__version__))
# numpy
import numpy
print('numpy: {}'.format(numpy.__version__))
# matplotlib
import matplotlib
print('matplotlib: {}'.format(matplotlib.__version__))
# pandas
import pandas
print('pandas: {}'.format(pandas.__version__))
 
Execute the above [[source code]] and confirm whether or not [[scipy]], [[numpy]], [[matplotlib]], and [[pandas]] are installed.
 
If they are not installed, you can install [[SciPy]], [[NumPy]], [[Matplotlib]], [[pandas]] with the below [[command]]s.
 
pip3 install pandas
pip3 install scipy
pip3 install matplotlib
 
"numpy" will be installed altogether when "pandas" is installed.
 
 
=== Parametric statistics ===
[[Parametric statistics]]
 
==== Z-test ====
[[Z-test]]
 
 
Z-test is a test for the proportions. In other words this is a statistical test that helps us evaluate our beliefs about certain proportions in the population based on the sample at hand.
 
 
This can help us answer the questions like:
* is the proportion of female students at SKEMA equal to 0.5.
* is the proportion of smokers in France equal to 0.15.
 
 
For conducting Z-test you do not need much calculations on your sample data. The only thing you need to know is the proportion of observations that qualify to belong to the sub-sample you are interested in (e.g. a “female SKEMA student”, or a “French smoker” in examples above).
 
 
We will use the dataset on cars in the US for learning purposes. This contains a list of 32 cars and their characteristics.
 
 
In the simplest example involving the data at hand, we can ask the question whether the share of cars with variable “am” being equal to 0 is equal to 50%.
 
 
Function used for z-testing is "scipy.stats.binom_test". It requires three arguments x - number of qualified observations in our data (19 in our case) n - number of total observations (32 in our case) p - the null hypothesis on the share of qualified data (0.5 in our case)
 
 
Output of the test gives rich information about the test:
* It specifies the alternative hypothesis (by default it is set to conduct a two-sided test, so the alternative hypothesis is that the share is not equal to the proportion specified in the null hypotheses. However, we will see how to adjust this in next chapter)
* It specifies the confidence level and interval
* However, by default, it only returns the most important piece of information - the p-value of the test
 
 
This value can be understood as the probability that we are making a mistake if we reject our null hypothesis in favor of the alternative one. In this case this probability is 37.7% which is very high (anything above 10% is high), which would prompt us to conclude that we do not have enough statistical evidence to claim that the share of cars with am=0 was not 50% in the population.
 
 
 
* Use "value_counts()" function to display th frequency distribution of the desired variable
* Test whether the share of cars with the number of cylinders less than 6 is equal to 0.6
* What is your conclusion about the test on number of cylinders?
 
 
 
# Load the libraries
import pandas as pd
from scipy.stats import binom_test
# Load the dataset
df = pd.read_csv("https://gist.githubusercontent.com/seankross/a412dfbd88b3db70b74b/raw/5f23f993cd87c283ce766e7ac6b329ee7cc2e1d1/mtcars.csv")
# In order to conduct a test we need our three inputs.
# Nul hypotheses is whether the share of cars with am=0 is equal to 50%. This (0.5 - a share!) is out first input (p).
# The two other inputs are the number of total observations in our dataset (n) and the number of observations satisfying the condition we are testing for [i.e. am=0] (x)
# We can get both of this information by diplaying (not plotting!) a simple frequency distribution of our am variable
# We can do this by using .value_counts() function
print(df.am.value_counts())
print('\n')
# This shows that x=19.
# By adding all frequencies, we can get the total number of observations in the dataset (n=32)
# Now we are ready to run the test (i.e. calculating the p-value of our test):
print(binom_test(x = 19, n = 32, p = 0.5))
print("\n")
# [DIY] Calculate how many cars in the dataset have less than 6 cylinders
print(df.cyl.value_counts())
print('\n')
# [DIY] Test (calculate the p-value) whether we have enough statistical evidence to claim that the share of cars with less than 6 cilinders is not 60%
print(binom_test(x = 11, n = 32, p = 0.6))
 
 
 
Result:
 
0    19
1    13
Name: am, dtype: int64
0.37708558747544885
8    14
4    11
6    7
Name: cyl, dtype: int64
0.003708023361985829
 
==== t-test ====
[[Student's t-test]] ([[t-test]])
 
 
 
Unpaired and paired two-sample t-tests
 
Independent (unpaired) samples
 
Paired samples
 
 
 
There are multiple statistical hypothesis tests out there. Each test aims to find if there is a difference in one of many statistical properties. Statistical properties include the standard deviation, '''average''' or variance for example. The T-Test is used to determine if the mean (average) of two groups are truly different.
 
It is also called the Student’s T-Test. <ins>Not</ins> because it’s used in college! But rather, because its inventor, William Sealy Gosset, used the pseudonym ''Student''.
 
=====When to use the T-Test?=====
You use the T-Test when you will be comparing the '''means''' of two samples. If you have more than 2 samples, you will have to run a pairwise T-Test on all samples or use another statistical hypothesis method called Anova.
 
When you don’t know the population’s mean and standard deviation. In the T-Test, you are comparing 2 samples of an unknown population. A sample is a randomly chosen set of data points from a population. If you do know the population’s mean and standard deviation, you would run a Z-Test instead.
 
When you have a small number of samples. The T-Test is commonly used when you have less than 30 samples in each of the groups you are running the T-Test on.
 
If you have less than 30 samples in each of the groups, you run the T-Test if you can assume the population follows a normal distribution. As mentioned previously, the T-Test is commonly used on smaller sample sizes. You use the T-Test if the samples follow a normal distribution. Why is this allowed? You can thank the [[Central Limit Theorem]] for this.
 
=====Types of T-Test=====
There are three types of T-Tests that you can run.
 
 
A first is the '''Independent Sample T-Test'''. In this type of test, you are comparing the average of two independent unrelated groups. Meaning, you are comparing samples from two different populations and are testing whether or not they have a different average.
 
 
You can also run a '''Paired Sample T-Test'''. In this test, you compare the average of two samples taken from the same population but at different points in time. A simple example would be when you would like to test the means of before and after observations taken from the same target.
 
 
Lastly, you could also run a '''One-Sample T-Test''', where we test if the average of a single group is different from a known average or hypothesized average.
 
=====Python Independent Sample T-Test=====
To run an Independent Sample T-Test using python, let us first generate 2 samples of 50 observations each. Sample '''A''' is taken from a population of mean 55 and a standard deviation of 20. Sample '''B''' is taken from a population of mean 50 and a standard deviation of 15.
 
 
Using the [[seaborn]] python library to generate a histogram of our 2 samples outputs the following.
 
Install [[seaborn]].
 
pip3 install seaborn
 
 
We are ready to test statistically whether these two samples have a different mean using the T-Test. To do so first, we have to define our '''Null and Alternate Hypothesis'''.
 
* Null Hypothesis: µ<sub>a</sub> = µ<sub>b</sub> (the means of both populations are equal)
* Alternate Hypothesis: µ<sub>a</sub> ≠ µ<sub>b</sub> (the means of both populations are not equal)
 
 
Python has a popular statistical package called [[scipy]] which has implemented the T-Test in its statistics module. To run a Python Independent Sample T-Test we do so as below.
 
Important to note, we are specifying that the population does not have equal variance passing along False for the equal_var parameter. We know this because both samples were taken from populations with different standard deviations. Normally you wouldn’t know this is true and would have to run a Levene Test for Equal Variances.
 
 
import random
random.seed(20) #for results to be recreated
N = 50 #number of samples to take from each population
a = [random.gauss(55,20) for x in range(N)] #take N samples from population A
b = [random.gauss(50,15) for x in range(N)] #take N samples from population B
from scipy import stats
tStat, pValue = stats.ttest_ind(a, b, equal_var = False) #run independent sample T-Test
print("P-Value:{0} T-Statistic:{1}".format(pValue,tStat)) #print the P-Value and the T-Statistic
import seaborn as sns
import matplotlib.pyplot as plt
sns.kdeplot(a, shade=True)
sns.kdeplot(b, shade=True)
plt.title("Independent Sample T-Test")
plt.show()
 
 
Result:
P-Value:0.017485741540118758 T-Statistic:2.421942924642376
 
 
The stats '''ttest_ind''' function runs the independent sample T-Test and outputs a P-Value and the Test-Statistic. In this example, there is enough evidence to <ins>reject</ins> the Null Hypothesis as the P-Value is low (typically ≤ 0.05).
 
=====Python Paired Sample T-Test=====
In a Paired Sample T-Test, we will test whether the averages of 2 samples taken from the <ins>same</ins> population are different or not.
 
 
Taking two sets of observations from the same population generates a pair of samples, reason why it is called the Paired Sample Test.
 
 
For instance, let’s imagine you have a target process you are experimenting with. At time t, you take 30 samples. Next, you implement a process change hoping to increase the average. The code below generates the data needed for this experiment.
 
 
With the data on hand, we will now run the Paired Sample T-Test. T
 
* Null Hypothesis: µ<sub>d</sub> = 0 (the mean difference (d) between both samples is equal to zero)
* Alternate Hypothesis: µ<sub>d</sub> ≠ 0 (the mean difference (d) between both samples is not equal to zero )
 
 
The python package [[Scipy]] has implemented the Paired Sample T-Test in its '''ttest_rel''' function. Let’s run this below.
 
 
import random
random.seed(20) #for results to be recreated
N = 30 #number of samples to take from each population
a = [random.gauss(50,15) for x in range(N)] #take N samples from population A at time T
b = [random.gauss(60,15) for x in range(N)] #take N samples from population A at time T+x
from scipy import stats
tStat, pValue =  stats.ttest_rel(a, b)
print("P-Value:{0} T-Statistic:{1}".format(pValue,tStat)) #print the P-Value and the T-Statistic
 
 
Result:
 
P-Value:0.007834002687720412 T-Statistic:-2.856841146891359
 
 
As expected, since we generated the data, we can reject the null hypothesis and accept the alternative hypothesis that the mean difference between both samples is not equal to zero.
 
 
=====Python One-Sample T-Test=====
In the One-Sample T-Test, we test the hypothesis of whether the population average is equal to a specified average. The null and alternative hypotheses are stated below.
 
* Null Hypothesis: µ<sub>a</sub>  = X (the population mean is equal to a mean of X)
* Alternate Hypothesis: µ<sub>a</sub> ≠ X (he population mean is not equal to a mean of X )
 
 
As has been usual in this tutorial, let us generate some data to utilize. We take 30 samples from a population with mean 50 and standard deviation 15. We will test whether the population mean is equal to 50.5. The variable ''popmean'' holds this value.
 
 
The Python [[Scipy]] packages makes conducting a One-Sample T-Test a breeze through their '''ttest_1samp''' function of the stats package.
 
 
 
import random
random.seed(20) #for results to be recreated
N = 30 #number of samples to take from each population
a = [random.gauss(50,15) for x in range(N)] #take N samples from population A
popmean = 50.5  #hypothesized population mean
from scipy import stats
tStat, pValue =  stats.ttest_1samp(a, popmean, axis=0)
print("P-Value:{0} T-Statistic:{1}".format(pValue,tStat)) #print the P-Value and the T-Statistic
 


<!--PLEASE DO NOT EDIT THE OPENING SENTENCE WITHOUT FIRST PROPOSING YOUR CHANGE AT THE TALK PAGE.-->'''Statistics''' is a branch of [[mathematics]] working with [[data]] collection, organization, analysis, interpretation and presentation.<ref name=Dodge>Dodge, Y. (2006) ''The Oxford Dictionary of Statistical Terms'', Oxford University Press. {{isbn|0-19-920613-9}}</ref><ref>{{cite encyclopedia |first=Jan-Willem |last=Romijn |year=2014 |title=Philosophy of statistics |encyclopedia=Stanford Encyclopedia of Philosophy |url=http://plato.stanford.edu/entries/statistics/}}</ref> In applying statistics to a scientific, industrial, or social problem, it is conventional to begin with a [[statistical population]] or a [[statistical model]] to be studied. Populations can be diverse groups of people or objects such as "all people living in a country" or "every atom composing a crystal". Statistics deals with every aspect of data, including the planning of data collection in terms of the design of [[statistical survey|surveys]] and [[experimental design|experiments]].<ref name=Dodge/>
Result:
See [[glossary of probability and statistics]].


P-Value:0.5340949682112062 T-Statistic:0.6292755379958038
What do you think? Do we reject or fail to reject the null hypothesis?
Since the P-Value is not low, 0.5 in this case, we fail to reject the Null Hypothesis. Statistically speaking, there is not enough evidence to conclude that the population average (mean) is not equal to 50.5.
==== Chi-squared test ====
[[Chi-squared test]]
==== Regression analysis ====
[[Regression analysis]]
[[Linear regression]]
==== Analysis of variance ====
[[Analysis of variance]] ([[ANOVA]])
One-way (one factor) ANOVA
==== Pearson correlation coefficient ====
[[Pearson correlation coefficient]]
=== Nonparametric statistics ===
[[Nonparametric statistics]]
[[Rank test]]
==== Wilcoxon signed-rank test ====
[[Wilcoxon signed-rank test]]
==== Kruskal–Wallis one-way analysis of variance ====
[[Kruskal–Wallis one-way analysis of variance]]
==== Mann-Whitney U test ====
[[Mann–Whitney U test]]
[[Mann-Whitney rank test]]
==== Spearman's rank correlation coefficient ====
[[Spearman's rank correlation coefficient]]
== Introduction ==
When [[census]] data cannot be collected, [[statistician]]s collect data by developing specific experiment designs and survey [[sample (statistics)|samples]]. Representative sampling assures that inferences and conclusions can reasonably extend from the sample to the population as a whole. An [[experimental study]] involves taking measurements of the system under study, manipulating the system, and then taking additional measurements using the same procedure to determine if the manipulation has modified the values of the measurements. In contrast, an [[observational study]] does not involve experimental manipulation.
When [[census]] data cannot be collected, [[statistician]]s collect data by developing specific experiment designs and survey [[sample (statistics)|samples]]. Representative sampling assures that inferences and conclusions can reasonably extend from the sample to the population as a whole. An [[experimental study]] involves taking measurements of the system under study, manipulating the system, and then taking additional measurements using the same procedure to determine if the manipulation has modified the values of the measurements. In contrast, an [[observational study]] does not involve experimental manipulation.


Two main statistical methods are used in [[data analysis]]: [[descriptive statistics]], which summarize data from a sample using [[Index (statistics)|indexes]] such as the [[mean]] or [[standard deviation]], and [[statistical inference|inferential statistics]], which draw conclusions from data that are subject to random variation (e.g., observational errors, sampling variation).<ref name=LundResearchLtd>{{cite web|last=Lund Research Ltd. |url=https://statistics.laerd.com/statistical-guides/descriptive-inferential-statistics.php |title=Descriptive and Inferential Statistics |publisher=statistics.laerd.com |accessdate=2014-03-23}}</ref> Descriptive statistics are most often concerned with two sets of properties of a ''distribution'' (sample or population): ''[[central tendency]]'' (or ''location'') seeks to characterize the distribution's central or typical value, while ''[[statistical dispersion|dispersion]]'' (or ''variability'') characterizes the extent to which members of the distribution depart from its center and each other. Inferences on mathematical statistics are made under the framework of [[probability theory]], which deals with the analysis of random phenomena.
Two main statistical methods are used in [[data analysis]]: [[descriptive statistics]], which summarize data from a sample using [[Index (statistics)|indexes]] such as the [[mean]] or [[standard deviation]], and [[statistical inference|inferential statistics]], which draw conclusions from data that are subject to random variation (e.g., observational errors, sampling variation).<ref name=LundResearchLtd>{{cite web|last=Lund Research Ltd. |url=https://statistics.laerd.com/statistical-guides/descriptive-inferential-statistics.php |title=Descriptive and Inferential Statistics |publisher=statistics.laerd.com |accessdate=2014-03-23}}</ref> Descriptive statistics are most often concerned with two sets of properties of a ''distribution'' (sample or population): ''[[central tendency]]'' (or ''location'') seeks to characterize the distribution's central or typical value, while ''[[statistical dispersion|dispersion]]'' (or ''variability'') characterizes the extent to which members of the distribution depart from its center and each other. Inferences on [[mathematical statistics]] are made under the framework of [[probability theory]], which deals with the analysis of random phenomena.


A standard statistical procedure involves the [[statistical hypothesis testing|test of the relationship]] between two statistical data sets, or a data set and synthetic data drawn from an idealized model. A hypothesis is proposed for the statistical relationship between the two data sets, and this is compared as an [[alternative hypothesis|alternative]] to an idealized [[null hypothesis]] of no relationship between two data sets. Rejecting or disproving the null hypothesis is done using statistical tests that quantify the sense in which the null can be proven false, given the data that are used in the test. Working from a null hypothesis, two basic forms of error are recognized: [[Type I error]]s (null hypothesis is falsely rejected giving a "false positive") and [[Type II error]]s (null hypothesis fails to be rejected and an actual difference between populations is missed giving a "false negative").<ref>{{Cite web|title = What Is the Difference Between Type I and Type II Hypothesis Testing Errors?|url = http://statistics.about.com/od/Inferential-Statistics/a/Type-I-And-Type-II-Errors.htm|website = About.com Education|accessdate = 2015-11-27}}</ref> Multiple problems have come to be associated with this framework: ranging from obtaining a sufficient sample size to specifying an adequate null hypothesis. {{Citation needed|date=April 2015}}
A standard statistical procedure involves the [[statistical hypothesis testing|test of the relationship]] between two statistical data sets, or a data set and synthetic data drawn from an idealized model. A hypothesis is proposed for the statistical relationship between the two data sets, and this is compared as an [[alternative hypothesis|alternative]] to an idealized [[null hypothesis]] of no relationship between two data sets. Rejecting or disproving the null hypothesis is done using statistical tests that quantify the sense in which the null can be proven false, given the data that are used in the test. Working from a null hypothesis, two basic forms of error are recognized: [[Type I error]]s (null hypothesis is falsely rejected giving a "false positive") and [[Type II error]]s (null hypothesis fails to be rejected and an actual relationship between populations is missed giving a "false negative").<ref>{{Cite web|title = What Is the Difference Between Type I and Type II Hypothesis Testing Errors?|url = http://statistics.about.com/od/Inferential-Statistics/a/Type-I-And-Type-II-Errors.htm|website = About.com Education|accessdate = 2015-11-27}}</ref> Multiple problems have come to be associated with this framework: ranging from obtaining a sufficient sample size to specifying an adequate null hypothesis. {{Citation needed|date=April 2015}}


Measurement processes that generate statistical data are also subject to error. Many of these errors are classified as random (noise) or systematic ([[Bias (statistics)|bias]]), but other types of errors (e.g., blunder, such as when an analyst reports incorrect units) can also occur. The presence of [[missing data]] or [[censoring (statistics)|censoring]] may result in biased estimates and specific techniques have been developed to address these problems.
Measurement processes that generate statistical data are also subject to error. Many of these errors are classified as random (noise) or systematic ([[Bias (statistics)|bias]]), but other types of errors (e.g., blunder, such as when an analyst reports incorrect units) can also occur. The presence of [[missing data]] or [[censoring (statistics)|censoring]] may result in biased estimates and specific techniques have been developed to address these problems.


Statistics can be said to have begun in ancient civilization, going back at least to the 5th century BC, but it was not until the 18th century that it started to draw more heavily from [[calculus]] and [[probability theory]]. In more recent years statistics has relied more on statistical software to produce tests such as descriptive analysis.<ref>{{cite web|url=https://www.answers.org.za/index.php/tutorials|title= How to Calculate Descriptive Statistics|publisher=Answers Consulting|date=2018-02-03}}</ref>
The earliest writings on [[probability and statistics]], statistical methods drawing from [[probability theory]], date back to [[Mathematics in medieval Islam|Arab mathematicians]] and [[cryptographers]], notably [[Al-Khalil ibn Ahmad al-Farahidi|Al-Khalil]] (717–786)<ref name="LB"/> and [[Al-Kindi]] (801–873).<ref name=sim2000/><ref name=ibr1992/> In the 18th century, statistics also started to draw heavily from [[calculus]]. In more recent years statistics has relied more on statistical software to produce these tests such as descriptive analysis.<ref>{{cite web|url=https://www.answers.org.za/index.php/tutorials|title= How to Calculate Descriptive Statistics|publisher=Answers Consulting|date=2018-02-03}}</ref>


{{TOC limit|3}}


== Introduction ==
{{Main|Outline of statistics}}
{{Main|Outline of statistics}}


Some definitions are:
Statistics is a mathematical body of science that pertains to the collection, analysis, interpretation or explanation, and presentation of [[data]],<ref>Moses, Lincoln E. (1986) ''Think and Explain with Statistics'', Addison-Wesley, {{isbn|978-0-201-15619-5}}. pp. 1–3</ref> or as a branch of [[mathematics]].<ref>Hays, William Lee, (1973) ''Statistics for the Social Sciences'', Holt, Rinehart and Winston, p.xii, {{isbn|978-0-03-077945-9}}</ref> Some consider statistics to be a distinct mathematical science rather than a branch of mathematics. While many scientific investigations make use of data, statistics is concerned with the use of data in the context of uncertainty and decision making in the face of uncertainty.<ref>{{cite book |last=Moore |first=David |title=Statistics for the Twenty-First Century |publisher=The Mathematical Association of America |editor=F. Gordon |editor2=S. Gordon |location=Washington, DC |year=1992 |pages=[https://archive.org/details/statisticsfortwe0000unse/page/14 14–25] |chapter=Teaching Statistics as a Respectable Subject |isbn=978-0-88385-078-7 |chapter-url=https://archive.org/details/statisticsfortwe0000unse/page/14 }}
* ''Merriam-Webster dictionary'' defines statistics as "a branch of mathematics dealing with the collection, analysis, interpretation, and presentation of masses of numerical data."<ref>{{Cite web|url=http://www.merriam-webster.com/dictionary/statistics|title=Definition of STATISTICS|website=www.merriam-webster.com|access-date=2016-05-28}}</ref>
* Statistician [[Arthur Lyon Bowley]] defines statistics as "Numerical statements of facts in any department of inquiry placed in relation to each other."<ref>{{Cite web|url=http://www.economicsdiscussion.net/essays/essay-on-statistics-meaning-and-definition-of-statistics/2315|title=Essay on Statistics: Meaning and Definition of Statistics|date=2014-12-02|website=Economics Discussion|language=en-US|access-date=2016-05-28}}</ref>
 
Statistics is a mathematical body of science that pertains to the collection, analysis, interpretation or explanation, and presentation of [[data]],<ref>Moses, Lincoln E. (1986) ''Think and Explain with Statistics'', Addison-Wesley, {{isbn|978-0-201-15619-5}}. pp. 1–3</ref> or as a branch of [[mathematics]].<ref>Hays, William Lee, (1973) ''Statistics for the Social Sciences'', Holt, Rinehart and Winston, p.xii, {{isbn|978-0-03-077945-9}}</ref> Some consider statistics to be a distinct mathematical science rather than a branch of mathematics. While many scientific investigations make use of data, statistics is concerned with the use of data in the context of uncertainty and decision making in the face of uncertainty.<ref>{{cite book |last=Moore |first=David |title=Statistics for the Twenty-First Century |publisher=The Mathematical Association of America |editor=F. Gordon |editor2=S. Gordon |location=Washington, DC |year=1992 |pages=14–25 |chapter=Teaching Statistics as a Respectable Subject |isbn=978-0-88385-078-7}}
</ref><ref>{{cite book |last=Chance |first=Beth L. |author2=Rossman, Allan J.  |title=Investigating Statistical Concepts, Applications, and Methods |publisher=Duxbury Press |year=2005 |chapter=Preface |isbn=978-0-495-05064-3 |chapter-url=http://www.rossmanchance.com/iscam/preface.pdf}}</ref>
</ref><ref>{{cite book |last=Chance |first=Beth L. |author2=Rossman, Allan J.  |title=Investigating Statistical Concepts, Applications, and Methods |publisher=Duxbury Press |year=2005 |chapter=Preface |isbn=978-0-495-05064-3 |chapter-url=http://www.rossmanchance.com/iscam/preface.pdf}}</ref>


In applying statistics to a problem, it is common practice to start with a [[statistical population|population]] or process to be studied. Populations can be diverse topics such as "all people living in a country" or "every atom composing a crystal".
In applying statistics to a problem, it is common practice to start with a [[statistical population|population]] or process to be studied. Populations can be diverse topics such as "all people living in a country" or "every atom composing a crystal". Ideally, statisticians compile data about the entire population (an operation called [[census]]). This may be organized by governmental statistical institutes. ''[[Descriptive statistics]]'' can be used to summarize the population data. Numerical descriptors include [[mean]] and [[standard deviation]] for [[Continuous probability distribution|continuous data]] types (like income), while frequency and percentage are more useful in terms of describing [[categorical data]] (like education).
 
Ideally, statisticians compile data about the entire population (an operation called [[census]]). This may be organized by governmental statistical institutes. ''[[Descriptive statistics]]'' can be used to summarize the population data. Numerical descriptors include [[mean]] and [[standard deviation]] for [[Continuous probability distribution|continuous data]] types (like income), while frequency and percentage are more useful in terms of describing [[categorical data]] (like education).


When a census is not feasible, a chosen subset of the population called a [[sampling (statistics)|sample]] is studied. Once a sample that is representative of the population is determined, data is collected for the sample members in an observational or [[experiment]]al setting. Again, descriptive statistics can be used to summarize the sample data. However, the drawing of the sample has been subject to an element of randomness, hence the established numerical descriptors from the sample are also due to uncertainty. To still draw meaningful conclusions about the entire population, ''[[inferential statistics]]'' is needed. It uses patterns in the sample data to draw inferences about the population represented, accounting for randomness. These inferences may take the form of: answering yes/no questions about the data ([[hypothesis testing]]), estimating numerical characteristics of the data ([[Estimation theory|estimation]]), describing [[Association (statistics)|associations]] within the data ([[correlation and dependence|correlation]]) and modeling relationships within the data (for example, using [[regression analysis]]).  Inference can extend to [[forecasting]], [[prediction]] and estimation of unobserved values either in or associated with the population being studied; it can include [[extrapolation]] and [[interpolation]] of [[time series]] or [[spatial data analysis|spatial data]], and can also include [[data mining]].
When a census is not feasible, a chosen subset of the population called a [[sampling (statistics)|sample]] is studied. Once a sample that is representative of the population is determined, data is collected for the sample members in an observational or [[experiment]]al setting. Again, descriptive statistics can be used to summarize the sample data. However, the drawing of the sample has been subject to an element of randomness, hence the established numerical descriptors from the sample are also due to uncertainty. To still draw meaningful conclusions about the entire population, ''[[inferential statistics]]'' is needed. It uses patterns in the sample data to draw inferences about the population represented, accounting for randomness. These inferences may take the form of: answering yes/no questions about the data ([[hypothesis testing]]), estimating numerical characteristics of the data ([[Estimation theory|estimation]]), describing [[Association (statistics)|associations]] within the data ([[correlation and dependence|correlation]]) and modeling relationships within the data (for example, using [[regression analysis]]).  Inference can extend to [[forecasting]], [[prediction]] and estimation of unobserved values either in or associated with the population being studied; it can include [[extrapolation]] and [[interpolation]] of [[time series]] or [[spatial data analysis|spatial data]], and can also include [[data mining]].
Line 47: Line 377:
{{main|History of statistics|Founders of statistics}}
{{main|History of statistics|Founders of statistics}}


The earliest writing on statistics was found in a 9th-century book entitled ''Manuscript on Deciphering Cryptographic Messages'', written by Arab scholar [[Al-Kindi]] (801–873). In his book, Al-Kindi gave a detailed description of how to use statistics and [[frequency analysis]] to decipher [[encrypted]] messages. This text laid the foundations for statistics and [[cryptanalysis]].<ref name=sim2000>{{cite book|last=Singh|first=Simon|authorlink=Simon Singh|title=The code book : the science of secrecy from ancient Egypt to quantum cryptography|year=2000|publisher=Anchor Books|location=New York|isbn=978-0-385-49532-5|edition=1st Anchor Books|title-link=The code book : the science of secrecy from ancient Egypt to quantum cryptography}}</ref><ref name=ibr1992>Ibrahim A. Al-Kadi "The origins of cryptology: The Arab contributions", ''[[Cryptologia]]'', 16(2) (April 1992) pp. 97&ndash;126.</ref> Al-Kindi also made the earliest known use of [[statistical inference]], while he and other Arab cryptologists developed the early statistical methods for [[Code|decoding]] encrypted messages. [[Mathematics in medieval Islam|Arab mathematicians]] including Al-Kindi, [[Al-Khalil ibn Ahmad al-Farahidi|Al-Khalil]] (717–786) and [[Ibn Adlan]] (1187–1268) used forms of [[probability and statistics]], with one of Ibn Adlan's most important contributions being on [[sample size]] for use of frequency analysis.<ref name="LB">{{cite journal|last=Broemeling|first=Lyle D.|title=An Account of Early Statistical Inference in Arab Cryptology|journal=The American Statistician|date=1 November 2011|volume=65|issue=4|pages=255–257|doi=10.1198/tas.2011.10191}}</ref>
The earliest writings on [[probability and statistics]] date back to [[Mathematics in medieval Islam|Arab mathematicians]] and [[cryptographers]], during the [[Islamic Golden Age]] between the 8th and 13th centuries. [[Al-Khalil ibn Ahmad al-Farahidi|Al-Khalil]] (717–786) wrote the ''Book of Cryptographic Messages'', which contains the first use of [[permutations and combinations]], to list all possible [[Arabic language|Arabic]] words with and without vowels.<ref name="LB">{{cite journal|last=Broemeling|first=Lyle D.|title=An Account of Early Statistical Inference in Arab Cryptology|journal=The American Statistician|date=1 November 2011|volume=65|issue=4|pages=255–257|doi=10.1198/tas.2011.10191}}</ref> The earliest book on statistics is the 9th-century treatise ''Manuscript on Deciphering Cryptographic Messages'', written by Arab scholar [[Al-Kindi]] (801–873). In his book, Al-Kindi gave a detailed description of how to use statistics and [[frequency analysis]] to decipher [[encrypted]] messages. This text laid the foundations for statistics and [[cryptanalysis]].<ref name=sim2000>{{cite book|last=Singh|first=Simon|authorlink=Simon Singh|title=The code book : the science of secrecy from ancient Egypt to quantum cryptography|year=2000|publisher=Anchor Books|location=New York|isbn=978-0-385-49532-5|edition=1st Anchor Books|title-link=The code book : the science of secrecy from ancient Egypt to quantum cryptography}}</ref><ref name=ibr1992>Ibrahim A. Al-Kadi "The origins of cryptology: The Arab contributions", ''[[Cryptologia]]'', 16(2) (April 1992) pp. 97&ndash;126.</ref> Al-Kindi also made the earliest known use of [[statistical inference]], while he and later Arab cryptographers developed the early statistical methods for [[Code|decoding]] encrypted messages. [[Ibn Adlan]] (1187–1268) later made an important contribution, on the use of [[sample size]] in frequency analysis.<ref name="LB"/>


The earliest European writing on statistics dates back to 1663, with the publication of ''Natural and Political Observations upon the Bills of Mortality'' by [[John Graunt]].<ref>Willcox, Walter (1938) "The Founder of Statistics". ''Review of the [[International Statistical Institute]]'' 5(4): 321–328. {{jstor|1400906}}</ref> Early applications of statistical thinking revolved around the needs of states to base policy on demographic and economic data, hence its [[History of statistics#Etymology|''stat-'' etymology]]. The scope of the discipline of statistics broadened in the early 19th century to include the collection and analysis of data in general. Today, statistics is widely employed in government, business, and natural and social sciences.
The earliest European writing on statistics dates back to 1663, with the publication of ''[[Natural and Political Observations upon the Bills of Mortality]]'' by [[John Graunt]].<ref>Willcox, Walter (1938) "The Founder of Statistics". ''Review of the [[International Statistical Institute]]'' 5(4): 321–328. {{jstor|1400906}}</ref> Early applications of statistical thinking revolved around the needs of states to base policy on demographic and economic data, hence its [[History of statistics#Etymology|''stat-'' etymology]]. The scope of the discipline of statistics broadened in the early 19th century to include the collection and analysis of data in general. Today, statistics is widely employed in government, business, and natural and social sciences.


The mathematical foundations of modern statistics were laid in the 17th century with the development of the [[probability theory]] by [[Gerolamo Cardano]], [[Blaise Pascal]] and [[Pierre de Fermat]]. Mathematical probability theory arose from the study of games of chance, although the concept of probability was already examined in [[Medieval Roman law|medieval law]] and by philosophers such as [[Juan Caramuel]].<ref>J. Franklin, The Science of Conjecture: Evidence and Probability before Pascal, Johns Hopkins Univ Pr 2002</ref> The [[method of least squares]] was first described by  [[Adrien-Marie Legendre]] in 1805.
The mathematical foundations of modern statistics were laid in the 17th century with the development of the [[probability theory]] by [[Gerolamo Cardano]], [[Blaise Pascal]] and [[Pierre de Fermat]]. Mathematical probability theory arose from the study of games of chance, although the concept of probability was already examined in [[Medieval Roman law|medieval law]] and by philosophers such as [[Juan Caramuel]].<ref>J. Franklin, The Science of Conjecture: Evidence and Probability before Pascal, Johns Hopkins Univ Pr 2002</ref> The [[method of least squares]] was first described by  [[Adrien-Marie Legendre]] in 1805.
Line 55: Line 385:
[[File:Karl Pearson, 1910.jpg|thumb|right|upright=1.05|[[Karl Pearson]], a founder of mathematical statistics.]]
[[File:Karl Pearson, 1910.jpg|thumb|right|upright=1.05|[[Karl Pearson]], a founder of mathematical statistics.]]


The modern field of statistics emerged in the late 19th and early 20th century in three stages.<ref>{{cite book|url=https://books.google.com/books?id=jYFRAAAAMAAJ|title=Studies in the history of statistical method|author=Helen Mary Walker|year=1975|publisher=Arno Press}}</ref> The first wave, at the turn of the century, was led by the work of [[Francis Galton]] and [[Karl Pearson]], who transformed statistics into a rigorous mathematical discipline used for analysis, not just in science, but in industry and politics as well. Galton's contributions included introducing the concepts of [[standard deviation]], [[correlation]], [[regression analysis]] and the application of these methods to the study of the variety of human characteristics—height, weight, eyelash length among others.<ref name=Galton1877>{{cite journal | last1 = Galton | first1 = F | year = 1877 | title = Typical laws of heredity | url = | journal = Nature | volume = 15 | issue = 388| pages = 492–553 | doi=10.1038/015492a0| bibcode = 1877Natur..15..492. }}</ref> Pearson developed the [[Pearson product-moment correlation coefficient]], defined as a product-moment,<ref>{{Cite journal | doi = 10.1214/ss/1177012580 | last1 = Stigler | first1 = S.M. | year = 1989 | title = Francis Galton's Account of the Invention of Correlation | url = | journal = Statistical Science | volume = 4 | issue = 2| pages = 73–79 }}</ref> the [[Method of moments (statistics)|method of moments]] for the fitting of distributions to samples and the [[Pearson distribution]], among many other things.<ref name="Pearson, On the criterion">{{Cite journal|last1=Pearson|first1=K.|year=1900|title=On the Criterion that a given System of Deviations from the Probable in the Case of a Correlated System of Variables is such that it can be reasonably supposed to have arisen from Random Sampling|url=https://zenodo.org/record/1430618|journal=Philosophical Magazine |series=Series 5|volume=50|issue=302|pages=157–175|doi=10.1080/14786440009463897}}</ref> Galton and Pearson founded ''[[Biometrika]]'' as the first journal of mathematical statistics and [[biostatistics]] (then called biometry), and the latter founded the world's first university statistics department at [[University College London]].<ref>{{cite web|year=|title=Karl Pearson (1857–1936)|publisher=Department of Statistical Science&nbsp;– [[University College London]]|url=http://www.ucl.ac.uk/stats/department/pearson.html|deadurl=yes|archiveurl=https://web.archive.org/web/20080925065418/http://www.ucl.ac.uk/stats/department/pearson.html|archivedate=2008-09-25|df=}}</ref>
The modern field of statistics emerged in the late 19th and early 20th century in three stages.<ref>{{cite book|url=https://books.google.com/books?id=jYFRAAAAMAAJ|title=Studies in the history of statistical method|author=Helen Mary Walker|year=1975|publisher=Arno Press|isbn=9780405066283}}</ref> The first wave, at the turn of the century, was led by the work of [[Francis Galton]] and [[Karl Pearson]], who transformed statistics into a rigorous mathematical discipline used for analysis, not just in science, but in industry and politics as well. Galton's contributions included introducing the concepts of [[standard deviation]], [[correlation]], [[regression analysis]] and the application of these methods to the study of the variety of human characteristics—height, weight, eyelash length among others.<ref name=Galton1877>{{cite journal | last1 = Galton | first1 = F | year = 1877 | title = Typical laws of heredity | url = | journal = Nature | volume = 15 | issue = 388| pages = 492–553 | doi=10.1038/015492a0| bibcode = 1877Natur..15..492. | doi-access = free }}</ref> Pearson developed the [[Pearson product-moment correlation coefficient]], defined as a product-moment,<ref>{{Cite journal | doi = 10.1214/ss/1177012580 | last1 = Stigler | first1 = S.M. | year = 1989 | title = Francis Galton's Account of the Invention of Correlation | url = | journal = Statistical Science | volume = 4 | issue = 2| pages = 73–79 | doi-access = free }}</ref> the [[Method of moments (statistics)|method of moments]] for the fitting of distributions to samples and the [[Pearson distribution]], among many other things.<ref name="Pearson, On the criterion">{{Cite journal|last1=Pearson|first1=K.|year=1900|title=On the Criterion that a given System of Deviations from the Probable in the Case of a Correlated System of Variables is such that it can be reasonably supposed to have arisen from Random Sampling|url=https://zenodo.org/record/1430618|journal=Philosophical Magazine |series=Series 5|volume=50|issue=302|pages=157–175|doi=10.1080/14786440009463897}}</ref> Galton and Pearson founded ''[[Biometrika]]'' as the first journal of mathematical statistics and [[biostatistics]] (then called biometry), and the latter founded the world's first university statistics department at [[University College London]].<ref>{{cite web|year=|title=Karl Pearson (1857–1936)|publisher=Department of Statistical Science&nbsp;– [[University College London]]|url=http://www.ucl.ac.uk/stats/department/pearson.html|url-status=dead|archiveurl=https://web.archive.org/web/20080925065418/http://www.ucl.ac.uk/stats/department/pearson.html|archivedate=2008-09-25|df=}}</ref>


[[Ronald Fisher]] coined the term [[null hypothesis]] during the [[Lady tasting tea]] experiment, which "is never proved or established, but is possibly disproved, in the course of experimentation".<ref>Fisher|1971|loc=Chapter II. The Principles of Experimentation, Illustrated by a Psycho-physical Experiment, Section 8. The Null Hypothesis</ref><ref name="oed">OED quote: '''1935''' R.A. Fisher, ''[[The Design of Experiments]]'' ii. 19, "We may speak of this hypothesis as the 'null hypothesis', and the null hypothesis is never proved or established, but is possibly disproved, in the course of experimentation."</ref>
[[Ronald Fisher]] coined the term [[null hypothesis]] during the [[Lady tasting tea]] experiment, which "is never proved or established, but is possibly disproved, in the course of experimentation".<ref>Fisher|1971|loc=Chapter II. The Principles of Experimentation, Illustrated by a Psycho-physical Experiment, Section 8. The Null Hypothesis</ref><ref name="oed">OED quote: '''1935''' R.A. Fisher, ''[[The Design of Experiments]]'' ii. 19, "We may speak of this hypothesis as the 'null hypothesis', and the null hypothesis is never proved or established, but is possibly disproved, in the course of experimentation."</ref>


The second wave of the 1910s and 20s was initiated by [[William Sealy Gosset]], and reached its culmination in the insights of [[Ronald Fisher]], who wrote the textbooks that were to define the academic discipline in universities around the world. Fisher's most important publications were his 1918 seminal paper ''[[The Correlation between Relatives on the Supposition of Mendelian Inheritance]]'', which was the first to use the statistical term, [[variance]], his classic 1925 work ''[[Statistical Methods for Research Workers]]'' and his 1935 ''[[The Design of Experiments]]'',<ref>{{cite journal | doi = 10.3102/00028312003003223 | title = The Influence of Fisher's "The Design of Experiments" on Educational Research Thirty Years Later | year = 1966 | author = Stanley, J.C. | journal = American Educational Research Journal | volume = 3 | pages = 223–229 | issue = 3}}</ref><ref>{{cite journal | author = Box, JF | title = R.A. Fisher and the Design of Experiments, 1922–1926 | jstor = 2682986 | journal = [[The American Statistician]] | volume = 34 | issue = 1 |date=February 1980 | pages = 1–7 | doi = 10.2307/2682986}}</ref><ref>{{cite journal | author = Yates, F | title = Sir Ronald Fisher and the Design of Experiments | jstor = 2528399 | journal = [[Biometrics (journal)|Biometrics]] | volume = 20 | issue = 2 |date=June 1964 | pages = 307–321 | doi = 10.2307/2528399}}</ref><ref>{{cite journal
The second wave of the 1910s and 20s was initiated by [[William Sealy Gosset]], and reached its culmination in the insights of [[Ronald Fisher]], who wrote the textbooks that were to define the academic discipline in universities around the world. Fisher's most important publications were his 1918 seminal paper ''[[The Correlation between Relatives on the Supposition of Mendelian Inheritance]]'' (which was the first to use the statistical term, [[variance]]), his classic 1925 work ''[[Statistical Methods for Research Workers]]'' and his 1935 ''[[The Design of Experiments]]'',<ref>{{cite journal | author = Box, JF | title = R.A. Fisher and the Design of Experiments, 1922–1926 | jstor = 2682986 | journal = [[The American Statistician]] | volume = 34 | issue = 1 |date=February 1980 | pages = 1–7 | doi = 10.2307/2682986}}</ref><ref>{{cite journal | author = Yates, F | title = Sir Ronald Fisher and the Design of Experiments | jstor = 2528399 | journal = [[Biometrics (journal)|Biometrics]] | volume = 20 | issue = 2 |date=June 1964 | pages = 307–321 | doi = 10.2307/2528399}}</ref><ref>{{cite journal
|title=The Influence of Fisher's "The Design of Experiments" on Educational Research Thirty Years Later
|title=The Influence of Fisher's "The Design of Experiments" on Educational Research Thirty Years Later
|first1=Julian C. |last1=Stanley
|first1=Julian C. |last1=Stanley
|journal=American Educational Research Journal
|journal=American Educational Research Journal
|volume=3 |issue=3 |year=1966|pages= 223–229
|volume=3 |issue=3 |year=1966|pages= 223–229
|jstor=1161806 |doi=10.3102/00028312003003223}}</ref> where he developed rigorous [[design of experiments]] models. He originated the concepts of [[sufficiency (statistics)|sufficiency]], [[ancillary statistic]]s, [[linear discriminant analysis|Fisher's linear discriminator]] and [[Fisher information]].<ref>{{cite journal|last=Agresti|first=Alan|author2=David B. Hichcock |year=2005|title=Bayesian Inference for Categorical Data Analysis|journal=Statistical Methods & Applications|issue=3|page=298|url=http://www.stat.ufl.edu/~aa/articles/agresti_hitchcock_2005.pdf|doi=10.1007/s10260-005-0121-y|volume=14}}</ref> In his 1930 book ''[[The Genetical Theory of Natural Selection]]'' he applied statistics to various [[biology|biological]] concepts such as [[Fisher's principle]]<ref name=Edwards98/>). Nevertheless, [[A.W.F. Edwards]] has remarked that it is "probably the most celebrated argument in [[evolutionary biology]]".<ref name=Edwards98>{{cite journal | doi = 10.1086/286141 | last1 = Edwards | first1 = A.W.F. | year = 1998 | title = Natural Selection and the Sex Ratio: Fisher's Sources | url = | journal = American Naturalist | volume = 151 | issue = 6| pages = 564–569 | pmid = 18811377 }}</ref> (about the [[sex ratio]]), the [[Fisherian runaway]],<ref name ="fisher15">Fisher, R.A. (1915) The evolution of sexual preference. Eugenics Review (7) 184:192</ref><ref name="fisher30">Fisher, R.A. (1930) [[The Genetical Theory of Natural Selection]]. {{isbn|0-19-850440-3}}</ref><ref name="pers00">Edwards, A.W.F. (2000) Perspectives: Anecdotal, Historial and Critical Commentaries on Genetics. The Genetics Society of America (154) 1419:1426</ref><ref name="ander94">Andersson, M. (1994) Sexual selection. {{isbn|0-691-00057-3}}</ref><ref name="ander06">Andersson, M. and Simmons, L.W. (2006) Sexual selection and mate choice. Trends, Ecology and Evolution (21) 296:302</ref><ref name="gayon10">Gayon, J. (2010) Sexual selection: Another Darwinian process. Comptes Rendus Biologies (333) 134:144</ref> a concept in [[sexual selection]] about a positive feedback runaway affect found in [[evolution]].
|jstor=1161806 |doi=10.3102/00028312003003223}}</ref> where he developed rigorous [[design of experiments]] models. He originated the concepts of [[sufficiency (statistics)|sufficiency]], [[ancillary statistic]]s, [[linear discriminant analysis|Fisher's linear discriminator]] and [[Fisher information]].<ref>{{cite journal|last=Agresti |first= Alan|author2=David B. Hichcock |year=2005|title=Bayesian Inference for Categorical Data Analysis|journal=Statistical Methods & Applications|issue=3|page=298|url=http://www.stat.ufl.edu/~aa/articles/agresti_hitchcock_2005.pdf|doi=10.1007/s10260-005-0121-y|volume=14}}</ref> In his 1930 book ''[[The Genetical Theory of Natural Selection]]'', he applied statistics to various [[biology|biological]] concepts such as [[Fisher's principle]]<ref name="Edwards98">{{cite journal|last1=Edwards|first1=A.W.F.|year=1998|title=Natural Selection and the Sex Ratio: Fisher's Sources|url=|journal=American Naturalist|volume=151|issue=6|pages=564–569|doi=10.1086/286141|pmid=18811377}}</ref> (which [[A.W.F. Edwards|A. W. F. Edwards]] called "probably the most celebrated argument in [[evolutionary biology]]") and [[Fisherian runaway]],<ref name ="fisher15">Fisher, R.A. (1915) The evolution of sexual preference. Eugenics Review (7) 184:192</ref><ref name= "fisher30">Fisher, R.A. (1930) [[The Genetical Theory of Natural Selection]]. {{isbn|0-19-850440-3}}</ref><ref name="pers00">Edwards, A.W.F. (2000) Perspectives: Anecdotal, Historial and Critical Commentaries on Genetics. The Genetics Society of America (154) 1419:1426</ref><ref name="ander94">{{cite book|last = Andersson|first = Malte|date= 1994 |title= Sexual Selection|isbn = 0-691-00057-3|publisher = Princeton University Press|url = https://books.google.com/books?id=lNnHdvzBlTYC&printsec=frontcover}}</ref><ref name="ander06">Andersson, M. and Simmons, L.W. (2006) Sexual selection and mate choice. Trends, Ecology and Evolution (21) 296:302</ref><ref name="gayon10">Gayon, J. (2010) Sexual selection: Another Darwinian process. Comptes Rendus Biologies (333) 134:144</ref> a concept in [[sexual selection]] about a positive feedback runaway affect found in [[evolution]].


The final wave, which mainly saw the refinement and expansion of earlier developments, emerged from the collaborative work between [[Egon Pearson]] and [[Jerzy Neyman]] in the 1930s. They introduced the concepts of "[[Type I and type II errors|Type II]]" error, power of a test and [[confidence interval]]s. [[Jerzy Neyman]] in 1934 showed that stratified random sampling was in general a better method of estimation than purposive (quota) sampling.<ref>{{cite journal | last1 = Neyman | first1 = J | year = 1934 | title = On the two different aspects of the representative method: The method of stratified sampling and the method of purposive selection | url = | journal = [[Journal of the Royal Statistical Society]] | volume = 97 | issue = 4| pages = 557–625 | jstor=2342192| doi = 10.2307/2342192 }}</ref>
The final wave, which mainly saw the refinement and expansion of earlier developments, emerged from the collaborative work between [[Egon Pearson]] and [[Jerzy Neyman]] in the 1930s. They introduced the concepts of "[[Type I and type II errors|Type II]]" error, power of a test and [[confidence interval]]s. [[Jerzy Neyman]] in 1934 showed that stratified random sampling was in general a better method of estimation than purposive (quota) sampling.<ref>{{cite journal | last1 = Neyman | first1 = J | year = 1934 | title = On the two different aspects of the representative method: The method of stratified sampling and the method of purposive selection | url = | journal = [[Journal of the Royal Statistical Society]] | volume = 97 | issue = 4| pages = 557–625 | jstor=2342192| doi = 10.2307/2342192 }}</ref>


Today, statistical methods are applied in all fields that involve decision making, for making accurate inferences from a collated body of data and for making decisions in the face of uncertainty based on statistical methodology. The use of modern [[computer]]s has expedited large-scale statistical computations, and has also made possible new methods that are impractical to perform manually. Statistics continues to be an area of active research, for example on the problem of how to analyze [[Big data]].<ref>{{cite web|url=http://www.santafe.edu/news/item/sfnm-wood-big-data/|title=Science in a Complex World – Big Data: Opportunity or Threat?|work=Santa Fe Institute}}</ref>
Today, statistical methods are applied in all fields that involve decision making, for making accurate inferences from a collated body of data and for making decisions in the face of uncertainty based on statistical methodology. The use of modern [[computer]]s has expedited large-scale statistical computations and has also made possible new methods that are impractical to perform manually. Statistics continues to be an area of active research for example on the problem of how to analyze [[big data]].<ref>{{cite web|url=http://www.santafe.edu/news/item/sfnm-wood-big-data/|title=Science in a Complex World – Big Data: Opportunity or Threat?|work=Santa Fe Institute}}</ref>


==Statistical data==
==Statistical data==
Line 76: Line 406:


====Sampling====
====Sampling====
When full census data cannot be collected, statisticians collect sample data by developing specific [[design of experiments|experiment designs]] and [[survey sampling|survey samples]]. Statistics itself also provides tools for prediction and forecasting through [[statistical model]]s. The idea of making inferences based on sampled data began around the mid-1600s in connection with estimating populations and developing precursors of life insurance.<ref>{{cite book|last=Wolfram|first=Stephen|title=A New Kind of Science|publisher=Wolfram Media, Inc.|year=2002|page=1082|isbn=1-57955-008-8}}</ref>
When full census data cannot be collected, statisticians collect sample data by developing specific [[design of experiments|experiment designs]] and [[survey sampling|survey samples]]. Statistics itself also provides tools for prediction and forecasting through [[statistical model]]s. The idea of making inferences based on sampled data began around the mid-1600s in connection with estimating populations and developing precursors of life insurance.<ref>{{cite book|last=Wolfram|first=Stephen|title=A New Kind of Science|publisher=Wolfram Media, Inc.|year=2002|page=[https://archive.org/details/newkindofscience00wolf/page/1082 1082]|isbn=1-57955-008-8|url=https://archive.org/details/newkindofscience00wolf/page/1082}}</ref>


To use a sample as a guide to an entire population, it is important that it truly represents the overall population. Representative [[sampling (statistics)|sampling]] assures that inferences and conclusions can safely extend from the sample to the population as a whole. A major problem lies in determining the extent that the sample chosen is actually representative. Statistics offers methods to estimate and correct for any bias within the sample and data collection procedures. There are also methods of experimental design for experiments that can lessen these issues at the outset of a study, strengthening its capability to discern truths about the population.
To use a sample as a guide to an entire population, it is important that it truly represents the overall population. Representative [[sampling (statistics)|sampling]] assures that inferences and conclusions can safely extend from the sample to the population as a whole. A major problem lies in determining the extent that the sample chosen is actually representative. Statistics offers methods to estimate and correct for any bias within the sample and data collection procedures. There are also methods of experimental design for experiments that can lessen these issues at the outset of a study, strengthening its capability to discern truths about the population.
Line 85: Line 415:
====Experimental and observational studies====
====Experimental and observational studies====
A common goal for a statistical research project is to investigate [[causality]], and in particular to draw a conclusion on the effect of changes in the values of predictors or [[Dependent and independent variables|independent variables on dependent variables]]. There are two major types of causal statistical studies: [[Experiment|experimental studies]] and [[Observational study|observational studies]]. In both types of studies, the effect of differences of an independent variable (or variables) on the behavior of the dependent variable are observed. The difference between the two types lies in how the study is actually conducted. Each can be very effective.
A common goal for a statistical research project is to investigate [[causality]], and in particular to draw a conclusion on the effect of changes in the values of predictors or [[Dependent and independent variables|independent variables on dependent variables]]. There are two major types of causal statistical studies: [[Experiment|experimental studies]] and [[Observational study|observational studies]]. In both types of studies, the effect of differences of an independent variable (or variables) on the behavior of the dependent variable are observed. The difference between the two types lies in how the study is actually conducted. Each can be very effective.
An experimental study involves taking measurements of the system under study, manipulating the system, and then taking additional measurements using the same procedure to determine if the manipulation has modified the values of the measurements. In contrast, an observational study does not involve [[Scientific control|experimental manipulation]]. Instead, data are gathered and correlations between predictors and response are investigated.
An experimental study involves taking measurements of the system under study, manipulating the system, and then taking additional measurements using the same procedure to determine if the manipulation has modified the values of the measurements. In contrast, an observational study does not involve [[Scientific control|experimental manipulation]]. Instead, data are gathered and correlations between predictors and response are investigated. While the tools of data analysis work best on data from [[Randomized controlled trial|randomized studies]], they are also applied to other kinds of data—like [[natural experiment]]s and [[Observational study|observational studies]]<ref>[[David A. Freedman (statistician)|Freedman, D.A.]] (2005) ''Statistical Models: Theory and Practice'', Cambridge University Press. {{isbn|978-0-521-67105-7}}</ref>—for which a statistician would use a modified, more structured estimation method (e.g., [[Difference in differences|Difference in differences estimation]] and [[instrumental variable]]s, among many others) that produce [[consistent estimator]]s.
While the tools of data analysis work best on data from [[Randomized controlled trial|randomized studies]], they are also applied to other kinds of data—like [[natural experiment]]s and [[Observational study|observational studies]]<ref>[[David A. Freedman (statistician)|Freedman, D.A.]] (2005) ''Statistical Models: Theory and Practice'', Cambridge University Press. {{isbn|978-0-521-67105-7}}</ref>—for which a statistician would use a modified, more structured estimation method (e.g., [[Difference in differences|Difference in differences estimation]] and [[instrumental variable]]s, among many others) that produce [[consistent estimator]]s.


=====Experiments=====
=====Experiments=====
Line 141: Line 470:


=====Null hypothesis and alternative hypothesis=====
=====Null hypothesis and alternative hypothesis=====
Interpretation of statistical information can often involve the development of a [[null hypothesis]] which is usually (but not necessarily) that no relationship exists among variables or that no change occurred over time.<ref>{{cite book | last = Everitt | first = Brian | title = The Cambridge Dictionary of Statistics | publisher = Cambridge University Press | location = Cambridge, UK New York | year = 1998 | isbn = 0521593468 }}</ref><ref>{{cite web|url=http://www.yourstatsguru.com/epar/rp-reviewed/cohen1994/|title=Cohen (1994) The Earth Is Round (p < .05) |publisher=YourStatsGuru.com }}</ref>
Interpretation of statistical information can often involve the development of a [[null hypothesis]] which is usually (but not necessarily) that no relationship exists among variables or that no change occurred over time.<ref>{{cite book | last = Everitt | first = Brian | title = The Cambridge Dictionary of Statistics | publisher = Cambridge University Press | location = Cambridge, UK New York | year = 1998 | isbn = 0521593468 | url = https://archive.org/details/cambridgediction00ever_0 }}</ref><ref>{{cite web|url=http://www.yourstatsguru.com/epar/rp-reviewed/cohen1994/|title=Cohen (1994) The Earth Is Round (p < .05) |publisher=YourStatsGuru.com }}</ref>


The best illustration for a novice is the predicament encountered by a criminal trial. The null hypothesis, H<sub>0</sub>, asserts that the defendant is innocent, whereas the alternative hypothesis, H<sub>1</sub>, asserts that the defendant is guilty. The indictment comes because of suspicion of the guilt. The H<sub>0</sub> (status quo) stands in opposition to H<sub>1</sub> and is maintained unless H<sub>1</sub> is supported by evidence "beyond a reasonable doubt". However, "failure to reject H<sub>0</sub>" in this case does not imply innocence, but merely that the evidence was insufficient to convict. So the jury does not necessarily ''accept'' H<sub>0</sub> but ''fails to reject'' H<sub>0</sub>. While one can not "prove" a null hypothesis, one can test how close it is to being true with a [[Statistical power|power test]], which tests for type II errors.
The best illustration for a novice is the predicament encountered by a criminal trial. The null hypothesis, H<sub>0</sub>, asserts that the defendant is innocent, whereas the alternative hypothesis, H<sub>1</sub>, asserts that the defendant is guilty. The indictment comes because of suspicion of the guilt. The H<sub>0</sub> (status quo) stands in opposition to H<sub>1</sub> and is maintained unless H<sub>1</sub> is supported by evidence "beyond a reasonable doubt". However, "failure to reject H<sub>0</sub>" in this case does not imply innocence, but merely that the evidence was insufficient to convict. So the jury does not necessarily ''accept'' H<sub>0</sub> but ''fails to reject'' H<sub>0</sub>. While one can not "prove" a null hypothesis, one can test how close it is to being true with a [[Statistical power|power test]], which tests for type II errors.
Line 188: Line 517:
Some problems are usually associated with this framework (See [[Statistical hypothesis testing#Criticism|criticism of hypothesis testing]]):
Some problems are usually associated with this framework (See [[Statistical hypothesis testing#Criticism|criticism of hypothesis testing]]):
* A difference that is highly statistically significant can still be of no practical significance, but it is possible to properly formulate tests to account for this. One response involves going beyond reporting only the [[significance level]] to include the [[p-value|''p''-value]] when reporting whether a hypothesis is rejected or accepted. The p-value, however, does not indicate the [[effect size|size]] or importance of the observed effect and can also seem to exaggerate the importance of minor differences in large studies. A better and increasingly common approach is to report [[confidence interval]]s. Although these are produced from the same calculations as those of hypothesis tests or ''p''-values, they describe both the size of the effect and the uncertainty surrounding it.
* A difference that is highly statistically significant can still be of no practical significance, but it is possible to properly formulate tests to account for this. One response involves going beyond reporting only the [[significance level]] to include the [[p-value|''p''-value]] when reporting whether a hypothesis is rejected or accepted. The p-value, however, does not indicate the [[effect size|size]] or importance of the observed effect and can also seem to exaggerate the importance of minor differences in large studies. A better and increasingly common approach is to report [[confidence interval]]s. Although these are produced from the same calculations as those of hypothesis tests or ''p''-values, they describe both the size of the effect and the uncertainty surrounding it.
* Fallacy of the transposed conditional, aka [[prosecutor's fallacy]]: criticisms arise because the hypothesis testing approach forces one hypothesis (the [[null hypothesis]]) to be favored, since what is being evaluated is the probability of the observed result given the null hypothesis and not probability of the null hypothesis given the observed result. An alternative to this approach is offered by [[Bayesian inference]], although it requires establishing a [[prior probability]].<ref name=Ioannidis2005>{{Cite journal | last1 = Ioannidis | first1 = J.P.A. | authorlink1 = John P.A. Ioannidis| title = Why Most Published Research Findings Are False | journal = PLoS Medicine | volume = 2 | issue = 8 | pages = e124 | year = 2005 | pmid = 16060722 | pmc = 1182327 | doi = 10.1371/journal.pmed.0020124}}</ref>
* Fallacy of the transposed conditional, aka [[prosecutor's fallacy]]: criticisms arise because the hypothesis testing approach forces one hypothesis (the [[null hypothesis]]) to be favored, since what is being evaluated is the probability of the observed result given the null hypothesis and not probability of the null hypothesis given the observed result. An alternative to this approach is offered by [[Bayesian inference]], although it requires establishing a [[prior probability]].<ref name=Ioannidis2005>{{Cite journal | last1 = Ioannidis | first1 = J.P.A. | authorlink1 = John P.A. Ioannidis| title = Why Most Published Research Findings Are False | journal = PLOS Medicine | volume = 2 | issue = 8 | pages = e124 | year = 2005 | pmid = 16060722 | pmc = 1182327 | doi = 10.1371/journal.pmed.0020124}}</ref>
* Rejecting the null hypothesis does not automatically prove the alternative hypothesis.
* Rejecting the null hypothesis does not automatically prove the alternative hypothesis.
* As everything in [[inferential statistics]] it relies on sample size, and therefore under [[fat tails]] p-values may be seriously mis-computed.{{clarify|date=October 2016}}
* As everything in [[inferential statistics]] it relies on sample size, and therefore under [[fat tails]] p-values may be seriously mis-computed.{{clarify|date=October 2016}}
Line 204: Line 533:
* [[Pearson product-moment correlation coefficient]]
* [[Pearson product-moment correlation coefficient]]
* [[Regression analysis]]
* [[Regression analysis]]
* [[Spearman's rank correlation coefficient]]In statistics, exploratory data analysis (EDA) is an approach to analyzing data sets to summarize their main characteristics, often with visual methods. A statistical model can be used or not, but primarily EDA is for seeing what the data can tell us beyond the formal modeling or hypothesis testing task.
* [[Spearman's rank correlation coefficient]]
* [[Student's t-test|Student's ''t''-test]]
* [[Student's t-test|Student's ''t''-test]]
* [[Time series analysis]]
* [[Time series analysis]]
Line 218: Line 547:
{{main|Misuse of statistics}}
{{main|Misuse of statistics}}


[[Misuse of statistics]] can produce subtle, but serious errors in description and interpretation—subtle in the sense that even experienced professionals make such errors, and serious in the sense that they can lead to devastating decision errors. For instance, social policy, medical practice, and the reliability of structures like bridges all rely on the proper use of statistics.
[[Misuse of statistics]] can produce subtle but serious errors in description and interpretation—subtle in the sense that even experienced professionals make such errors, and serious in the sense that they can lead to devastating decision errors. For instance, social policy, medical practice, and the reliability of structures like bridges all rely on the proper use of statistics.


Even when statistical techniques are correctly applied, the results can be difficult to interpret for those lacking expertise. The [[statistical significance]] of a trend in the data—which measures the extent to which a trend could be caused by random variation in the sample—may or may not agree with an intuitive sense of its significance. The set of basic statistical skills (and skepticism) that people need to deal with information in their everyday lives properly is referred to as [[statistical literacy]].
Even when statistical techniques are correctly applied, the results can be difficult to interpret for those lacking expertise. The [[statistical significance]] of a trend in the data—which measures the extent to which a trend could be caused by random variation in the sample—may or may not agree with an intuitive sense of its significance. The set of basic statistical skills (and skepticism) that people need to deal with information in their everyday lives properly is referred to as [[statistical literacy]].


There is a general perception that statistical knowledge is all-too-frequently intentionally [[Misuse of statistics|misused]] by finding ways to interpret only the data that are favorable to the presenter.<ref name=Huff>Huff, Darrell (1954) ''[[How to Lie with Statistics]]'',  WW Norton & Company, Inc. New York.  {{isbn|0-393-31072-8}}</ref> A mistrust and misunderstanding of statistics is associated with the quotation, "[[Lies, damned lies, and statistics|There are three kinds of lies: lies, damned lies, and statistics]]". Misuse of statistics can be both inadvertent and intentional, and the book ''[[How to Lie with Statistics]]''<ref name=Huff/> outlines a range of considerations. In an attempt to shed light on the use and misuse of statistics, reviews of statistical techniques used in particular fields are conducted (e.g. Warne, Lazo, Ramos, and Ritter (2012)).<ref>{{cite journal | last1 = Warne | first1 = R. Lazo | last2 = Ramos | first2 = T. | last3 = Ritter | first3 = N. | year = 2012 | title = Statistical Methods Used in Gifted Education Journals, 2006–2010 | url = | journal = Gifted Child Quarterly | volume = 56 | issue = 3| pages = 134–149 | doi = 10.1177/0016986212444122 }}</ref>
There is a general perception that statistical knowledge is all-too-frequently intentionally [[Misuse of statistics|misused]] by finding ways to interpret only the data that are favorable to the presenter.<ref name=Huff>Huff, Darrell (1954) ''[[How to Lie with Statistics]]'',  WW Norton & Company, Inc. New York.  {{isbn|0-393-31072-8}}</ref> A mistrust and misunderstanding of statistics is associated with the quotation, "[[Lies, damned lies, and statistics|There are three kinds of lies: lies, damned lies, and statistics]]". Misuse of statistics can be both inadvertent and intentional, and the book ''[[How to Lie with Statistics]]''<ref name=Huff/> outlines a range of considerations. In an attempt to shed light on the use and misuse of statistics, reviews of statistical techniques used in particular fields are conducted (e.g. Warne, Lazo, Ramos, and Ritter (2012)).<ref>{{cite journal | last1 = Warne | first1 = R. Lazo | last2 = Ramos | first2 = T. | last3 = Ritter | first3 = N. | year = 2012 | title = Statistical Methods Used in Gifted Education Journals, 2006–2010 | url = | journal = Gifted Child Quarterly | volume = 56 | issue = 3| pages = 134–149 | doi = 10.1177/0016986212444122 }}</ref>


Ways to avoid misuse of statistics include using proper diagrams and avoiding [[Bias (statistics)|bias]].<ref name="Statistics in Archaeology">{{cite book | chapter = Statistics in archaeology | pages = 2093–2100 | first1 = Robert D. | last1 = Drennan | title =  Encyclopedia of Archaeology | year = 2008 | publisher = Elsevier Inc. | editor-first = Deborah M. | editor-last = Pearsall | isbn = 978-0-12-373962-9 }}</ref> Misuse can occur when conclusions are [[Hasty generalization|overgeneralized]] and claimed to be representative of more than they really are, often by either deliberately or unconsciously overlooking sampling bias.<ref name="Misuse of Statistics">{{cite journal |last=Cohen |first=Jerome B. |title=Misuse of Statistics |journal=Journal of the American Statistical Association |date=December 1938 |volume=33 |issue=204 |pages=657–674 |location=JSTOR |doi=10.1080/01621459.1938.10502344}}</ref> Bar graphs are arguably the easiest diagrams to use and understand, and they can be made either by hand or with simple computer programs.<ref name="Statistics in Archaeology" /> Unfortunately, most people do not look for bias or errors, so they are not noticed. Thus, people may often believe that something is true even if it is not well [[Sampling (statistics)|represented]].<ref name="Misuse of Statistics" /> To make data gathered from statistics believable and accurate, the sample taken must be representative of the whole.<ref name="Modern Elementary Statistics">{{cite journal|last=Freund|first=J.E.|authorlink = John E. Freund|title=Modern Elementary Statistics|journal=Credo Reference|year=1988}}</ref> According to Huff, "The dependability of a sample can be destroyed by [bias]... allow yourself some degree of skepticism."<ref>{{cite book|last=Huff|first=Darrell|title=How to Lie with Statistics|year=1954|publisher=Norton|location=New York|author2=Irving Geis |quote=The dependability of a sample can be destroyed by [bias]... allow yourself some degree of skepticism.}}</ref>
Ways to avoid misuse of statistics include using proper diagrams and avoiding [[Bias (statistics)|bias]].<ref name="Statistics in Archaeology">{{cite book | chapter = Statistics in archaeology | pages = 2093–2100 | first1 = Robert D. | last1 = Drennan | title =  Encyclopedia of Archaeology | year = 2008 | publisher = Elsevier Inc. | editor-first = Deborah M. | editor-last = Pearsall | isbn = 978-0-12-373962-9 }}</ref> Misuse can occur when conclusions are [[Hasty generalization|overgeneralized]] and claimed to be representative of more than they really are, often by either deliberately or unconsciously overlooking sampling bias.<ref name="Misuse of Statistics">{{cite journal |last=Cohen |first=Jerome B. |title=Misuse of Statistics |journal=Journal of the American Statistical Association |date=December 1938 |volume=33 |issue=204 |pages=657–674 |location=JSTOR |doi=10.1080/01621459.1938.10502344}}</ref> Bar graphs are arguably the easiest diagrams to use and understand, and they can be made either by hand or with simple computer programs.<ref name="Statistics in Archaeology" /> Unfortunately, most people do not look for bias or errors, so they are not noticed. Thus, people may often believe that something is true even if it is not well [[Sampling (statistics)|represented]].<ref name="Misuse of Statistics" /> To make data gathered from statistics believable and accurate, the sample taken must be representative of the whole.<ref name="Modern Elementary Statistics">{{cite journal|last=Freund|first=J.E.|authorlink = John E. Freund|title=Modern Elementary Statistics|journal=Credo Reference|year=1988}}</ref> According to Huff, "The dependability of a sample can be destroyed by [bias]... allow yourself some degree of skepticism."<ref>{{cite book|last=Huff|first=Darrell|title=How to Lie with Statistics|year=1954|publisher=Norton|location=New York|author2=Irving Geis |quote=The dependability of a sample can be destroyed by [bias]... allow yourself some degree of skepticism.}}</ref>


To assist in the understanding of statistics Huff proposed a series of questions to be asked in each case:<ref name="How to Lie with Statistics">{{cite book |last=Huff |first=Darrell |title=How to Lie with Statistics |year=1954 |publisher=Norton |location=New York |author2=Irving Geis }}</ref>
To assist in the understanding of statistics Huff proposed a series of questions to be asked in each case:<ref name="How to Lie with Statistics">{{cite book |last=Huff |first=Darrell |title=How to Lie with Statistics |year=1954 |publisher=Norton |location=New York |author2=Irving Geis }}</ref>
Line 242: Line 571:
===Applied statistics, theoretical statistics and mathematical statistics===
===Applied statistics, theoretical statistics and mathematical statistics===
''Applied statistics'' comprises descriptive statistics and the application of inferential statistics.<ref>Nikoletseas, M.M. (2014) "Statistics: Concepts and Examples." {{isbn|978-1500815684}}</ref><ref>Anderson, D.R.; Sweeney, D.J.; Williams, T.A. (1994) ''Introduction to Statistics: Concepts and Applications'', pp. 5–9. West Group. {{isbn|978-0-314-03309-3}}</ref> ''Theoretical statistics'' concerns the logical arguments underlying justification of approaches to [[statistical inference]], as well as encompassing ''mathematical statistics''. Mathematical statistics includes not only the manipulation of [[probability distribution]]s necessary for deriving results related to methods of estimation and inference, but also various aspects of [[computational statistics]] and the [[design of experiments]].
''Applied statistics'' comprises descriptive statistics and the application of inferential statistics.<ref>Nikoletseas, M.M. (2014) "Statistics: Concepts and Examples." {{isbn|978-1500815684}}</ref><ref>Anderson, D.R.; Sweeney, D.J.; Williams, T.A. (1994) ''Introduction to Statistics: Concepts and Applications'', pp. 5–9. West Group. {{isbn|978-0-314-03309-3}}</ref> ''Theoretical statistics'' concerns the logical arguments underlying justification of approaches to [[statistical inference]], as well as encompassing ''mathematical statistics''. Mathematical statistics includes not only the manipulation of [[probability distribution]]s necessary for deriving results related to methods of estimation and inference, but also various aspects of [[computational statistics]] and the [[design of experiments]].
[[Statistical consultant]]s can help organizations and companies that don't have in-house expertise relevant to their particular questions. 


===Machine learning and data mining===
===Machine learning and data mining===
Machine Learning models are statistical and probabilistic models that captures patterns in the data through use of computational algorithms.
[[Machine learning]] models are statistical and probabilistic models that capture patterns in the data through use of computational algorithms.


===Statistics in society===
===Statistics in academy===
Statistics is applicable to a wide variety of [[academic discipline]]s, including [[natural]] and [[social science]]s, government, and business. [[Statistical consultant]]s can help organizations and companies that don't have in-house expertise relevant to their particular questions.
Statistics is applicable to a wide variety of [[academic discipline]]s, including [[natural]] and [[social science]]s, government, and business. Business statistics applies statistical methods in [[econometrics]], [[auditing]] and production and operations, including services improvement and marketing research<ref>{{cite web|url=https://amstat.tandfonline.com/loi/jbes|title=Journal of Business & Economic Statistics|website=Journal of Business & Economic Statistics|publisher=Taylor & Francis|access-date=16 March 2020}}</ref>. In the field of biological sciences, the 12 most frequent statistical tests are: Analysis of Variance (ANOVA), Chi-Square Test, Student’s T Test, Linear Regression, Pearson’s Correlation Coefficient, Mann-Whitney U Test, Kruskal-Wallis Test, Shannon’s Diversity Index, Tukey’s Test, Cluster Analysis, Spearman’s Rank Correlation Test and Principal Component Analysis<ref name=":0">{{Cite journal|last=Natalia Loaiza Velásquez, María Isabel González Lutz & Julián Monge-Nájera|first=|date=2011|title=Which statistics should tropical biologists learn?|url=https://investiga.uned.ac.cr/ecologiaurbana/wp-content/uploads/sites/30/2017/09/JMN-2011-statistics-should-learn.pdf|journal=Revista Biología Tropical|volume=59|pages=983-992|via=}}</ref>.
 
A typical statistics course covers descriptive statistics, probability, binomial and [[normal distribution]]s, test of hypotheses and confidence intervals, [[linear regression]], and correlation<ref>{{cite book|last=Pekoz|first=Erol|title=The Manager's Guide to Statistics|date=2009|publisher=Erol Pekoz|isbn=9780979570438}}</ref>. Modern fundamental statistical courses for undergraduate students focus on the correct test selection, results interpretation and use of open source softwares <ref name=":0" />.  


===Statistical computing===
===Statistical computing===
Line 257: Line 590:
The rapid and sustained increases in computing power starting from the second half of the 20th century have had a substantial impact on the practice of statistical science. Early statistical models were almost always from the class of [[linear model]]s, but powerful computers, coupled with suitable numerical [[algorithms]], caused an increased interest in [[Nonlinear regression|nonlinear models]] (such as [[neural networks]]) as well as the creation of new types, such as [[generalized linear model]]s and [[multilevel model]]s.
The rapid and sustained increases in computing power starting from the second half of the 20th century have had a substantial impact on the practice of statistical science. Early statistical models were almost always from the class of [[linear model]]s, but powerful computers, coupled with suitable numerical [[algorithms]], caused an increased interest in [[Nonlinear regression|nonlinear models]] (such as [[neural networks]]) as well as the creation of new types, such as [[generalized linear model]]s and [[multilevel model]]s.


Increased computing power has also led to the growing popularity of computationally intensive methods based on [[Resampling (statistics)|resampling]], such as permutation tests and the [[Bootstrapping (statistics)|bootstrap]], while techniques such as [[Gibbs sampling]] have made use of Bayesian models more feasible. The computer revolution has implications for the future of statistics with new emphasis on "experimental" and "empirical" statistics. A large number of both general and special purpose [[List of statistical packages|statistical software]] are now available. Examples of available software capable of complex statistical computation include programs such as [[Mathematica]],  [[SAS (software)|SAS]], [[SPSS]], and  [[R (programming language)|R]].
Increased computing power has also led to the growing popularity of computationally intensive methods based on [[Resampling (statistics)|resampling]], such as permutation tests and the [[Bootstrapping (statistics)|bootstrap]], while techniques such as [[Gibbs sampling]] have made use of Bayesian models more feasible. The computer revolution has implications for the future of statistics with a new emphasis on "experimental" and "empirical" statistics. A large number of both general and special purpose [[List of statistical packages|statistical software]] are now available. Examples of available software capable of complex statistical computation include programs such as [[Mathematica]],  [[SAS (software)|SAS]], [[SPSS]], and  [[R (programming language)|R]].


===Statistics applied to mathematics or the arts===
===Statistics applied to mathematics or the arts===
Traditionally, statistics was concerned with drawing inferences using a semi-standardized methodology that was "required learning" in most sciences.{{citation needed|date=September 2018}} This tradition has changed with use of statistics in non-inferential contexts. What was once considered a dry subject, taken in many fields as a degree-requirement, is now viewed enthusiastically.{{according to whom|date=April 2014}} Initially derided by some mathematical purists, it is now considered essential methodology in certain areas.
Traditionally, statistics was concerned with drawing inferences using a semi-standardized methodology that was "required learning" in most sciences.{{citation needed|date=September 2018}} This tradition has changed with the use of statistics in non-inferential contexts. What was once considered a dry subject, taken in many fields as a degree-requirement, is now viewed enthusiastically.{{according to whom|date=April 2014}} Initially derided by some mathematical purists, it is now considered essential methodology in certain areas.
* In [[number theory]], [[scatter plot]]s of data generated by a distribution function may be transformed with familiar tools used in statistics to reveal underlying patterns, which may then lead to hypotheses.
* In [[number theory]], [[scatter plot]]s of data generated by a distribution function may be transformed with familiar tools used in statistics to reveal underlying patterns, which may then lead to hypotheses.
* Methods of statistics including predictive methods in [[forecasting]] are combined with [[chaos theory]] and [[fractal geometry]] to create video works that are considered to have great beauty.{{Citation needed|date=February 2015}}
* Methods of statistics including predictive methods in [[forecasting]] are combined with [[chaos theory]] and [[fractal geometry]] to create video works that are considered to have great beauty.{{Citation needed|date=February 2015}}
Line 270: Line 603:
{{main|List of fields of application of statistics}}
{{main|List of fields of application of statistics}}


Statistical techniques are used in a wide range of types of scientific and social research, including: [[biostatistics]], [[computational biology]], [[computational sociology]], [[network biology]], [[social science]], [[sociology]] and [[social research]]. Some fields of inquiry use applied statistics so extensively that they have [[specialized terminology]]. These disciplines include:
Statistical techniques are used in a wide range of types of scientific and social research, including: [[biostatistics]], [[computational biology]], [[computational sociology]], [[network biology]], [[social science]], [[sociology]] and [[social research]]. Some fields of inquiry use applied statistics so extensively that they have [[specialized terminology]]. These disciplines include:


{{Columns-list|colwidth=30em|
{{Columns-list|colwidth=30em|* [[Actuarial science]] (assesses risk in the insurance and finance industries)
* [[Actuarial science]] (assesses risk in the insurance and finance industries)
* [[Applied information economics]]
* [[Applied information economics]]
* [[Astrostatistics]] (statistical evaluation of astronomical data)
* [[Astrostatistics]] (statistical evaluation of astronomical data)
* [[Biostatistics]]
* [[Biostatistics]]
* [[Business statistics]]
* [[Chemometrics]] (for analysis of data from [[chemistry]])
* [[Chemometrics]] (for analysis of data from [[chemistry]])
* [[Data mining]] (applying statistics and [[pattern recognition]] to discover knowledge from data)
* [[Data mining]] (applying statistics and [[pattern recognition]] to discover knowledge from data)
Line 288: Line 619:
* [[Geography]] and [[geographic information system]]s, specifically in [[spatial analysis]]
* [[Geography]] and [[geographic information system]]s, specifically in [[spatial analysis]]
* [[Image processing]]
* [[Image processing]]
* [[Jurimetrics]] ([[law]])
* [[Medical statistics]]
* [[Medical statistics]]
* [[Political science]]
* [[Political science]]
Line 293: Line 625:
* [[Reliability engineering]]
* [[Reliability engineering]]
* [[Social statistics]]
* [[Social statistics]]
* [[Statistical mechanics]]
* [[Statistical mechanics]]}}
}}


In addition, there are particular types of statistical analysis that have also developed their own specialised terminology and methodology:
In addition, there are particular types of statistical analysis that have also developed their own specialised terminology and methodology:
Line 311: Line 642:


== See also ==
== See also ==
{{Library resources box |by=no |onlinebooks=no |others=no |about=yes |label=Statistics}}
* [[Artificial intelligence]]
{{main|Outline of statistics}}
:* [[Machine learning]]
* [[Template:Computer engineering]]
* [[GhostBSD]]
* [[I2P]]
:* [[iMule]]
* [[Security]]
 
<!-- NOTE: This is mainly for statistics-related lists. Please consider adding links to either the "Outline of statistics" or the "List of statistics articles" entries rather than here.-->
<!-- NOTE: This is mainly for statistics-related lists. Please consider adding links to either the "Outline of statistics" or the "List of statistics articles" entries rather than here.-->


{{Columns-list|colwidth=20em|
* [[Abundance estimation]]
* [[Abundance estimation]]
* [[Data science]]
* [[Data science]]
Line 326: Line 662:
* [[List of university statistical consulting centers]]
* [[List of university statistical consulting centers]]
* [[Notation in probability and statistics]]
* [[Notation in probability and statistics]]
}}
 
;Foundations and major areas of statistics
;Foundations and major areas of statistics
{{Columns-list|colwidth=22em|<!-- Foundations and major areas of statistics, closely related fields NOT already mentioned in "Specialised disciplines" section-->
<!-- Foundations and major areas of statistics, closely related fields NOT already mentioned in "Specialised disciplines" section-->
* [[Foundations of statistics]]
* [[Foundations of statistics]]
* [[List of statisticians]]
* [[List of statisticians]]
* [[Official statistics]]
* [[Official statistics]]
* [[Multivariate analysis of variance]]
* [[Multivariate analysis of variance]]
:<!--empty column-->
:<!--empty column-->
}}


== References ==
== References ==
{{reflist}}
<references />


==Further reading==
==Further reading==
* Lydia Denworth, "A Significant Problem: Standard scientific methods are under fire. Will anything change?", ''[[Scientific American]]'', vol. 321, no. 4 (October 2019), pp.&nbsp;62–67. "The use of [[p value|''p'' values]] for nearly a century [since 1925] to determine [[statistical significance]] of [[experiment]]al results has contributed to an illusion of [[certainty]] and [to] [[reproducibility|reproducibility crises]] in many [[science|scientific fields]]. There is growing determination to reform statistical analysis... Some [researchers] suggest changing statistical methods, whereas others would do away with a threshold for defining "significant" results." (p. 63.) 
* {{cite book|author1=Barbara Illowsky|author2=Susan Dean|title=Introductory Statistics|url=https://openstax.org/details/introductory-statistics|year=2014|publisher=OpenStax CNX|isbn=9781938168208}}
* {{cite book|author1=Barbara Illowsky|author2=Susan Dean|title=Introductory Statistics|url=https://openstax.org/details/introductory-statistics|year=2014|publisher=OpenStax CNX|isbn=9781938168208}}
* David W. Stockburger, [http://psychstat3.missouristate.edu/Documents/IntroBook3/sbk.htm ''Introductory Statistics: Concepts, Models, and Applications''], 3rd Web Ed.  [[Missouri State University]].
* David W. Stockburger, [http://psychstat3.missouristate.edu/Documents/IntroBook3/sbk.htm ''Introductory Statistics: Concepts, Models, and Applications''], 3rd Web Ed.  [[Missouri State University]].
* [https://www.openintro.org/stat/textbook.php?stat_book=os ''OpenIntro Statistics''], 3rd edition by Diez, Barr, and Cetinkaya-Rundel
* [https://www.openintro.org/stat/textbook.php?stat_book=os ''OpenIntro Statistics''], 3rd edition by Diez, Barr, and Cetinkaya-Rundel
* Stephen Jones, 2010. [https://books.google.com/books?id=mywdBQAAQBAJ ''Statistics in Psychology: Explanations without Equations'']. Palgrave Macmillan. {{isbn|9781137282392}}.
* Stephen Jones, 2010. [https://books.google.com/books?id=mywdBQAAQBAJ ''Statistics in Psychology: Explanations without Equations'']. Palgrave Macmillan. {{isbn|9781137282392}}.
* Cohen, J. (1990). [http://moityca.com.br/pdfs/Cohen_1990.pdf "Things I have learned (so far)"]. ''American Psychologist'', 45, 1304–1312.
* {{cite journal | last1 = Cohen | first1 = J | year = 1990 | title = Things I have learned (so far) | url = https://web.archive.org/web/20171018181831/http://moityca.com.br/pdfs/Cohen_1990.pdf | format = PDF | journal = American Psychologist | volume = 45 | issue = | pages = 1304–1312 | doi = 10.1037/0003-066x.45.12.1304 }}
* Gigerenzer, G. (2004). "Mindless statistics". ''Journal of Socio-Economics'', 33, 587–606. {{doi|10.1016/j.socec.2004.09.033}}
* {{cite journal | last1 = Gigerenzer | first1 = G | year = 2004 | title = Mindless statistics | url = | journal = Journal of Socio-Economics | volume = 33 | issue = | pages = 587–606 | doi = 10.1016/j.socec.2004.09.033 }}
* Ioannidis, J.P.A. (2005). "Why most published research findings are false". ''PLoS Medicine'', 2, 696–701. {{doi|10.1371/journal.pmed.0040168}}
* {{cite journal | last1 = Ioannidis | first1 = J.P.A. | year = 2005 | title = Why most published research findings are false | url = | journal = PLoS Medicine | volume = 2 | issue = | pages = 696–701 | doi = 10.1371/journal.pmed.0040168 }}


==External links==
==External links==
Line 359: Line 693:
{{Areas of mathematics |collapsed}}
{{Areas of mathematics |collapsed}}
{{Glossaries of science and engineering}}
{{Glossaries of science and engineering}}
{{portal bar|Statistics|Mathematics}}
{{Portal bar|Mathematics}}


{{Authority control}}
{{Authority control}}
Line 369: Line 703:
[[Category:Mathematical and quantitative methods (economics)]]
[[Category:Mathematical and quantitative methods (economics)]]
[[Category:Research methods]]
[[Category:Research methods]]
[[Category:Arab inventions]]
17

edits

Navigation menu