Old page wikitext, before the edit (old_wikitext ) | '{{short description|Study of the collection, analysis, interpretation, and presentation of data}}
{{other uses|Statistics (disambiguation)}}
{{StatsTopicTOC}}
[[File:The Normal Distribution.svg|thumb|upright=1.3|right|More [[Probability density function|probability density]] is found as one gets closer to the expected (mean) value in a [[normal distribution]]. Statistics used in [[Standardized testing (statistics)|standardized testing]] assessment are shown. The scales include [[standard deviation]]s, cumulative percentages, Z-scores, and [[T-score]]s.]]
[[File:Scatterplot.jpg|thumb|upright=1.3|right|[[Scatter plot]]s are used in descriptive statistics to show the observed relationships between different variables.]]
<!--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 web |first=Jan-Willem |last=Romijn |year=2014 |title=Philosophy of statistics |publisher=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/>
See [[glossary of probability and statistics]].
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.
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}}
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>
{{TOC limit|3}}
== Introduction ==
{{Main|Outline of statistics}}
Some definitions are:
* ''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 |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".
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]].
===Mathematical statistics===
{{Main|Mathematical statistics}}
Mathematical statistics is the application of [[mathematics]] to statistics. Mathematical techniques used for this include [[mathematical analysis]], [[linear algebra]], [[stochastic analysis]], [[differential equations]], and [[measure-theoretic probability theory]].<ref>{{cite book|last=Lakshmikantham,|first=ed. by D. Kannan, V.|title=Handbook of stochastic analysis and applications|date=2002|publisher=M. Dekker|location=New York|isbn=0824706609}}</ref><ref>{{cite book|last=Schervish|first=Mark J.|title=Theory of statistics|date=1995|publisher=Springer|location=New York|isbn=0387945466|edition=Corr. 2nd print.}}</ref>
== History ==
[[File:Jerôme Cardan.jpg|thumb|right|upright=1.05|[[Gerolamo Cardano]], a pioneer on the mathematics of probability.]]
{{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–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 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.
[[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=|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 – [[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>
[[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 | 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
|title=The Influence of Fisher's "The Design of Experiments" on Educational Research Thirty Years Later
|first1=Julian C. |last1=Stanley
|journal=American Educational Research Journal
|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=14|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]].
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}}</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==
{{main|Statistical data}}
=== Data collection ===
====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>
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.
Sampling theory is part of the [[mathematics|mathematical discipline]] of [[probability theory]]. Probability is used in [[statistical theory|mathematical statistics]] to study the [[sampling distribution]]s of [[sample statistic]]s and, more generally, the properties of [[statistical decision theory|statistical procedures]]. The use of any statistical method is valid when the system or population under consideration satisfies the assumptions of the method.
The difference in point of view between classic probability theory and sampling theory is, roughly, that probability theory starts from the given parameters of a total population to [[deductive reasoning|deduce]] probabilities that pertain to samples. Statistical inference, however, moves in the opposite direction—[[inductive reasoning|inductively inferring]] from samples to the parameters of a larger or total population.
====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.
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.
=====Experiments=====
The basic steps of a statistical experiment are:
# Planning the research, including finding the number of replicates of the study, using the following information: preliminary estimates regarding the size of [[Average treatment effect|treatment effects]], [[alternative hypothesis|alternative hypotheses]], and the estimated [[experimental error|experimental variability]]. Consideration of the selection of experimental subjects and the ethics of research is necessary. Statisticians recommend that experiments compare (at least) one new treatment with a standard treatment or control, to allow an unbiased estimate of the difference in treatment effects.
# [[Design of experiments]], using [[blocking (statistics)|blocking]] to reduce the influence of [[confounding variable]]s, and [[randomized assignment]] of treatments to subjects to allow [[bias of an estimator|unbiased estimates]] of treatment effects and experimental error. At this stage, the experimenters and statisticians write the ''[[protocol (natural sciences)|experimental protocol]]'' that will guide the performance of the experiment and which specifies the'' primary analysis'' of the experimental data.
# Performing the experiment following the [[Protocol (natural sciences)|experimental protocol]] and [[analysis of variance|analyzing the data]] following the experimental protocol.
# Further examining the data set in secondary analyses, to suggest new hypotheses for future study.
# Documenting and presenting the results of the study.
Experiments on human behavior have special concerns. The famous [[Hawthorne study]] examined changes to the working environment at the Hawthorne plant of the [[Western Electric Company]]. The researchers were interested in determining whether increased illumination would increase the productivity of the [[assembly line]] workers. The researchers first measured the productivity in the plant, then modified the illumination in an area of the plant and checked if the changes in illumination affected productivity. It turned out that productivity indeed improved (under the experimental conditions). However, the study is heavily criticized today for errors in experimental procedures, specifically for the lack of a [[control group]] and [[double-blind|blindness]]. The [[Hawthorne effect]] refers to finding that an outcome (in this case, worker productivity) changed due to observation itself. Those in the Hawthorne study became more productive not because the lighting was changed but because they were being observed.<ref name="pmid17608932">{{cite journal |vauthors=McCarney R, Warner J, Iliffe S, van Haselen R, Griffin M, Fisher P |title=The Hawthorne Effect: a randomised, controlled trial |journal=BMC Med Res Methodol |volume=7|pages=30 |year=2007 |pmid=17608932 |pmc=1936999 |doi=10.1186/1471-2288-7-30 |issue=1}}</ref>
=====Observational study=====
An example of an observational study is one that explores the association between smoking and lung cancer. This type of study typically uses a survey to collect observations about the area of interest and then performs statistical analysis. In this case, the researchers would collect observations of both smokers and non-smokers, perhaps through a [[cohort study]], and then look for the number of cases of lung cancer in each group.<ref>{{cite book|editor1-last=Rothman|editor1-first=Kenneth J|editor2-last=Greenland|editor2-first=Sander|editor3-last=Lash|editor3-first=Timothy|title=Modern Epidemiology|date=2008|publisher=Lippincott Williams & Wilkins|page=100|edition=3rd|language=English|chapter=7}}</ref> A [[case-control study]] is another type of observational study in which people with and without the outcome of interest (e.g. lung cancer) are invited to participate and their exposure histories are collected.
=== Types of data ===
{{main|Statistical data type||Levels of measurement}}
Various attempts have been made to produce a taxonomy of [[level of measurement|levels of measurement]]. The psychophysicist [[Stanley Smith Stevens]] defined nominal, ordinal, interval, and ratio scales. Nominal measurements do not have meaningful rank order among values, and permit any one-to-one (injective) transformation. Ordinal measurements have imprecise differences between consecutive values, but have a meaningful order to those values, and permit any order-preserving transformation. Interval measurements have meaningful distances between measurements defined, but the zero value is arbitrary (as in the case with [[longitude]] and [[temperature]] measurements in [[Celsius]] or [[Fahrenheit]]), and permit any linear transformation. Ratio measurements have both a meaningful zero value and the distances between different measurements defined, and permit any rescaling transformation.
Because variables conforming only to nominal or ordinal measurements cannot be reasonably measured numerically, sometimes they are grouped together as [[categorical variable]]s, whereas ratio and interval measurements are grouped together as [[Variable (mathematics)#Applied statistics|quantitative variables]], which can be either [[Probability distribution#Discrete probability distribution|discrete]] or [[Probability distribution#Continuous probability distribution|continuous]], due to their numerical nature. Such distinctions can often be loosely correlated with [[data type]] in computer science, in that [[dichotomy|dichotomous]] categorical variables may be represented with the [[Boolean data type]], polytomous categorical variables with arbitrarily assigned [[integer]]s in the [[integer (computer science)|integral data type]], and continuous variables with the [[real data type]] involving [[floating point]] computation. But the mapping of computer science data types to statistical data types depends on which categorization of the latter is being implemented.
Other categorizations have been proposed. For example, Mosteller and Tukey (1977)<ref>Mosteller, F., & Tukey, J.W. (1977). ''Data analysis and regression''. Boston: Addison-Wesley.</ref> distinguished grades, ranks, counted fractions, counts, amounts, and balances. Nelder (1990)<ref>Nelder, J.A. (1990). The knowledge needed to computerise the analysis and interpretation of statistical information. In ''Expert systems and artificial intelligence: the need for information about data''. Library Association Report, London, March, 23–27.</ref> described continuous counts, continuous ratios, count ratios, and categorical modes of data. See also Chrisman (1998),<ref>{{cite journal | last1 = Chrisman | first1 = Nicholas R | year = 1998 | title = Rethinking Levels of Measurement for Cartography | url = | journal = Cartography and Geographic Information Science | volume = 25 | issue = 4| pages = 231–242 | doi=10.1559/152304098782383043}}</ref> van den Berg (1991).<ref>van den Berg, G. (1991). ''Choosing an analysis method''. Leiden: DSWO Press</ref>
The issue of whether or not it is appropriate to apply different kinds of statistical methods to data obtained from different kinds of measurement procedures is complicated by issues concerning the transformation of variables and the precise interpretation of research questions. "The relationship between the data and what they describe merely reflects the fact that certain kinds of statistical statements may have truth values which are not invariant under some transformations. Whether or not a transformation is sensible to contemplate depends on the question one is trying to answer" (Hand, 2004, p. 82).<ref>Hand, D.J. (2004). ''Measurement theory and practice: The world through quantification.'' London: Arnold.</ref>
== Statistical methods ==
=== Descriptive statistics ===
{{main|Descriptive statistics}}
A '''descriptive statistic''' (in the [[count noun]] sense) is a [[summary statistic]] that quantitatively describes or summarizes features of a collection of [[information]],<ref>{{cite book |last=Mann |first=Prem S. |year=1995 |title=Introductory Statistics |edition=2nd |publisher=Wiley |isbn=0-471-31009-3 }}</ref> while '''descriptive statistics''' in the [[mass noun]] sense is the process of using and analyzing those statistics. Descriptive statistics is distinguished from [[statistical inference|inferential statistics]] (or inductive statistics), in that descriptive statistics aims to summarize a [[Sample (statistics)|sample]], rather than use the data to learn about the [[statistical population|population]] that the sample of data is thought to represent.
=== Inferential statistics ===
{{main|Statistical inference}}
'''Statistical inference''' is the process of using [[data analysis]] to deduce properties of an underlying [[probability distribution]].<ref name="Oxford">Upton, G., Cook, I. (2008) ''Oxford Dictionary of Statistics'', OUP. {{ISBN|978-0-19-954145-4}}.</ref> Inferential statistical analysis infers properties of a [[Statistical population|population]], for example by testing hypotheses and deriving estimates. It is assumed that the observed data set is [[Sampling (statistics)|sampled]] from a larger population. Inferential statistics can be contrasted with [[descriptive statistics]]. Descriptive statistics is solely concerned with properties of the observed data, and it does not rest on the assumption that the data come from a larger population.
====Terminology and theory of inferential statistics====
=====Statistics, estimators and pivotal quantities=====
Consider [[Independent identically distributed|independent identically distributed (IID) random variables]] with a given [[probability distribution]]: standard [[statistical inference]] and [[estimation theory]] defines a [[random sample]] as the [[random vector]] given by the [[column vector]] of these IID variables.<ref name=Piazza>Piazza Elio, Probabilità e Statistica, Esculapio 2007</ref> The [[Statistical population|population]] being examined is described by a probability distribution that may have unknown parameters.
A [[statistic]] is a random variable that is a function of the random sample, but ''not a function of unknown parameters''. The probability distribution of the statistic, though, may have unknown parameters.
Consider now a function of the unknown parameter: an [[estimator]] is a statistic used to estimate such function. Commonly used estimators include [[Sample mean#Sample mean|sample mean]], unbiased [[sample variance]] and [[Sample covariance#Sample covariance|sample covariance]].
A random variable that is a function of the random sample and of the unknown parameter, but whose probability distribution ''does not depend on the unknown parameter'' is called a [[pivotal quantity]] or pivot. Widely used pivots include the [[z-score]], the [[Chi-squared distribution#Applications|chi square statistic]] and Student's [[Student's t-distribution#How the t-distribution arises|t-value]].
Between two estimators of a given parameter, the one with lower [[mean squared error]] is said to be more [[Efficient estimator|efficient]]. Furthermore, an estimator is said to be [[Unbiased estimator|unbiased]] if its [[expected value]] is equal to the true value of the unknown parameter being estimated, and asymptotically unbiased if its expected value converges at the [[Limit (mathematics)|limit]] to the true value of such parameter.
Other desirable properties for estimators include: [[UMVUE]] estimators that have the lowest variance for all possible values of the parameter to be estimated (this is usually an easier property to verify than efficiency) and [[Consistency (statistics)|consistent]] estimators which [[converges in probability]] to the true value of such parameter.
This still leaves the question of how to obtain estimators in a given situation and carry the computation, several methods have been proposed: the [[method of moments (statistics)|method of moments]], the [[maximum likelihood]] method, the [[least squares]] method and the more recent method of [[estimating equations]].
=====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>
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.
What [[statisticians]] call an [[alternative hypothesis]] is simply a hypothesis that contradicts the [[null hypothesis]].
=====Error=====
Working from a [[null hypothesis]], two basic forms of error are recognized:
* [[Type I and type II errors#Type I error|Type I errors]] where the null hypothesis is falsely rejected giving a "false positive".
* [[Type I and type II errors#Type II error|Type II errors]] where the null hypothesis fails to be rejected and an actual difference between populations is missed giving a "false negative".
[[Standard deviation]] refers to the extent to which individual observations in a sample differ from a central value, such as the sample or population mean, while [[Standard error (statistics)#Standard error of the mean|Standard error]] refers to an estimate of difference between sample mean and population mean.
A [[Errors and residuals in statistics#Introduction|statistical error]] is the amount by which an observation differs from its [[expected value]], a [[Errors and residuals in statistics#Introduction|residual]] is the amount an observation differs from the value the estimator of the expected value assumes on a given sample (also called prediction).
[[Mean squared error]] is used for obtaining [[efficient estimators]], a widely used class of estimators. [[Root mean square error]] is simply the square root of mean squared error.
[[File:Linear least squares(2).svg|thumb|right|A least squares fit: in red the points to be fitted, in blue the fitted line.]]
Many statistical methods seek to minimize the [[residual sum of squares]], and these are called "[[least squares|methods of least squares]]" in contrast to [[Least absolute deviations]]. The latter gives equal weight to small and big errors, while the former gives more weight to large errors. Residual sum of squares is also [[Differentiable function|differentiable]], which provides a handy property for doing [[regression analysis|regression]]. Least squares applied to [[linear regression]] is called [[ordinary least squares]] method and least squares applied to [[nonlinear regression]] is called [[non-linear least squares]]. Also in a linear regression model the non deterministic part of the model is called error term, disturbance or more simply noise. Both linear regression and non-linear regression are addressed in [[polynomial least squares]], which also describes the variance in a prediction of the dependent variable (y axis) as a function of the independent variable (x axis) and the deviations (errors, noise, disturbances) from the estimated (fitted) curve.
Measurement processes that generate statistical data are also subject to error. Many of these errors are classified as [[Random error|random]] (noise) or [[Systematic error|systematic]] ([[bias]]), but other types of errors (e.g., blunder, such as when an analyst reports incorrect units) can also be important. The presence of [[missing data]] or [[censoring (statistics)|censoring]] may result in [[bias (statistics)|biased estimates]] and specific techniques have been developed to address these problems.<ref>Rubin, Donald B.; Little, Roderick J.A., Statistical analysis with missing data, New York: Wiley 2002</ref>
=====Interval estimation=====
{{main|Interval estimation}}
[[File:NYW-confidence-interval.svg|thumb|right|[[Confidence intervals]]: the red line is true value for the mean in this example, the blue lines are random confidence intervals for 100 realizations.]]
Most studies only sample part of a population, so results don't fully represent the whole population. Any estimates obtained from the sample only approximate the population value. [[Confidence intervals]] allow statisticians to express how closely the sample estimate matches the true value in the whole population. Often they are expressed as 95% confidence intervals. Formally, a 95% confidence interval for a value is a range where, if the sampling and analysis were repeated under the same conditions (yielding a different dataset), the interval would include the true (population) value in 95% of all possible cases. This does ''not'' imply that the probability that the true value is in the confidence interval is 95%. From the [[frequentist inference|frequentist]] perspective, such a claim does not even make sense, as the true value is not a [[random variable]]. Either the true value is or is not within the given interval. However, it is true that, before any data are sampled and given a plan for how to construct the confidence interval, the probability is 95% that the yet-to-be-calculated interval will cover the true value: at this point, the limits of the interval are yet-to-be-observed [[random variable]]s. One approach that does yield an interval that can be interpreted as having a given probability of containing the true value is to use a [[credible interval]] from [[Bayesian statistics]]: this approach depends on a different way of [[Probability interpretations|interpreting what is meant by "probability"]], that is as a [[Bayesian probability]].
In principle confidence intervals can be symmetrical or asymmetrical. An interval can be asymmetrical because it works as lower or upper bound for a parameter (left-sided interval or right sided interval), but it can also be asymmetrical because the two sided interval is built violating symmetry around the estimate. Sometimes the bounds for a confidence interval are reached asymptotically and these are used to approximate the true bounds.
=====Significance=====
{{main|Statistical significance}}
Statistics rarely give a simple Yes/No type answer to the question under analysis. Interpretation often comes down to the level of statistical significance applied to the numbers and often refers to the probability of a value accurately rejecting the null hypothesis (sometimes referred to as the [[p-value]]).
[[File:P-value in statistical significance testing.svg|upright=1.8|thumb|right|In this graph the black line is probability distribution for the [[test statistic]], the [[Critical region#Definition of terms|critical region]] is the set of values to the right of the observed data point (observed value of the test statistic) and the [[p-value]] is represented by the green area.]]
The standard approach<ref name="Piazza"/> is to test a null hypothesis against an alternative hypothesis. A [[Critical region#Definition of terms|critical region]] is the set of values of the estimator that leads to refuting the null hypothesis. The probability of type I error is therefore the probability that the estimator belongs to the critical region given that null hypothesis is true ([[statistical significance]]) and the probability of type II error is the probability that the estimator doesn't belong to the critical region given that the alternative hypothesis is true. The [[statistical power]] of a test is the probability that it correctly rejects the null hypothesis when the null hypothesis is false.
Referring to statistical significance does not necessarily mean that the overall result is significant in real world terms. For example, in a large study of a drug it may be shown that the drug has a statistically significant but very small beneficial effect, such that the drug is unlikely to help the patient noticeably.
Although in principle the acceptable level of [[statistical significance]] may be subject to debate, the [[p-value]] is the smallest significance level that allows the test to reject the null hypothesis. This test is logically equivalent to saying that the p-value is the probability, assuming the null hypothesis is true, of observing a result at least as extreme as the [[test statistic]]. Therefore, the smaller the p-value, the lower the probability of committing type I error.
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.
* 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.
* 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}}
=====Examples=====
Some well-known statistical [[Statistical hypothesis testing|tests]] and [[Procedure (term)|procedures]] are:
{{Columns-list|colwidth=22em|
* [[Analysis of variance]] (ANOVA)
* [[Chi-squared test]]
* [[Correlation]]
* [[Factor analysis]]
* [[Mann–Whitney U|Mann–Whitney ''U'']]
* [[Mean square weighted deviation]] (MSWD)
* [[Pearson product-moment correlation coefficient]]
* [[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.
* [[Student's t-test|Student's ''t''-test]]
* [[Time series analysis]]
* [[Conjoint Analysis]]
}}
===Exploratory data analysis===
{{main|Exploratory data analysis}}
'''Exploratory data analysis''' ('''EDA''') is an approach to [[data analysis|analyzing]] [[data set]]s 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.
== Misuse ==
{{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.
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>
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>
* Who says so? (Does he/she have an axe to grind?)
* How does he/she know? (Does he/she have the resources to know the facts?)
* What's missing? (Does he/she give us a complete picture?)
* Did someone change the subject? (Does he/she offer us the right answer to the wrong problem?)
* Does it make sense? (Is his/her conclusion logical and consistent with what we already know?)
[[File:Simple Confounding Case.svg|upright=0.9|thumb|right|The [[confounding variable]] problem: ''X'' and ''Y'' may be correlated, not because there is causal relationship between them, but because both depend on a third variable ''Z''. ''Z'' is called a confounding factor.]]
===Misinterpretation: correlation===
The concept of [[correlation]] is particularly noteworthy for the potential confusion it can cause. Statistical analysis of a [[data set]] often reveals that two variables (properties) of the population under consideration tend to vary together, as if they were connected. For example, a study of annual income that also looks at age of death might find that poor people tend to have shorter lives than affluent people. The two variables are said to be correlated; however, they may or may not be the cause of one another. The correlation phenomena could be caused by a third, previously unconsidered phenomenon, called a lurking variable or [[confounding variable]]. For this reason, there is no way to immediately infer the existence of a causal relationship between the two variables. (See [[Correlation does not imply causation]].)
== Applications ==
===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]].
===Machine learning and data mining===
Machine Learning models are statistical and probabilistic models that captures patterns in the data through use of computational algorithms.
===Statistics in society===
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.
===Statistical computing===
[[File:Gretl screenshot.png|thumb|upright=1.15|right|[[gretl]], an example of an [[List of open source statistical packages|open source statistical package]]]]
{{main|Computational statistics}}
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]].
===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.
* 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}}
* The [[process art]] of [[Jackson Pollock]] relied on artistic experiments whereby underlying distributions in nature were artistically revealed.{{Citation needed|date=March 2013}} With the advent of computers, statistical methods were applied to formalize such distribution-driven natural processes to make and analyze moving video art.{{Citation needed|date=March 2013}}
* Methods of statistics may be used predicatively in [[performance art]], as in a card trick based on a [[Markov process]] that only works some of the time, the occasion of which can be predicted using statistical methodology.
* Statistics can be used to predicatively create art, as in the statistical or [[stochastic music]] invented by [[Iannis Xenakis]], where the music is performance-specific. Though this type of artistry does not always come out as expected, it does behave in ways that are predictable and tunable using statistics.
== Specialized disciplines ==
{{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:
{{Columns-list|colwidth=30em|
* [[Actuarial science]] (assesses risk in the insurance and finance industries)
* [[Applied information economics]]
* [[Astrostatistics]] (statistical evaluation of astronomical data)
* [[Biostatistics]]
* [[Business statistics]]
* [[Chemometrics]] (for analysis of data from [[chemistry]])
* [[Data mining]] (applying statistics and [[pattern recognition]] to discover knowledge from data)
* [[Data science]]
* [[Demography]] (statistical study of populations)
* [[Econometrics]] (statistical analysis of economic data)
* [[E-statistics|Energy statistics]]
* [[Engineering statistics]]
* [[Epidemiology]] (statistical analysis of disease)
* [[Geography]] and [[geographic information system]]s, specifically in [[spatial analysis]]
* [[Image processing]]
* [[Medical statistics]]
* [[Political science]]
* [[Psychological statistics]]
* [[Reliability engineering]]
* [[Social statistics]]
* [[Statistical mechanics]]
}}
In addition, there are particular types of statistical analysis that have also developed their own specialised terminology and methodology:
{{Columns-list|colwidth=30em|
* [[Bootstrapping (statistics)|Bootstrap]]{{\}}[[Resampling (statistics)|jackknife resampling]]
* [[Multivariate statistics]]
* [[Statistical classification]]
* [[Structured data analysis (statistics)]]
* [[Structural equation modelling]]
* [[Survey methodology]]
* [[Survival analysis]]
* Statistics in various sports, particularly [[Baseball statistics|baseball]] – known as [[sabermetrics]] – and [[Cricket statistics|cricket]]
}}
Statistics form a key basis tool in business and manufacturing as well. It is used to understand measurement systems variability, control processes (as in [[statistical process control]] or SPC), for summarizing data, and to make data-driven decisions. In these roles, it is a key tool, and perhaps the only reliable tool.
== See also ==
{{Library resources box |by=no |onlinebooks=no |others=no |about=yes |label=Statistics}}
{{main|Outline of statistics}}
<!-- 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]]
* [[Data science]]
* [[Glossary of probability and statistics]]
* [[List of academic statistical associations]]
* [[List of important publications in statistics]]
* [[List of national and international statistical services]]
* [[List of statistical packages]] (software)
* [[List of statistics articles]]
* [[List of university statistical consulting centers]]
* [[Notation in probability and 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 of statistics]]
* [[List of statisticians]]
* [[Official statistics]]
* [[Multivariate analysis of variance]]
:<!--empty column-->
:<!--empty column-->
}}
== References ==
{{reflist}}
==Further reading==
* {{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]].
* [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}}.
* Cohen, J. (1990). [http://moityca.com.br/pdfs/Cohen_1990.pdf "Things I have learned (so far)"]. ''American Psychologist'', 45, 1304–1312.
* Gigerenzer, G. (2004). "Mindless statistics". ''Journal of Socio-Economics'', 33, 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}}
==External links==
{{Sister project links|Statistics}}
* (Electronic Version): StatSoft, Inc. (2013). [http://www.statsoft.com/textbook/ Electronic Statistics Textbook]. Tulsa, OK: StatSoft.
* [http://onlinestatbook.com/index.html ''Online Statistics Education: An Interactive Multimedia Course of Study'']. Developed by Rice University (Lead Developer), University of Houston Clear Lake, Tufts University, and National Science Foundation.
* [https://web.archive.org/web/20060717201702/http://www.ats.ucla.edu/stat/ UCLA Statistical Computing Resources]
* [https://plato.stanford.edu/entries/statistics/ Philosophy of Statistics] from the [[Stanford Encyclopedia of Philosophy]]
{{Statistics |state=expanded}}
{{Areas of mathematics |collapsed}}
{{Glossaries of science and engineering}}
{{portal bar|Statistics|Mathematics}}
{{Authority control}}
[[Category:Statistics| ]]<!--space-indexed (i.e. lead/home/eponymous) category first-->
[[Category:Data]]
[[Category:Formal sciences]]
[[Category:Information]]
[[Category:Mathematical and quantitative methods (economics)]]
[[Category:Research methods]]' |
New page wikitext, after the edit (new_wikitext ) | '{{short description|Study of the collection, analysis, interpretation, and presentation of data}}
{{other uses|Statistics (disambiguation)}}
{{StatsTopicTOC}}
[[File:The Normal Distribution.svg|thumb|upright=1.3|right|More [[Probability density function|probability density]] is found as one gets closer to the expected (mean) value in a [[normal distribution]]. Statistics used in [[Standardized testing (statistics)|standardized testing]] assessment are shown. The scales include [[standard deviation]]s, cumulative percentages, Z-scores, and [[T-score]]s.]]
[[File:Scatterplot.jpg|thumb|upright=1.3|right|[[Scatter plot]]s are used in descriptive statistics to show the observed relationships between different variables.]]
<!--PLEASE DO NOT EDIT THE OPENING SENTENCE WITHOUT FIRST PROPOSING YOUR CHANGE AT THE TALK PAGE.-->'''Statistics''' is a branch of [[mathematics|trees]] working with [[data]] collection, orgasim, 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 web |first=Jan-Willem |last=Romijn |year=2014 |title=Philosophy of statistics |publisher=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/>
See [[glossary of probability and statistics]]. STATISTICS IS SHIT SO DONT CHOOSE IT FOR YOUR OPTIONS KIDS 🤫✌️❤️
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.
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}}
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>
{{TOC limit|3}}
== Introduction ==
{{Main|Outline of statistics}}
Some definitions are:
* ''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 |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".
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]].
===Mathematical statistics===
{{Main|Mathematical statistics}}
Mathematical statistics is the application of [[mathematics]] to statistics. Mathematical techniques used for this include [[mathematical analysis]], [[linear algebra]], [[stochastic analysis]], [[differential equations]], and [[measure-theoretic probability theory]].<ref>{{cite book|last=Lakshmikantham,|first=ed. by D. Kannan, V.|title=Handbook of stochastic analysis and applications|date=2002|publisher=M. Dekker|location=New York|isbn=0824706609}}</ref><ref>{{cite book|last=Schervish|first=Mark J.|title=Theory of statistics|date=1995|publisher=Springer|location=New York|isbn=0387945466|edition=Corr. 2nd print.}}</ref>
== History ==
[[File:Jerôme Cardan.jpg|thumb|right|upright=1.05|[[Gerolamo Cardano]], a pioneer on the mathematics of probability.]]
{{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–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 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.
[[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=|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 – [[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>
[[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 | 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
|title=The Influence of Fisher's "The Design of Experiments" on Educational Research Thirty Years Later
|first1=Julian C. |last1=Stanley
|journal=American Educational Research Journal
|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=14|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]].
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}}</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==
{{main|Statistical data}}
=== Data collection ===
====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>
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.
Sampling theory is part of the [[mathematics|mathematical discipline]] of [[probability theory]]. Probability is used in [[statistical theory|mathematical statistics]] to study the [[sampling distribution]]s of [[sample statistic]]s and, more generally, the properties of [[statistical decision theory|statistical procedures]]. The use of any statistical method is valid when the system or population under consideration satisfies the assumptions of the method.
The difference in point of view between classic probability theory and sampling theory is, roughly, that probability theory starts from the given parameters of a total population to [[deductive reasoning|deduce]] probabilities that pertain to samples. Statistical inference, however, moves in the opposite direction—[[inductive reasoning|inductively inferring]] from samples to the parameters of a larger or total population.
====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.
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.
=====Experiments=====
The basic steps of a statistical experiment are:
# Planning the research, including finding the number of replicates of the study, using the following information: preliminary estimates regarding the size of [[Average treatment effect|treatment effects]], [[alternative hypothesis|alternative hypotheses]], and the estimated [[experimental error|experimental variability]]. Consideration of the selection of experimental subjects and the ethics of research is necessary. Statisticians recommend that experiments compare (at least) one new treatment with a standard treatment or control, to allow an unbiased estimate of the difference in treatment effects.
# [[Design of experiments]], using [[blocking (statistics)|blocking]] to reduce the influence of [[confounding variable]]s, and [[randomized assignment]] of treatments to subjects to allow [[bias of an estimator|unbiased estimates]] of treatment effects and experimental error. At this stage, the experimenters and statisticians write the ''[[protocol (natural sciences)|experimental protocol]]'' that will guide the performance of the experiment and which specifies the'' primary analysis'' of the experimental data.
# Performing the experiment following the [[Protocol (natural sciences)|experimental protocol]] and [[analysis of variance|analyzing the data]] following the experimental protocol.
# Further examining the data set in secondary analyses, to suggest new hypotheses for future study.
# Documenting and presenting the results of the study.
Experiments on human behavior have special concerns. The famous [[Hawthorne study]] examined changes to the working environment at the Hawthorne plant of the [[Western Electric Company]]. The researchers were interested in determining whether increased illumination would increase the productivity of the [[assembly line]] workers. The researchers first measured the productivity in the plant, then modified the illumination in an area of the plant and checked if the changes in illumination affected productivity. It turned out that productivity indeed improved (under the experimental conditions). However, the study is heavily criticized today for errors in experimental procedures, specifically for the lack of a [[control group]] and [[double-blind|blindness]]. The [[Hawthorne effect]] refers to finding that an outcome (in this case, worker productivity) changed due to observation itself. Those in the Hawthorne study became more productive not because the lighting was changed but because they were being observed.<ref name="pmid17608932">{{cite journal |vauthors=McCarney R, Warner J, Iliffe S, van Haselen R, Griffin M, Fisher P |title=The Hawthorne Effect: a randomised, controlled trial |journal=BMC Med Res Methodol |volume=7|pages=30 |year=2007 |pmid=17608932 |pmc=1936999 |doi=10.1186/1471-2288-7-30 |issue=1}}</ref>
=====Observational study=====
An example of an observational study is one that explores the association between smoking and lung cancer. This type of study typically uses a survey to collect observations about the area of interest and then performs statistical analysis. In this case, the researchers would collect observations of both smokers and non-smokers, perhaps through a [[cohort study]], and then look for the number of cases of lung cancer in each group.<ref>{{cite book|editor1-last=Rothman|editor1-first=Kenneth J|editor2-last=Greenland|editor2-first=Sander|editor3-last=Lash|editor3-first=Timothy|title=Modern Epidemiology|date=2008|publisher=Lippincott Williams & Wilkins|page=100|edition=3rd|language=English|chapter=7}}</ref> A [[case-control study]] is another type of observational study in which people with and without the outcome of interest (e.g. lung cancer) are invited to participate and their exposure histories are collected.
=== Types of data ===
{{main|Statistical data type||Levels of measurement}}
Various attempts have been made to produce a taxonomy of [[level of measurement|levels of measurement]]. The psychophysicist [[Stanley Smith Stevens]] defined nominal, ordinal, interval, and ratio scales. Nominal measurements do not have meaningful rank order among values, and permit any one-to-one (injective) transformation. Ordinal measurements have imprecise differences between consecutive values, but have a meaningful order to those values, and permit any order-preserving transformation. Interval measurements have meaningful distances between measurements defined, but the zero value is arbitrary (as in the case with [[longitude]] and [[temperature]] measurements in [[Celsius]] or [[Fahrenheit]]), and permit any linear transformation. Ratio measurements have both a meaningful zero value and the distances between different measurements defined, and permit any rescaling transformation.
Because variables conforming only to nominal or ordinal measurements cannot be reasonably measured numerically, sometimes they are grouped together as [[categorical variable]]s, whereas ratio and interval measurements are grouped together as [[Variable (mathematics)#Applied statistics|quantitative variables]], which can be either [[Probability distribution#Discrete probability distribution|discrete]] or [[Probability distribution#Continuous probability distribution|continuous]], due to their numerical nature. Such distinctions can often be loosely correlated with [[data type]] in computer science, in that [[dichotomy|dichotomous]] categorical variables may be represented with the [[Boolean data type]], polytomous categorical variables with arbitrarily assigned [[integer]]s in the [[integer (computer science)|integral data type]], and continuous variables with the [[real data type]] involving [[floating point]] computation. But the mapping of computer science data types to statistical data types depends on which categorization of the latter is being implemented.
Other categorizations have been proposed. For example, Mosteller and Tukey (1977)<ref>Mosteller, F., & Tukey, J.W. (1977). ''Data analysis and regression''. Boston: Addison-Wesley.</ref> distinguished grades, ranks, counted fractions, counts, amounts, and balances. Nelder (1990)<ref>Nelder, J.A. (1990). The knowledge needed to computerise the analysis and interpretation of statistical information. In ''Expert systems and artificial intelligence: the need for information about data''. Library Association Report, London, March, 23–27.</ref> described continuous counts, continuous ratios, count ratios, and categorical modes of data. See also Chrisman (1998),<ref>{{cite journal | last1 = Chrisman | first1 = Nicholas R | year = 1998 | title = Rethinking Levels of Measurement for Cartography | url = | journal = Cartography and Geographic Information Science | volume = 25 | issue = 4| pages = 231–242 | doi=10.1559/152304098782383043}}</ref> van den Berg (1991).<ref>van den Berg, G. (1991). ''Choosing an analysis method''. Leiden: DSWO Press</ref>
The issue of whether or not it is appropriate to apply different kinds of statistical methods to data obtained from different kinds of measurement procedures is complicated by issues concerning the transformation of variables and the precise interpretation of research questions. "The relationship between the data and what they describe merely reflects the fact that certain kinds of statistical statements may have truth values which are not invariant under some transformations. Whether or not a transformation is sensible to contemplate depends on the question one is trying to answer" (Hand, 2004, p. 82).<ref>Hand, D.J. (2004). ''Measurement theory and practice: The world through quantification.'' London: Arnold.</ref>
== Statistical methods ==
=== Descriptive statistics ===
{{main|Descriptive statistics}}
A '''descriptive statistic''' (in the [[count noun]] sense) is a [[summary statistic]] that quantitatively describes or summarizes features of a collection of [[information]],<ref>{{cite book |last=Mann |first=Prem S. |year=1995 |title=Introductory Statistics |edition=2nd |publisher=Wiley |isbn=0-471-31009-3 }}</ref> while '''descriptive statistics''' in the [[mass noun]] sense is the process of using and analyzing those statistics. Descriptive statistics is distinguished from [[statistical inference|inferential statistics]] (or inductive statistics), in that descriptive statistics aims to summarize a [[Sample (statistics)|sample]], rather than use the data to learn about the [[statistical population|population]] that the sample of data is thought to represent.
=== Inferential statistics ===
{{main|Statistical inference}}
'''Statistical inference''' is the process of using [[data analysis]] to deduce properties of an underlying [[probability distribution]].<ref name="Oxford">Upton, G., Cook, I. (2008) ''Oxford Dictionary of Statistics'', OUP. {{ISBN|978-0-19-954145-4}}.</ref> Inferential statistical analysis infers properties of a [[Statistical population|population]], for example by testing hypotheses and deriving estimates. It is assumed that the observed data set is [[Sampling (statistics)|sampled]] from a larger population. Inferential statistics can be contrasted with [[descriptive statistics]]. Descriptive statistics is solely concerned with properties of the observed data, and it does not rest on the assumption that the data come from a larger population.
====Terminology and theory of inferential statistics====
=====Statistics, estimators and pivotal quantities=====
Consider [[Independent identically distributed|independent identically distributed (IID) random variables]] with a given [[probability distribution]]: standard [[statistical inference]] and [[estimation theory]] defines a [[random sample]] as the [[random vector]] given by the [[column vector]] of these IID variables.<ref name=Piazza>Piazza Elio, Probabilità e Statistica, Esculapio 2007</ref> The [[Statistical population|population]] being examined is described by a probability distribution that may have unknown parameters.
A [[statistic]] is a random variable that is a function of the random sample, but ''not a function of unknown parameters''. The probability distribution of the statistic, though, may have unknown parameters.
Consider now a function of the unknown parameter: an [[estimator]] is a statistic used to estimate such function. Commonly used estimators include [[Sample mean#Sample mean|sample mean]], unbiased [[sample variance]] and [[Sample covariance#Sample covariance|sample covariance]].
A random variable that is a function of the random sample and of the unknown parameter, but whose probability distribution ''does not depend on the unknown parameter'' is called a [[pivotal quantity]] or pivot. Widely used pivots include the [[z-score]], the [[Chi-squared distribution#Applications|chi square statistic]] and Student's [[Student's t-distribution#How the t-distribution arises|t-value]].
Between two estimators of a given parameter, the one with lower [[mean squared error]] is said to be more [[Efficient estimator|efficient]]. Furthermore, an estimator is said to be [[Unbiased estimator|unbiased]] if its [[expected value]] is equal to the true value of the unknown parameter being estimated, and asymptotically unbiased if its expected value converges at the [[Limit (mathematics)|limit]] to the true value of such parameter.
Other desirable properties for estimators include: [[UMVUE]] estimators that have the lowest variance for all possible values of the parameter to be estimated (this is usually an easier property to verify than efficiency) and [[Consistency (statistics)|consistent]] estimators which [[converges in probability]] to the true value of such parameter.
This still leaves the question of how to obtain estimators in a given situation and carry the computation, several methods have been proposed: the [[method of moments (statistics)|method of moments]], the [[maximum likelihood]] method, the [[least squares]] method and the more recent method of [[estimating equations]].
=====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>
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.
What [[statisticians]] call an [[alternative hypothesis]] is simply a hypothesis that contradicts the [[null hypothesis]].
=====Error=====
Working from a [[null hypothesis]], two basic forms of error are recognized:
* [[Type I and type II errors#Type I error|Type I errors]] where the null hypothesis is falsely rejected giving a "false positive".
* [[Type I and type II errors#Type II error|Type II errors]] where the null hypothesis fails to be rejected and an actual difference between populations is missed giving a "false negative".
[[Standard deviation]] refers to the extent to which individual observations in a sample differ from a central value, such as the sample or population mean, while [[Standard error (statistics)#Standard error of the mean|Standard error]] refers to an estimate of difference between sample mean and population mean.
A [[Errors and residuals in statistics#Introduction|statistical error]] is the amount by which an observation differs from its [[expected value]], a [[Errors and residuals in statistics#Introduction|residual]] is the amount an observation differs from the value the estimator of the expected value assumes on a given sample (also called prediction).
[[Mean squared error]] is used for obtaining [[efficient estimators]], a widely used class of estimators. [[Root mean square error]] is simply the square root of mean squared error.
[[File:Linear least squares(2).svg|thumb|right|A least squares fit: in red the points to be fitted, in blue the fitted line.]]
Many statistical methods seek to minimize the [[residual sum of squares]], and these are called "[[least squares|methods of least squares]]" in contrast to [[Least absolute deviations]]. The latter gives equal weight to small and big errors, while the former gives more weight to large errors. Residual sum of squares is also [[Differentiable function|differentiable]], which provides a handy property for doing [[regression analysis|regression]]. Least squares applied to [[linear regression]] is called [[ordinary least squares]] method and least squares applied to [[nonlinear regression]] is called [[non-linear least squares]]. Also in a linear regression model the non deterministic part of the model is called error term, disturbance or more simply noise. Both linear regression and non-linear regression are addressed in [[polynomial least squares]], which also describes the variance in a prediction of the dependent variable (y axis) as a function of the independent variable (x axis) and the deviations (errors, noise, disturbances) from the estimated (fitted) curve.
Measurement processes that generate statistical data are also subject to error. Many of these errors are classified as [[Random error|random]] (noise) or [[Systematic error|systematic]] ([[bias]]), but other types of errors (e.g., blunder, such as when an analyst reports incorrect units) can also be important. The presence of [[missing data]] or [[censoring (statistics)|censoring]] may result in [[bias (statistics)|biased estimates]] and specific techniques have been developed to address these problems.<ref>Rubin, Donald B.; Little, Roderick J.A., Statistical analysis with missing data, New York: Wiley 2002</ref>
=====Interval estimation=====
{{main|Interval estimation}}
[[File:NYW-confidence-interval.svg|thumb|right|[[Confidence intervals]]: the red line is true value for the mean in this example, the blue lines are random confidence intervals for 100 realizations.]]
Most studies only sample part of a population, so results don't fully represent the whole population. Any estimates obtained from the sample only approximate the population value. [[Confidence intervals]] allow statisticians to express how closely the sample estimate matches the true value in the whole population. Often they are expressed as 95% confidence intervals. Formally, a 95% confidence interval for a value is a range where, if the sampling and analysis were repeated under the same conditions (yielding a different dataset), the interval would include the true (population) value in 95% of all possible cases. This does ''not'' imply that the probability that the true value is in the confidence interval is 95%. From the [[frequentist inference|frequentist]] perspective, such a claim does not even make sense, as the true value is not a [[random variable]]. Either the true value is or is not within the given interval. However, it is true that, before any data are sampled and given a plan for how to construct the confidence interval, the probability is 95% that the yet-to-be-calculated interval will cover the true value: at this point, the limits of the interval are yet-to-be-observed [[random variable]]s. One approach that does yield an interval that can be interpreted as having a given probability of containing the true value is to use a [[credible interval]] from [[Bayesian statistics]]: this approach depends on a different way of [[Probability interpretations|interpreting what is meant by "probability"]], that is as a [[Bayesian probability]].
In principle confidence intervals can be symmetrical or asymmetrical. An interval can be asymmetrical because it works as lower or upper bound for a parameter (left-sided interval or right sided interval), but it can also be asymmetrical because the two sided interval is built violating symmetry around the estimate. Sometimes the bounds for a confidence interval are reached asymptotically and these are used to approximate the true bounds.
=====Significance=====
{{main|Statistical significance}}
Statistics rarely give a simple Yes/No type answer to the question under analysis. Interpretation often comes down to the level of statistical significance applied to the numbers and often refers to the probability of a value accurately rejecting the null hypothesis (sometimes referred to as the [[p-value]]).
[[File:P-value in statistical significance testing.svg|upright=1.8|thumb|right|In this graph the black line is probability distribution for the [[test statistic]], the [[Critical region#Definition of terms|critical region]] is the set of values to the right of the observed data point (observed value of the test statistic) and the [[p-value]] is represented by the green area.]]
The standard approach<ref name="Piazza"/> is to test a null hypothesis against an alternative hypothesis. A [[Critical region#Definition of terms|critical region]] is the set of values of the estimator that leads to refuting the null hypothesis. The probability of type I error is therefore the probability that the estimator belongs to the critical region given that null hypothesis is true ([[statistical significance]]) and the probability of type II error is the probability that the estimator doesn't belong to the critical region given that the alternative hypothesis is true. The [[statistical power]] of a test is the probability that it correctly rejects the null hypothesis when the null hypothesis is false.
Referring to statistical significance does not necessarily mean that the overall result is significant in real world terms. For example, in a large study of a drug it may be shown that the drug has a statistically significant but very small beneficial effect, such that the drug is unlikely to help the patient noticeably.
Although in principle the acceptable level of [[statistical significance]] may be subject to debate, the [[p-value]] is the smallest significance level that allows the test to reject the null hypothesis. This test is logically equivalent to saying that the p-value is the probability, assuming the null hypothesis is true, of observing a result at least as extreme as the [[test statistic]]. Therefore, the smaller the p-value, the lower the probability of committing type I error.
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.
* 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.
* 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}}
=====Examples=====
Some well-known statistical [[Statistical hypothesis testing|tests]] and [[Procedure (term)|procedures]] are:
{{Columns-list|colwidth=22em|
* [[Analysis of variance]] (ANOVA)
* [[Chi-squared test]]
* [[Correlation]]
* [[Factor analysis]]
* [[Mann–Whitney U|Mann–Whitney ''U'']]
* [[Mean square weighted deviation]] (MSWD)
* [[Pearson product-moment correlation coefficient]]
* [[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.
* [[Student's t-test|Student's ''t''-test]]
* [[Time series analysis]]
* [[Conjoint Analysis]]
}}
===Exploratory data analysis===
{{main|Exploratory data analysis}}
'''Exploratory data analysis''' ('''EDA''') is an approach to [[data analysis|analyzing]] [[data set]]s 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.
== Misuse ==
{{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.
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>
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>
* Who says so? (Does he/she have an axe to grind?)
* How does he/she know? (Does he/she have the resources to know the facts?)
* What's missing? (Does he/she give us a complete picture?)
* Did someone change the subject? (Does he/she offer us the right answer to the wrong problem?)
* Does it make sense? (Is his/her conclusion logical and consistent with what we already know?)
[[File:Simple Confounding Case.svg|upright=0.9|thumb|right|The [[confounding variable]] problem: ''X'' and ''Y'' may be correlated, not because there is causal relationship between them, but because both depend on a third variable ''Z''. ''Z'' is called a confounding factor.]]
===Misinterpretation: correlation===
The concept of [[correlation]] is particularly noteworthy for the potential confusion it can cause. Statistical analysis of a [[data set]] often reveals that two variables (properties) of the population under consideration tend to vary together, as if they were connected. For example, a study of annual income that also looks at age of death might find that poor people tend to have shorter lives than affluent people. The two variables are said to be correlated; however, they may or may not be the cause of one another. The correlation phenomena could be caused by a third, previously unconsidered phenomenon, called a lurking variable or [[confounding variable]]. For this reason, there is no way to immediately infer the existence of a causal relationship between the two variables. (See [[Correlation does not imply causation]].)
== Applications ==
===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]].
===Machine learning and data mining===
Machine Learning models are statistical and probabilistic models that captures patterns in the data through use of computational algorithms.
===Statistics in society===
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.
===Statistical computing===
[[File:Gretl screenshot.png|thumb|upright=1.15|right|[[gretl]], an example of an [[List of open source statistical packages|open source statistical package]]]]
{{main|Computational statistics}}
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]].
===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.
* 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}}
* The [[process art]] of [[Jackson Pollock]] relied on artistic experiments whereby underlying distributions in nature were artistically revealed.{{Citation needed|date=March 2013}} With the advent of computers, statistical methods were applied to formalize such distribution-driven natural processes to make and analyze moving video art.{{Citation needed|date=March 2013}}
* Methods of statistics may be used predicatively in [[performance art]], as in a card trick based on a [[Markov process]] that only works some of the time, the occasion of which can be predicted using statistical methodology.
* Statistics can be used to predicatively create art, as in the statistical or [[stochastic music]] invented by [[Iannis Xenakis]], where the music is performance-specific. Though this type of artistry does not always come out as expected, it does behave in ways that are predictable and tunable using statistics.
== Specialized disciplines ==
{{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:
{{Columns-list|colwidth=30em|
* [[Actuarial science]] (assesses risk in the insurance and finance industries)
* [[Applied information economics]]
* [[Astrostatistics]] (statistical evaluation of astronomical data)
* [[Biostatistics]]
* [[Business statistics]]
* [[Chemometrics]] (for analysis of data from [[chemistry]])
* [[Data mining]] (applying statistics and [[pattern recognition]] to discover knowledge from data)
* [[Data science]]
* [[Demography]] (statistical study of populations)
* [[Econometrics]] (statistical analysis of economic data)
* [[E-statistics|Energy statistics]]
* [[Engineering statistics]]
* [[Epidemiology]] (statistical analysis of disease)
* [[Geography]] and [[geographic information system]]s, specifically in [[spatial analysis]]
* [[Image processing]]
* [[Medical statistics]]
* [[Political science]]
* [[Psychological statistics]]
* [[Reliability engineering]]
* [[Social statistics]]
* [[Statistical mechanics]]
}}
In addition, there are particular types of statistical analysis that have also developed their own specialised terminology and methodology:
{{Columns-list|colwidth=30em|
* [[Bootstrapping (statistics)|Bootstrap]]{{\}}[[Resampling (statistics)|jackknife resampling]]
* [[Multivariate statistics]]
* [[Statistical classification]]
* [[Structured data analysis (statistics)]]
* [[Structural equation modelling]]
* [[Survey methodology]]
* [[Survival analysis]]
* Statistics in various sports, particularly [[Baseball statistics|baseball]] – known as [[sabermetrics]] – and [[Cricket statistics|cricket]]
}}
Statistics form a key basis tool in business and manufacturing as well. It is used to understand measurement systems variability, control processes (as in [[statistical process control]] or SPC), for summarizing data, and to make data-driven decisions. In these roles, it is a key tool, and perhaps the only reliable tool.
== See also ==
{{Library resources box |by=no |onlinebooks=no |others=no |about=yes |label=Statistics}}
{{main|Outline of statistics}}
<!-- 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]]
* [[Data science]]
* [[Glossary of probability and statistics]]
* [[List of academic statistical associations]]
* [[List of important publications in statistics]]
* [[List of national and international statistical services]]
* [[List of statistical packages]] (software)
* [[List of statistics articles]]
* [[List of university statistical consulting centers]]
* [[Notation in probability and 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 of statistics]]
* [[List of statisticians]]
* [[Official statistics]]
* [[Multivariate analysis of variance]]
:<!--empty column-->
:<!--empty column-->
}}
== References ==
{{reflist}}
==Further reading==
* {{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]].
* [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}}.
* Cohen, J. (1990). [http://moityca.com.br/pdfs/Cohen_1990.pdf "Things I have learned (so far)"]. ''American Psychologist'', 45, 1304–1312.
* Gigerenzer, G. (2004). "Mindless statistics". ''Journal of Socio-Economics'', 33, 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}}
==External links==
{{Sister project links|Statistics}}
* (Electronic Version): StatSoft, Inc. (2013). [http://www.statsoft.com/textbook/ Electronic Statistics Textbook]. Tulsa, OK: StatSoft.
* [http://onlinestatbook.com/index.html ''Online Statistics Education: An Interactive Multimedia Course of Study'']. Developed by Rice University (Lead Developer), University of Houston Clear Lake, Tufts University, and National Science Foundation.
* [https://web.archive.org/web/20060717201702/http://www.ats.ucla.edu/stat/ UCLA Statistical Computing Resources]
* [https://plato.stanford.edu/entries/statistics/ Philosophy of Statistics] from the [[Stanford Encyclopedia of Philosophy]]
{{Statistics |state=expanded}}
{{Areas of mathematics |collapsed}}
{{Glossaries of science and engineering}}
{{portal bar|Statistics|Mathematics}}
{{Authority control}}
[[Category:Statistics| ]]<!--space-indexed (i.e. lead/home/eponymous) category first-->
[[Category:Data]]
[[Category:Formal sciences]]
[[Category:Information]]
[[Category:Mathematical and quantitative methods (economics)]]
[[Category:Research methods]]' |