<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ChelseyBianco</id>
	<title>formulasearchengine - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ChelseyBianco"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/wiki/Special:Contributions/ChelseyBianco"/>
	<updated>2026-07-27T09:16:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.47.0-wmf.7</generator>
	<entry>
		<id>https://en.formulasearchengine.com/w/index.php?title=Main_Page&amp;diff=39457</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Main_Page&amp;diff=39457"/>
		<updated>2014-08-10T21:12:35Z</updated>

		<summary type="html">&lt;p&gt;ChelseyBianco: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{More footnotes|date=June 2009}}&lt;br /&gt;
[[Image:Random Walk example.svg|thumb|right|420px|Example of eight random walks in one dimension starting at 0. The plot shows the current position on the line (vertical axis) versus the time steps (horizontal axis).]]&lt;br /&gt;
A &#039;&#039;&#039;random walk&#039;&#039;&#039; is a [[mathematical]] formalization of a path that consists of a succession of [[random]] steps. For example, the path traced by a [[molecule]] as it travels in a liquid or a gas, the search path of a [[foraging]] animal, the price of a fluctuating [[random walk hypothesis|stock]] and the financial status of a [[gambler]] can all be &#039;&#039;modeled&#039;&#039; as random walks, although they may not be truly random in reality. The term &#039;&#039;random walk&#039;&#039; was first introduced by [[Karl Pearson]] in 1905.&amp;lt;ref&amp;gt;Pearson, K. (1905). &#039;&#039;The Problem of the Random Walk.&#039;&#039; [[Nature (journal)|Nature]]. &#039;&#039;&#039;72&#039;&#039;&#039;, 294.&amp;lt;/ref&amp;gt; Random walks have been used in many fields: [[ecology]], [[economics]], [[psychology]], [[computer science]], [[physics]], [[chemistry]], and [[biology]].&amp;lt;ref name=[1]&amp;gt;Van Kampen N. G., Stochastic Processes in Physics and Chemistry, revised and enlarged edition (North-Holland, Amsterdam) 1992.&amp;lt;/ref&amp;gt;&amp;lt;ref name=[2]&amp;gt;Redner S., A Guide to First-Passage Process (Cambridge University Press, Cambridge, UK) 2001.&amp;lt;/ref&amp;gt;&amp;lt;ref name=[3]&amp;gt;Goel N. W. and Richter-Dyn N., Stochastic Models in Biology (Academic Press, New York) 1974.&amp;lt;/ref&amp;gt;&amp;lt;ref name=[4]&amp;gt;Doi M. and Edwards S. F., The Theory of Polymer Dynamics (Clarendon Press, Oxford) 1986&amp;lt;/ref&amp;gt;&amp;lt;ref name=[4c]&amp;gt;De Gennes P. G., Scaling Concepts in Polymer Physics (Cornell University Press, Ithaca and London) 1979.&amp;lt;/ref&amp;gt;&amp;lt;ref name=[5]&amp;gt;Risken H., The Fokker–Planck Equation (Springer, Berlin) 1984.&amp;lt;/ref&amp;gt;&amp;lt;ref name=[6]&amp;gt;Weiss G. H., Aspects and Applications of the Random Walk (North-Holland, Amsterdam) 1994.&amp;lt;/ref&amp;gt;&amp;lt;ref name=[7]&amp;gt;Cox D. R., Renewal Theory (Methuen, London) 1962.&amp;lt;/ref&amp;gt; Random walks explain the observed behaviors of processes in these fields, and thus serve as a fundamental [[Statistical model|model]] for the recorded [[Stochastic process|stochastic activity]].&lt;br /&gt;
&lt;br /&gt;
Various different types of random walks are of interest. Often, random walks are assumed to be [[Markov chain]]s or [[Markov process]]es, but other, more complicated walks are also of interest. Some random walks are on [[graph theory|graphs]], others on the line, in the plane, or in higher dimensions, while some random walks are on [[group theory|groups]]. Random walks also vary with regard to the time parameter. Often, the walk is in discrete time, and indexed by the natural numbers, as in &amp;lt;math&amp;gt;X_0,X_1,X_2,\dots&amp;lt;/math&amp;gt;. However, some walks take their steps at random times, and in that case the position &amp;lt;math&amp;gt;X_t&amp;lt;/math&amp;gt; is defined for the continuum of times &amp;lt;math&amp;gt;t\ge 0&amp;lt;/math&amp;gt;. Specific cases or limits of random walks include the [[Lévy flight]]. Random walks are related to the [[diffusion]] models and are a fundamental topic in discussions of [[Markov process]]es.  Several properties of random walks, including dispersal distributions, first-passage times and encounter rates, have been extensively studied.&lt;br /&gt;
&lt;br /&gt;
==Lattice random walk==&lt;br /&gt;
{{Refimprove section|date=April 2011|reason=no sources in this entire section}}&lt;br /&gt;
A popular random walk model is that of a random walk on a regular lattice, where at each step the location jumps to another site according to some probability distribution. In a &#039;&#039;&#039;simple random walk&#039;&#039;&#039;, the location can only jump to neighboring sites of the lattice. In &#039;&#039;&#039; simple symmetric random walk&#039;&#039;&#039; on a locally finite lattice, the probabilities of the location jumping to each one of its immediate neighbours are the same. The best studied example is of random walk on the &#039;&#039;d&#039;&#039;-dimensional integer lattice (sometimes called the hypercubic lattice) &amp;lt;math&amp;gt;\mathbb Z^d&amp;lt;/math&amp;gt;.&amp;lt;ref&amp;gt;Révész Pal, Random walk in random and non random environments, World Scientific, 1990&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===One-dimensional random walk===&lt;br /&gt;
An elementary example of a random walk is the random walk on the [[integer]] number line, &amp;lt;math&amp;gt;\mathbb Z&amp;lt;/math&amp;gt;, which starts at 0 and at each step moves +1 or −1 with equal probability.&lt;br /&gt;
&lt;br /&gt;
This walk can be illustrated as follows. A marker is placed at zero on the number line and a fair coin is flipped. If it lands on heads, the marker is moved one unit to the right. If it lands on tails, the marker is moved one unit to the left. After five flips, the marker could now be on 1, &amp;amp;minus;1, 3, &amp;amp;minus;3, 5, or &amp;amp;minus;5. With five flips, three heads and two tails, in any order, will land on 1. There are 10 ways of landing on 1 (by flipping three heads and two tails), 10 ways of landing on &amp;amp;minus;1 (by flipping three tails and two heads), 5 ways of landing on 3 (by flipping four heads and one tail), 5 ways of landing on &amp;amp;minus;3 (by flipping four tails and one head), 1 way of landing on 5 (by flipping five heads), and 1 way of landing on &amp;amp;minus;5 (by flipping five tails). See the figure below for an illustration of the possible outcomes of 5 flips.&lt;br /&gt;
&lt;br /&gt;
[[Image:Flips.svg|thumb|800px|center|All possible random walk outcomes after 5 flips of a fair coin]]&lt;br /&gt;
[[Image:random walk 2500.svg|right|thumb|280px|Random walk in two dimensions ([http://upload.wikimedia.org/wikipedia/commons/f/f3/Random_walk_2500_animated.svg animated version])]]&lt;br /&gt;
[[Image:random walk 25000 not animated.svg|right|thumb|280px|Random walk in two dimensions with 25 thousand steps ([http://upload.wikimedia.org/wikipedia/commons/c/cb/Random_walk_25000.svg animated version])]]&lt;br /&gt;
[[Image:Random walk 2000000.png|right|thumb|280px|Random walk in two dimensions with two million even smaller steps. This image was generated in such a way that points that are more frequently traversed are darker. In the limit, for very small steps, one obtains [[Brownian motion]].]]&lt;br /&gt;
&lt;br /&gt;
To define this walk formally, take independent random variables &amp;lt;math&amp;gt;Z_1, Z_2,\dots&amp;lt;/math&amp;gt;, where each variable is either 1 or &amp;amp;minus;1, with a 50% probability for either value, and set &amp;lt;math&amp;gt;S_0 = 0\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;S_n =\sum_{j=1}^nZ_j.&amp;lt;/math&amp;gt; The [[Series (mathematics)|series]] &amp;lt;math&amp;gt;\{S_n\}\,\!&amp;lt;/math&amp;gt; is called the &#039;&#039;&#039;simple random walk on &amp;lt;math&amp;gt;\mathbb Z&amp;lt;/math&amp;gt;&#039;&#039;&#039;.  This series (the sum of the sequence of −1s and 1s) gives the distance walked, if each part of the walk is of length one.&lt;br /&gt;
The [[expected value|expectation]] &amp;lt;math&amp;gt;E(S_n)\,\!&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;S_n\,\!&amp;lt;/math&amp;gt; is zero. That is, the mean of all coin flips approaches zero as the number of flips increases. This follows by the finite additivity property of expectation:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;E(S_n)=\sum_{j=1}^n E(Z_j)=0.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A similar calculation, using the independence of the  random variables and the fact that &amp;lt;math&amp;gt;E(Z_n^2)=1&amp;lt;/math&amp;gt;, shows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;E(S_n^2)=\sum_{j=1}^n E(Z_j^2)+ \sum_{i=1}^n \sum_{j=1}^n 2E(Z_j Z_i)=n.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This hints that &amp;lt;math&amp;gt;E(|S_n|)\,\!&amp;lt;/math&amp;gt;, the [[expected value|expected]] translation distance after &#039;&#039;n&#039;&#039; steps, should be [[Big O notation|of the order of]] &amp;lt;math&amp;gt;\sqrt n&amp;lt;/math&amp;gt;. In fact,{{citation needed|date=April 2013}}&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\lim_{n\to\infty} \frac{E(|S_n|)}{\sqrt n}= \sqrt{\frac 2{\pi}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This result shows that diffusion is ineffective for mixing because of the way the square root behaves for large &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;.{{citation needed|date=April 2013}}&lt;br /&gt;
&lt;br /&gt;
How many times will a random walk cross a boundary line if permitted to continue walking forever? A simple random walk on &amp;lt;math&amp;gt;\mathbb Z&amp;lt;/math&amp;gt; will cross every point an infinite number of times. This result has many names: the &#039;&#039;level-crossing phenomenon&#039;&#039;, &#039;&#039;recurrence&#039;&#039; or the &#039;&#039;[[gambler&#039;s ruin]]&#039;&#039;. The reason for the last name is as follows: a gambler with a finite amount of money will eventually lose when playing &#039;&#039;a fair game&#039;&#039; against a bank with an infinite amount of money. The gambler&#039;s money will perform a random walk, and it will reach zero at some point, and the game will be over.&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;a&#039;&#039; and &#039;&#039;b&#039;&#039; are positive integers, then the expected number of steps until a one-dimensional simple random walk starting at 0 first hits &#039;&#039;b&#039;&#039; or &amp;amp;minus;&#039;&#039;a&#039;&#039; is &#039;&#039;ab&#039;&#039;.  The probability that this walk will hit &#039;&#039;b&#039;&#039; before −&#039;&#039;a&#039;&#039; is &amp;lt;math&amp;gt;a/(a+b)&amp;lt;/math&amp;gt;, which can be derived from the fact that simple random walk is a [[martingale (probability theory)|martingale]].&lt;br /&gt;
&amp;lt;!-- Maybe a reference to the iterated log law should come here? --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some of the results mentioned above can be derived from properties of [[Pascal&#039;s triangle]]. The number of different walks of &#039;&#039;n&#039;&#039; steps where each step is +1 or &amp;amp;minus;1 is 2&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt;. For the simple random walk, each of these walks are equally likely. In order for &#039;&#039;S&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;&#039;&#039; to be equal to a number &#039;&#039;k&#039;&#039; it is necessary and sufficient that the number of +1 in the walk exceeds those of &amp;amp;minus;1 by &#039;&#039;k&#039;&#039;. The number of walks which satisfy &amp;lt;math&amp;gt;S_n=k&amp;lt;/math&amp;gt; is equally the number of ways of choosing (&#039;&#039;n&#039;&#039;&amp;amp;nbsp;+&amp;amp;nbsp;&#039;&#039;k&#039;&#039;)/2 elements from an &#039;&#039;n&#039;&#039; element set,{{citation needed|date=September 2013}} denoted &amp;lt;math&amp;gt;n \choose (n+k)/2&amp;lt;/math&amp;gt;. For this to be non-zero, it is necessary that &#039;&#039;n&#039;&#039;&amp;amp;nbsp;+&amp;amp;nbsp;&#039;&#039;k&#039;&#039; be an even number. Therefore, the probability that &amp;lt;math&amp;gt;S_n=k&amp;lt;/math&amp;gt; is equal to &amp;lt;math&amp;gt;2^{-n}{n\choose (n+k)/2}&amp;lt;/math&amp;gt;. By representing entries of Pascal&#039;s triangle in terms of [[factorial]]s and using [[Stirling formula|Stirling&#039;s formula]], one can obtain good estimates for these probabilities for large values of &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If the space is confined to &amp;lt;math&amp;gt;\mathbb Z&amp;lt;/math&amp;gt;+ for brevity, the number of ways in which a random walk will land on any given number having five flips can be shown as {0,5,0,4,0,1}.&lt;br /&gt;
&lt;br /&gt;
This relation with Pascal&#039;s triangle is demonstrated for small values of &#039;&#039;n&#039;&#039;. At zero turns, the only possibility will be to remain at zero. However, at one turn, there is one chance of landing on &amp;amp;minus;1 or one chance of landing on 1. At two turns, a marker at 1 could move to 2 or back to zero. A marker at &amp;amp;minus;1, could move to &amp;amp;minus;2 or back to zero. Therefore, there is one chance of landing on &amp;amp;minus;2, two chances of landing on zero, and one chance of landing on 2.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--[[Image:PascalTriangleRandomWalk.JPG|thumb|center|600px|Pascal&#039;s triangle in a random walk]] Commenting out previous table from pic--&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! k&lt;br /&gt;
! style=&amp;quot;width:2em&amp;quot; | −5&lt;br /&gt;
! style=&amp;quot;width:2em&amp;quot; | −4&lt;br /&gt;
! style=&amp;quot;width:2em&amp;quot; | −3&lt;br /&gt;
! style=&amp;quot;width:2em&amp;quot; | −2&lt;br /&gt;
! style=&amp;quot;width:2em&amp;quot; | −1&lt;br /&gt;
! style=&amp;quot;width:2em&amp;quot; | 0&lt;br /&gt;
! style=&amp;quot;width:2em&amp;quot; | 1&lt;br /&gt;
! style=&amp;quot;width:2em&amp;quot; | 2&lt;br /&gt;
! style=&amp;quot;width:2em&amp;quot; | 3&lt;br /&gt;
! style=&amp;quot;width:2em&amp;quot; | 4&lt;br /&gt;
! style=&amp;quot;width:2em&amp;quot; | 5&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;P[S_0=k]&amp;lt;/math&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| 1&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;2P[S_1=k]&amp;lt;/math&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| 1&lt;br /&gt;
|&lt;br /&gt;
| 1&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;2^2P[S_2=k]&amp;lt;/math&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| 1&lt;br /&gt;
|&lt;br /&gt;
| 2&lt;br /&gt;
|&lt;br /&gt;
| 1&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;2^3P[S_3=k]&amp;lt;/math&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| 1&lt;br /&gt;
|&lt;br /&gt;
| 3&lt;br /&gt;
|&lt;br /&gt;
| 3&lt;br /&gt;
|&lt;br /&gt;
| 1&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;2^4P[S_4=k]&amp;lt;/math&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
| 1&lt;br /&gt;
|&lt;br /&gt;
| 4&lt;br /&gt;
|&lt;br /&gt;
| 6&lt;br /&gt;
|&lt;br /&gt;
| 4&lt;br /&gt;
|&lt;br /&gt;
| 1&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;2^5P[S_5=k]&amp;lt;/math&amp;gt;&lt;br /&gt;
| 1&lt;br /&gt;
|&lt;br /&gt;
| 5&lt;br /&gt;
|&lt;br /&gt;
| 10&lt;br /&gt;
|&lt;br /&gt;
| 10&lt;br /&gt;
|&lt;br /&gt;
| 5&lt;br /&gt;
|&lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The [[central limit theorem]] and the [[law of the iterated logarithm]] describe important aspects of the behavior of simple random walk on &amp;lt;math&amp;gt;\mathbb Z&amp;lt;/math&amp;gt;. In particular, the former entails that as &#039;&#039;n&#039;&#039; increases, the probabilities (proportional to the numbers in each row) approach a [[normal distribution]].&lt;br /&gt;
&lt;br /&gt;
As a direct generalization, one can consider random walks on crystal lattices (infinite-fold abelian covering graphs over finite graphs). Actually it is possible to establish the central limit theorem and large deviation theorem in this setting&amp;lt;ref&amp;gt;{{cite journal |author= M. Kotani, [[Toshikazu Sunada|T. Sunada]] |year= 2003 |title= Spectral geometry of crystal lattices |journal= Contemporary. Math.|volume= 338 |pages= 271–305 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
.&amp;lt;ref&amp;gt;{{cite journal |author= M. Kotani, [[Toshikazu Sunada|T. Sunada]] |year= 2006 |title= Large deviation and the tangent cone at infinity of a crystal lattice |journal= Math. Z. |volume= 254 |pages= 837–870 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====As a Markov chain====&lt;br /&gt;
A one-dimensional &#039;&#039;&#039;random walk&#039;&#039;&#039; can also be looked at as a [[Markov chain]] whose state space is given by the integers &amp;lt;math&amp;gt;i=0,\pm 1,\pm 2,\dots .&amp;lt;/math&amp;gt; For some number &#039;&#039;p&#039;&#039; satisfying &amp;lt;math&amp;gt;\,0 &amp;lt; p &amp;lt; 1&amp;lt;/math&amp;gt;, the transition probabilities (the probability &#039;&#039;P&amp;lt;sub&amp;gt;i,j&amp;lt;/sub&amp;gt;&#039;&#039; of moving from state &#039;&#039;i&#039;&#039; to state &#039;&#039;j&#039;&#039;)  are given by&lt;br /&gt;
:&amp;lt;math&amp;gt;\,P_{i,i+1}=p=1-P_{i,i-1}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Higher dimensions===&lt;br /&gt;
[[Image:Walk3d 0.png|right|thumb|280px|Three random walks in three dimensions]]&lt;br /&gt;
Imagine now a drunkard walking randomly in an idealized city. The city is effectively infinite and arranged in a square grid, and at every intersection, the drunkard chooses one of the four possible routes (including the one he came from) with equal probability. Formally, this is a random walk on the set of all points in the [[Plane (mathematics)|plane]] with [[integer]] [[Coordinate system|coordinates]].&lt;br /&gt;
&lt;br /&gt;
Will the drunkard ever get back to his home from the bar? This is the 2-dimensional equivalent of the level crossing problem discussed above. It turns out that he [[almost surely]] will in a 2-dimensional random walk, but for 3 dimensions or higher, the probability of returning to the origin decreases as the number of dimensions increases. In 3 dimensions, the probability decreases to roughly 34%.&amp;lt;ref&amp;gt;[http://mathworld.wolfram.com/PolyasRandomWalkConstants.html Pólya&#039;s Random Walk Constants]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The trajectory of a random walk is the collection of sites it visited, considered as a set with disregard to &#039;&#039;when&#039;&#039; the walk arrived at the point. In one dimension, the trajectory is simply all points between the minimum height the walk achieved and the maximum (both are, on average, on the order of √&#039;&#039;n&#039;&#039;). In higher dimensions the set has interesting geometric properties. In fact, one gets a discrete [[fractal]], that is a set which exhibits stochastic [[self-similarity]] on large scales, but on small scales one can observe &amp;quot;jaggedness&amp;quot; resulting from the grid on which the walk is performed. The two books of Lawler referenced below are a good source on this topic.&lt;br /&gt;
&lt;br /&gt;
===Relation to Wiener process===&lt;br /&gt;
&lt;br /&gt;
[[Image:Brownian hierarchical.png|thumb|right|196px|Simulated steps approximating a Wiener process in two dimensions]]&lt;br /&gt;
&lt;br /&gt;
A [[Wiener process]] is a stochastic process with similar behaviour to [[Brownian motion]], the physical phenomenon of a minute particle diffusing in a fluid. (Sometimes the [[Wiener process]] is called &amp;quot;Brownian motion&amp;quot;, although this is strictly speaking a [[map-territory relation|confusion of a model with the phenomenon being modeled]].)&lt;br /&gt;
&lt;br /&gt;
A Wiener process is the [[scaling limit]] of random walk in dimension 1.{{citation needed|date=April 2012}} This means that if you take a random walk with very small steps you get an approximation to a Wiener process (and, less accurately, to Brownian motion). To be more precise, if the step size is ε, one needs to take a walk of length &#039;&#039;L&#039;&#039;/ε&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; to approximate a Wiener process walk of length &#039;&#039;L&#039;&#039;. As the step size tends to 0 (and the number of steps increases proportionally) random walk converges to a Wiener process in an appropriate sense. Formally, if &#039;&#039;B&#039;&#039; is the space of all paths of length &#039;&#039;L&#039;&#039; with the maximum topology, and if &#039;&#039;M&#039;&#039; is the space of measure over &#039;&#039;B&#039;&#039; with the norm topology, then the convergence is in the space &#039;&#039;M&#039;&#039;. Similarly, a Wiener process in several dimensions is the scaling limit of random walk in the same number of dimensions.&lt;br /&gt;
&lt;br /&gt;
A random walk is a discrete [[fractal]] (a function with integer dimensions; 1, 2, ...), but a Wiener process trajectory is a true fractal, and there is a connection between the two. For example, take a random walk until it hits a circle of radius &#039;&#039;r&#039;&#039; times the step length. The average number of steps it performs is &#039;&#039;r&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;.{{citation needed|date=April 2012}} This fact is the &#039;&#039;discrete version&#039;&#039; of the fact that a Wiener process walk is a fractal of [[Hausdorff dimension]]&amp;amp;nbsp;2.{{citation needed|date=April 2012}}&lt;br /&gt;
&lt;br /&gt;
In two dimensions, the average number of points the same random walk has on the &#039;&#039;boundary&#039;&#039; of its trajectory is &#039;&#039;r&#039;&#039;&amp;lt;sup&amp;gt;4/3&amp;lt;/sup&amp;gt;. This corresponds to the fact that the boundary of the trajectory of a Wiener process is a fractal of dimension 4/3, a fact predicted by [[Benoît Mandelbrot|Mandelbrot]] using simulations but proved only in 2000&lt;br /&gt;
by [[Greg Lawler|Lawler]], [[Oded Schramm|Schramm]] and [[Wendelin Werner|Werner]].&amp;lt;ref&amp;gt;Dana Mackenzie, &#039;&#039;[http://www.sciencemag.org/content/290/5498/1883.full Taking the Measure of the Wildest Dance on Earth]&#039;&#039;, Science, Vol. 290, no. 5498, pp. 1883–1884.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A Wiener process enjoys many [[symmetry|symmetries]] random walk does not. For example, a Wiener process walk is invariant to rotations, but random walk is not, since the underlying grid is not (random walk is invariant to rotations by 90 degrees, but Wiener processes are invariant to rotations by, for example, 17 degrees too). This means that in many cases, problems on random walk are easier to solve by translating them to a Wiener process, solving the problem there, and then translating back. On the other hand, some problems are easier to solve with random walks due to its discrete nature.&lt;br /&gt;
&lt;br /&gt;
Random walk and [[Wiener process]] can be [[Coupling (probability)|&#039;&#039;coupled&#039;&#039;]], namely manifested on the same probability space in a dependent way that forces them to be quite close. The simplest such coupling is the Skorokhod embedding, but other, more precise couplings exist as well.&lt;br /&gt;
&lt;br /&gt;
The convergence of a random walk toward the Wiener process is controlled by the [[central limit theorem]]. For a particle in a known fixed position at &#039;&#039;t&#039;&#039;&amp;amp;nbsp;=&amp;amp;nbsp;0, the theorem tells us that after a large number of [[statistical independence|independent]] steps in the random walk, the walker&#039;s position is distributed according to a [[normal distribution]] of total [[variance]]:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\sigma^2 = \frac{t}{\delta t}\,\varepsilon^2,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;t&#039;&#039; is the time elapsed since the start of the random walk, &amp;lt;math&amp;gt;\varepsilon&amp;lt;/math&amp;gt; is the size of a step of the random walk, and &amp;lt;math&amp;gt;\delta t&amp;lt;/math&amp;gt; is the time elapsed between two successive steps.&lt;br /&gt;
&lt;br /&gt;
This corresponds to the [[Green&#039;s function|Green function]] of the [[diffusion equation]] that controls the Wiener process, which demonstrates that, after a large number of steps, the random walk converges toward a Wiener process.&lt;br /&gt;
&lt;br /&gt;
In 3D, the variance corresponding to the [[Green&#039;s function]] of the diffusion equation is:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\sigma^2 = 6\,D\,t&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By equalizing this quantity with the variance associated to the position of the random walker, one obtains the equivalent diffusion coefficient to be considered for the asymptotic Wiener process toward which the random walk converges after a large number of steps:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D = \frac{\varepsilon^2}{6 \delta t}&amp;lt;/math&amp;gt; (valid only in 3D)&lt;br /&gt;
&lt;br /&gt;
Remark: the two expressions of the variance above correspond to the distribution associated to the vector &amp;lt;math&amp;gt;\vec R&amp;lt;/math&amp;gt; that links the two ends of the random walk, in 3D. The variance associated to each component &amp;lt;math&amp;gt;R_x&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;R_y&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;R_z&amp;lt;/math&amp;gt; is only one third of this value (still in 3D).&lt;br /&gt;
&lt;br /&gt;
==Gaussian random walk==&lt;br /&gt;
A random walk having a step size that varies according to a [[normal distribution]] is used as a model for real-world time series data such as financial markets. The [[Black–Scholes]] formula for modeling option prices, for example, uses a Gaussian random walk as an underlying assumption.&lt;br /&gt;
&lt;br /&gt;
Here, the step size is the inverse cumulative normal distribution &amp;lt;math&amp;gt;\Phi^{-1}(z,\mu,\sigma)&amp;lt;/math&amp;gt; where 0&amp;amp;nbsp;≤&amp;amp;nbsp;&#039;&#039;z&#039;&#039;&amp;amp;nbsp;≤&amp;amp;nbsp;1 is a uniformly distributed random number, and μ and σ are the mean and standard deviations of the normal distribution, respectively.&lt;br /&gt;
&lt;br /&gt;
If μ is nonzero, the random walk will vary about a linear trend. If v&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; is the starting value of the random walk, the expected value after &#039;&#039;n&#039;&#039; steps will be v&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; + &#039;&#039;n&#039;&#039;μ.&lt;br /&gt;
&lt;br /&gt;
For the special case where μ is equal to zero, after &#039;&#039;n&#039;&#039; steps, the translation distance&#039;s probability distribution is given by &#039;&#039;N&#039;&#039;(0, &#039;&#039;n&#039;&#039;σ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;), where &#039;&#039;N&#039;&#039;() is the notation for the normal distribution, &#039;&#039;n&#039;&#039; is the number of steps, and σ is from the inverse cumulative normal distribution as given above.&lt;br /&gt;
&lt;br /&gt;
Proof: The Gaussian random walk can be thought of as the sum of a series of independent and identically distributed random variables, X&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; from the inverse cumulative normal distribution with mean equal zero and σ of the original inverse cumulative normal distribution:&lt;br /&gt;
:	Z = &amp;lt;math&amp;gt;\sum_{i=0}^n {X_i}&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
but we have the distribution for the sum of two independent normally distributed random variables, Z = X + Y, is given by &lt;br /&gt;
:	&#039;&#039;N&#039;&#039;(μ&amp;lt;sub&amp;gt;X&amp;lt;/sub&amp;gt; + μ&amp;lt;sub&amp;gt;Y&amp;lt;/sub&amp;gt;, σ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;sub&amp;gt;X&amp;lt;/sub&amp;gt; + σ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;sub&amp;gt;Y&amp;lt;/sub&amp;gt;) [[Sum of normally distributed random variables|(see here)]]. &lt;br /&gt;
In our case, μ&amp;lt;sub&amp;gt;X&amp;lt;/sub&amp;gt; = μ&amp;lt;sub&amp;gt;Y&amp;lt;/sub&amp;gt; = 0 and σ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;sub&amp;gt;X&amp;lt;/sub&amp;gt; = σ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;lt;sub&amp;gt;Y&amp;lt;/sub&amp;gt; = σ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; yield&lt;br /&gt;
:       &#039;&#039;N&#039;&#039;(0, 2σ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)&lt;br /&gt;
By induction, for &#039;&#039;n&#039;&#039; steps we have  &lt;br /&gt;
:	Z ~ &#039;&#039;N&#039;&#039;(0, &#039;&#039;n&#039;&#039;σ&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;).&lt;br /&gt;
For steps distributed according to any distribution with zero mean and a finite variance (not necessarily just a normal distribution), the [[root mean square]] translation distance after &#039;&#039;n&#039;&#039; steps is&lt;br /&gt;
:&amp;lt;math&amp;gt;\sqrt{E|S_n^2|} = \sigma \sqrt{n}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But for the Gaussian random walk, this is just the standard deviation of the translation distance&#039;s distribution after &#039;&#039;n&#039;&#039; steps. Hence, if μ is equal to zero, and since the root mean square(rms) translation distance is one standard deviation, there is 68.27% probability that the rms translation distance after &#039;&#039;n&#039;&#039; steps will fall between ± σ&amp;lt;math&amp;gt;\sqrt{n}&amp;lt;/math&amp;gt;. Likewise, there is 50% probability that the translation distance after &#039;&#039;n&#039;&#039; steps will fall between ± 0.6745σ&amp;lt;math&amp;gt;\sqrt{n}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Anomalous diffusion===&lt;br /&gt;
&lt;br /&gt;
In disordered systems such as porous media and fractals &amp;lt;math&amp;gt;\sigma^2&amp;lt;/math&amp;gt; may not be proportional to &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; but to &amp;lt;math&amp;gt;t^{2 / d_w}&amp;lt;/math&amp;gt;. The exponent &amp;lt;math&amp;gt;d_w&amp;lt;/math&amp;gt; is called the [[anomalous diffusion]] exponent and can be larger or smaller than 2.&amp;lt;ref&amp;gt;D. Ben-Avraham and S. Havlin, &#039;&#039;[http://havlin.biu.ac.il/Shlomo%20Havlin%20books_d_r.php Diffusion and Reactions in Fractals and Disordered Systems]&#039;&#039;, Cambridge University Press, 2000.&amp;lt;/ref&amp;gt; [[Anomalous diffusion]] may also be expressed as σ&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; ~ Dt&amp;lt;sup&amp;gt;α&amp;lt;/sup&amp;gt; where α is the anomaly parameter.&lt;br /&gt;
&lt;br /&gt;
===Number of Distinct Sites===&lt;br /&gt;
The number of distinct sites visited by a single random&lt;br /&gt;
walker &amp;lt;math&amp;gt;S(t)&amp;lt;/math&amp;gt; has been studied extensively for square and&lt;br /&gt;
cubic lattices and for fractals &lt;br /&gt;
&amp;lt;ref name=&amp;quot;WeissRubin1982&amp;quot;&amp;gt;{{cite journal|last1=Weiss|first1=George H.|last2=Rubin|first2=Robert J.|title=Random Walks: Theory and Selected Applications|volume=52|year=1982|pages=363–505|issn=19344791|doi=10.1002/9780470142769.ch5}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
.&amp;lt;ref name=&amp;quot;BlumenKlafter1986&amp;quot;&amp;gt;{{cite journal|last1=Blumen|first1=A.|last2=Klafter|first2=J.|last3=Zumofen|first3=G.|title=Models for Reaction Dynamics in Glasses|volume=1|year=1986|pages=199–265|issn=0924-459X|doi=10.1007/978-94-009-4650-7_5|bibcode = 1986PCMLD...1..199B }}&amp;lt;/ref&amp;gt; This quantity is useful&lt;br /&gt;
for the analysis of problems of trapping and kinetic reactions.&lt;br /&gt;
It is also  related to the vibrational density of states&lt;br /&gt;
&amp;lt;ref name=&amp;quot;AlexanderOrbach1982&amp;quot;&amp;gt;{{cite journal|last1=Alexander|first1=S.|last2=Orbach|first2=R.|title=Density of states on fractals : &amp;quot; fractons &amp;quot;|journal=Journal de Physique Lettres|volume=43|issue=17|year=1982|pages=625–631|issn=0302-072X|doi=10.1051/jphyslet:019820043017062500}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
,&amp;lt;ref name=&amp;quot;RammalToulouse1983&amp;quot;&amp;gt;{{cite journal|last1=Rammal|first1=R.|last2=Toulouse|first2=G.|title=Random walks on fractal structures and percolation clusters|journal=Journal de Physique Lettres|volume=44|issue=1|year=1983|pages=13–22|issn=0302-072X|doi=10.1051/jphyslet:0198300440101300}}&amp;lt;/ref&amp;gt; diffusion reactions processes &lt;br /&gt;
&amp;lt;ref&amp;gt;{{cite journal|last=Smoluchowski|first=M.V.|journal=Z. Phys. Chem | number=29| pages=129–168|year=1917|title=Versuch einer mathematischen Theorie der Koagulationskinetik kolloider Lösungen}},{{cite book|last=Rice|first=S.A.|title=Diffusion-Limited Reactions|url=http://books.google.com/books?id=sWiyspAjelsC&amp;amp;pg=PP2|accessdate=13 August 2013|series=Comprehensive Chemical Kinetics|volume=25|date=1 March 1985|publisher=Elsevier|isbn=0-444-42354-0}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
and spread of populations in ecology.&amp;lt;ref name=&amp;quot;Skellam1951&amp;quot;&amp;gt;{{cite journal|last1=Skellam|first1=J. G.|title=Random Dispersal in Theoretical Populations|journal=Biometrika|volume=38|issue=1/2|year=1951|pages=196|issn=00063444|doi=10.2307/2332328}},{{cite journal|last1=Skellam|first1=J. G.|title=Studies in Statistical Ecology: I. Spatial Pattern|journal=Biometrika|volume=39|issue=3/4|year=1952|pages=346|issn=00063444|doi=10.2307/2334030}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
The generalization of this problem to the number of&lt;br /&gt;
distinct sites visited by &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; random walkers, &amp;lt;math&amp;gt;S_N(t)&amp;lt;/math&amp;gt;, has recently&lt;br /&gt;
been studied for d-dimensional Euclidean lattices.&amp;lt;ref name=&amp;quot;LarraldeTrunfio1992&amp;quot;&amp;gt;{{cite journal|last1=Larralde|first1=Hernan|last2=Trunfio|first2=Paul|last3=Havlin|first3=Shlomo|last4=Stanley|first4=H. Eugene|last5=Weiss|first5=George H.|title=Territory covered by N diffusing particles|journal=Nature|volume=355|issue=6359|year=1992|pages=423–426|issn=0028-0836|doi=10.1038/355423a0|bibcode = 1992Natur.355..423L }},{{cite journal|last1=Larralde|first1=Hernan|last2=Trunfio|first2=Paul|last3=Havlin|first3=Shlomo|last4=Stanley|first4=H.|last5=Weiss|first5=George|title=Number of distinct sites visited by N random walkers|journal=Physical Review A|volume=45|issue=10|year=1992|pages=7128–7138|issn=1050-2947|doi=10.1103/PhysRevA.45.7128|bibcode = 1992PhRvA..45.7128L }}; for insights regarding the problem of N random walkers, see {{cite journal|last1=Shlesinger|first1=Michael F.|title=New paths for random walkers|journal=Nature|volume=355|issue=6359|year=1992|pages=396–397|issn=0028-0836|doi=10.1038/355396a0|bibcode = 1992Natur.355..396S }} and the color artwork illustrating the article.&amp;lt;/ref&amp;gt;  The number of distinct sites visited by N walkers&lt;br /&gt;
is not simply related to the number of distinct sites visited&lt;br /&gt;
by each walker.&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
{{Refimprove section|date=February 2013}}&lt;br /&gt;
[[File:Antony Gormley Quantum Cloud 2000.jpg|thumb|[[Antony Gormley]]&#039;s &#039;&#039;[[Quantum Cloud]]&#039;&#039; sculpture in [[London]] was designed by a computer using a random walk algorithm.]]&lt;br /&gt;
The following are some applications of random walk:&lt;br /&gt;
*In [[economics]], the &amp;quot;[[Random Walk Hypothesis|random walk hypothesis]]&amp;quot; is used to model shares prices and other factors. Empirical studies found some deviations from this theoretical model, especially in short term and long term correlations. See [[share price]]s.&lt;br /&gt;
*In [[population genetics]], random walk describes the statistical properties of [[genetic drift]]&lt;br /&gt;
*In [[physics]], random walks are used as simplified models of physical [[Brownian motion]] and diffusion such as the [[random]] [[Motion (physics)|movement]] of [[molecules]] in liquids and gases. See for example [[diffusion-limited aggregation]]. Also in physics, random walks and some of the self interacting walks play a role in [[quantum field theory]].&lt;br /&gt;
*In [[theoretical biology|mathematical ecology]], random walks are used to describe individual animal movements, to empirically support processes of [[diffusion|biodiffusion]], and occasionally to model [[population dynamics]].&lt;br /&gt;
*In [[polymer physics]], random walk describes an [[ideal chain]]. It is the simplest model to study [[polymers]].&lt;br /&gt;
*In other fields of mathematics, random walk is used to calculate solutions to [[Laplace&#039;s equation]], to estimate the [[harmonic measure]], and for various constructions in [[Mathematical analysis|analysis]] and [[combinatorics]].&lt;br /&gt;
* In [[computer science]], random walks are used to estimate the size of the [[www|Web]]. In the [http://www2006.org/ World Wide Web conference-2006], bar-yossef et al. published their findings and algorithms for the same.&lt;br /&gt;
* In [[Segmentation (image processing)|image segmentation]], random walks are used to determine the labels (i.e., &amp;quot;object&amp;quot; or &amp;quot;background&amp;quot;) to associate with each pixel.&amp;lt;ref&amp;gt;Leo Grady (2006): [http://www.cns.bu.edu/~lgrady/grady2006random.pdf &amp;quot;Random Walks for Image Segmentation&amp;quot;], &#039;&#039;IEEE Transactions on Pattern Analysis and Machine Intelligence&#039;&#039;, pp. 1768–1783, Vol. 28, No. 11&amp;lt;/ref&amp;gt;  This algorithm is typically referred to as the [[random walker (computer vision)|random walker]] segmentation algorithm.&lt;br /&gt;
In all these cases, random walk is often substituted for Brownian motion.&lt;br /&gt;
*In [[human brain|brain research]], random walks and reinforced random walks are used to model cascades of neuron firing in the brain.&lt;br /&gt;
*In vision science, [[fixational eye movement]]s are well described by a random walk.&amp;lt;ref&amp;gt;Ralf Engbert, Konstantin Mergenthaler, Petra Sinn,  and Arkady Pikovsk: [http://www.pnas.org/content/early/2011/08/17/1102730108.full.pdf &amp;quot;An integrated model of ﬁxational eye movements and microsaccades&amp;quot;]&amp;lt;/ref&amp;gt;&lt;br /&gt;
*In [[psychology]], random walks explain accurately the relation between the time needed to make a decision and the probability that a certain decision will be made.&amp;lt;ref&amp;gt;[http://web.archive.org/web/20041210231937/http://oz.ss.uci.edu/237/readings/EBRW_nosofsky_1997.pdf Nosofsky, 1997]&amp;lt;/ref&amp;gt;&lt;br /&gt;
*Random walks can be used to sample from a state space which is unknown or very large, for example to pick a random page off the internet or, for research of working conditions, a random worker in a given country.{{citation needed|date=April 2012}}&lt;br /&gt;
:*When this last approach is used in [[computer science]] it is known as [[Markov Chain Monte Carlo]] or MCMC for short. Often, sampling from some complicated state space also allows one to get a probabilistic estimate of the space&#039;s size. The estimate of the [[permanent]] of a large [[Matrix (mathematics)|matrix]] of zeros and ones was the first major problem tackled using this approach.{{citation needed|date=April 2012}}&lt;br /&gt;
*Random walks have also been used to [[Sampling (statistics)|sample]] massive online graphs such as [[online social network]]s.&lt;br /&gt;
*In [[wireless networking]], a random walk is used to model node movement.{{citation needed|date=April 2012}}&lt;br /&gt;
*[[bacterial motility|Motile bacteria]] engage in a [[biased random walk (biochemistry)|biased random walk]].{{citation needed|date=April 2012}}&lt;br /&gt;
*Random walks are used to model [[gambling]].{{citation needed|date=April 2012}}&lt;br /&gt;
*In physics, random walks underlie the method of [[Fermi estimation]].{{citation needed|date=April 2012}}&lt;br /&gt;
*On the web, the Twitter website uses Random walks to make suggestions of who to follow &amp;lt;ref name=&amp;quot;twitterwtf&amp;quot;&amp;gt;Pankaj Gupta, Ashish Goel, Jimmy Lin, Aneesh Sharma, Dong Wang, and Reza Bosagh Zadeh [http://dl.acm.org/citation.cfm?id=2488433 WTF: The who-to-follow system at Twitter], Proceedings of the 22nd international conference on World Wide Web&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Variants of random walks==&lt;br /&gt;
&lt;br /&gt;
A number of types of [[stochastic process]]es have been considered that are similar to the pure random walks but where the simple structure is allowed to be more generalized. The &#039;&#039;pure&#039;&#039; structure can be characterized by the steps being defined by [[independent and identically distributed random variables]].&lt;br /&gt;
&lt;br /&gt;
===Random walk on graphs===&lt;br /&gt;
&lt;br /&gt;
A random walk of length &#039;&#039;k&#039;&#039; on a possibly infinite [[Graph (mathematics)|graph]] &#039;&#039;G&#039;&#039; with a root &#039;&#039;0&#039;&#039; is a stochastic process with random variables &amp;lt;math&amp;gt;X_1,X_2,\dots,X_k&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;X_1=0&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt; {X_{i+1}} &amp;lt;/math&amp;gt; is a vertex chosen uniformly at random from the neighbors of &amp;lt;math&amp;gt;X_i&amp;lt;/math&amp;gt;.&lt;br /&gt;
Then the number &amp;lt;math&amp;gt;p_{v,w,k}(G)&amp;lt;/math&amp;gt; is the probability that a random walk of length &#039;&#039;k&#039;&#039; starting at &#039;&#039;v&#039;&#039; ends at &#039;&#039;w&#039;&#039;.&lt;br /&gt;
In particular, if &#039;&#039;G&#039;&#039; is a graph with root &#039;&#039;0&#039;&#039;, &amp;lt;math&amp;gt;p_{0,0,2k}&amp;lt;/math&amp;gt; is the probability that a &amp;lt;math&amp;gt;2k&amp;lt;/math&amp;gt;-step random walk returns to &#039;&#039;0&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Assume now that our city is no longer a perfect square grid. When our drunkard reaches a certain junction he picks between the various available roads with equal probability. Thus, if the junction has seven exits the drunkard will go to each one with probability one seventh. This is a random walk on a graph. Will our drunkard reach his home? It turns out that under rather mild conditions, the answer is still yes. For example, if the lengths of all the blocks are between &#039;&#039;a&#039;&#039; and &#039;&#039;b&#039;&#039; (where &#039;&#039;a&#039;&#039; and &#039;&#039;b&#039;&#039; are any two finite positive numbers), then the drunkard will, almost surely, reach his home. Notice that we do not assume that the graph is [[planar graph|planar]], i.e. the city may contain tunnels and bridges. One way to prove this result is using the connection to [[electrical networks]]. Take a map of the city and place a one [[Ohm (unit)|ohm]] [[electrical resistance|resistor]] on every block. Now measure the &amp;quot;resistance between a point and infinity&amp;quot;. In other words, choose some number &#039;&#039;R&#039;&#039; and take all the points in the electrical network with distance bigger than &#039;&#039;R&#039;&#039; from our point and wire them together. This is now a finite electrical network and we may measure the resistance from our point to the wired points. Take &#039;&#039;R&#039;&#039; to infinity. The limit is called the &#039;&#039;resistance between a point and infinity&#039;&#039;. It turns out that the following is true (an elementary proof can be found in the book by Doyle and Snell):&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Theorem&#039;&#039;&#039;: &#039;&#039;a graph is transient if and only if the resistance between a point and infinity is finite. It is not important which point is chosen if the graph is connected.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In other words, in a transient system, one only needs to overcome a finite resistance to get to infinity from any point.  In a recurrent system, the resistance from any point to infinity is infinite.&lt;br /&gt;
&lt;br /&gt;
This characterization of recurrence and transience is very useful, and specifically it allows us to analyze the case of a city drawn in the plane with the distances bounded.&lt;br /&gt;
&lt;br /&gt;
A random walk on a graph is a very special case of a [[Markov chain]]. Unlike a general Markov chain, random walk on a graph enjoys a property called &#039;&#039;time symmetry&#039;&#039; or &#039;&#039;reversibility&#039;&#039;. Roughly speaking, this property, also called the principle of [[detailed balance]], means that the probabilities to traverse a given path in one direction or in the other have a very simple connection between them (if the graph is [[Regular graph|regular]], they are just equal). This property has important consequences.&lt;br /&gt;
&lt;br /&gt;
Starting in the 1980s, much research has gone into connecting properties of the graph to random walks. In addition to the electrical network connection described above, there are important connections to [[isoperimetry|isoperimetric inequalities]], see more [[Isoperimetric dimension#Consequences of isoperimetry|here]], functional inequalities such as [[Sobolev inequality|Sobolev]] and [[Poincaré inequality|Poincaré]] inequalities and properties of solutions of [[Laplace&#039;s equation]]. A significant portion of this research was focused on [[Cayley graph]]s of [[Glossary of group theory|finitely generated]] [[Group (mathematics)|groups]]. For example, the proof of [[Dave Bayer]] and [[Persi Diaconis]] that 7 [[shuffle|riffle shuffles]] are enough to mix a pack of cards (see more details under [[shuffle]]) is in effect a result about random walk on the group [[symmetric group|&#039;&#039;S&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;&#039;&#039;]], and the proof uses the group structure in an essential way. In many cases these discrete results carry over to, or are derived from [[manifold]]s and [[Lie group]]s.&lt;br /&gt;
&lt;br /&gt;
A good reference for random walk on graphs is the online book by [http://stat-www.berkeley.edu/users/aldous/RWG/book.html Aldous and Fill]. For groups see the book of Woess.&lt;br /&gt;
If the transition kernel &amp;lt;math&amp;gt;p(x,y)&amp;lt;/math&amp;gt; is itself random (based on an environment &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt;) then the random walk is called a &amp;quot;random walk in random environment&amp;quot;. When the law of the random walk includes the randomness of &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt;, the law is called the annealed law; on the other hand, if &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt; is seen as fixed, the law is called a quenched law. See the book of Hughes or the lecture notes of Zeitouni.&lt;br /&gt;
&lt;br /&gt;
We can think about choosing every possible edge with the same probability as maximizing uncertainty (entropy) locally. We could also do it globally &amp;amp;ndash; in [http://arxiv.org/abs/0810.4113 maximal entropy random walk (MERW)] we want all paths to be equally probable, or in other words: for each two vertexes, each path of given length is equally probable. This random walk has much stronger localization properties.&lt;br /&gt;
&lt;br /&gt;
===Self-interacting random walks===&lt;br /&gt;
There are a number of interesting models of random paths in which each step depends on the past in a complicated manner. All are more complex for solving analytically than the usual random walk; still, the behavior of any model of a random walker is obtainable using computers. Examples include:&lt;br /&gt;
* The [[self-avoiding walk]] (Madras and Slade 1996).&amp;lt;ref&amp;gt;Neal Madras and Gordon Slade (1996), &#039;&#039;The Self-Avoiding Walk&#039;&#039;, Birkhäuser Boston. ISBN 0-8176-3891-1.&amp;lt;/ref&amp;gt;&lt;br /&gt;
The self-avoiding walk of length n on Z^d is the random n-step path which starts at the origin, makes transitions only between adjacent sites in Z^d, never revisits a site, and is chosen uniformly among all such paths. In two dimensions, due to self-trapping, a typical self-avoiding walk is very short,&amp;lt;ref&amp;gt;{{citation|author=S. Hemmer and P. C. Hemmer|title=An average self-avoiding random walk on the square lattice lasts 71 steps|journal=J. Chem. Phys.| volume=81| pages=584| year=1984| doi=10.1063/1.447349|bibcode = 1984JChPh..81..584H }}&amp;lt;/ref&amp;gt; while in higher dimension it grows beyond all bounds.  &lt;br /&gt;
This model has often been used in [[polymer physics]] (since the 1960s).&lt;br /&gt;
* The [[loop-erased random walk]] (Gregory Lawler).&amp;lt;ref&amp;gt;Gregory Lawler (1996). &#039;&#039;Intersection of random walks&#039;&#039;, Birkhäuser Boston. ISBN 0-8176-3892-X.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;Gregory Lawler, &#039;&#039;Conformally Invariant Processes in the Plane&#039;&#039;, [http://www.math.cornell.edu/~lawler/book.ps book.ps].&amp;lt;/ref&amp;gt;&lt;br /&gt;
* The [[reinforced random walk]] (Robin Pemantle 2007).&amp;lt;ref&amp;gt;Robin Pemantle (2007), [http://www.emis.de/journals/PS/images/getdoc9b04.pdf?id=432&amp;amp;article=94&amp;amp;mode=pdf A survey of random processes with reinforcement]&#039;&#039;.&amp;lt;/ref&amp;gt;&lt;br /&gt;
* The [[exploration process]].{{citation needed|date=April 2012}}&lt;br /&gt;
* The [[multiagent random walk]].&amp;lt;ref&amp;gt;Alamgir, M and von Luxburg, U (2010). [http://www.kyb.mpg.de/fileadmin/user_upload/files/publications/attachments/AlamgirLuxburg2010_%5b0%5d.pdf &amp;quot;Multi-agent random walks for local clustering on graphs&amp;quot;], &#039;&#039;IEEE 10th International Conference on Data Mining (ICDM)&#039;&#039;, 2010, pp. 18-27.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;!-- All these deserve pages of their own. Currently I only feel competent to write the second (and maybe the last)--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Long-range correlated walks===&lt;br /&gt;
Long-range correlated time series are found in many  biological, climatological and economic systems.&lt;br /&gt;
&lt;br /&gt;
* Heartbeat  records&amp;lt;ref&amp;gt;{{cite journal |author= C.-K. Peng, J. Mietus, J. M. Hausdorff, [[Shlomo Havlin|S. Havlin]], H. E. Stanley, A. L. Goldberger |year= 1993 |title= Long-range anticorrelations and non-gaussian behavior of the heartbeat |journal= Phys. Rev. Lett.  |volume= 70 |pages= 1343–6 |url= http://havlin.biu.ac.il/Publications.php?keyword=Long-range+anticorrelations+and+non-gaussian+behavior+of+the+heartbeat&amp;amp;year=*&amp;amp;match=all |doi= 10.1103/PhysRevLett.70.1343 |pmid= 10054352 |issue= 9|bibcode = 1993PhRvL..70.1343P }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Non-coding DNA sequences&amp;lt;ref&amp;gt;{{cite journal |author= C.-K. Peng, S. V. Buldyrev, A. L. Goldberger, [[Shlomo Havlin|S. Havlin]], F. Sciortino, M. Simons, [[H. Eugene Stanley|H. E. Stanley]] |year= 1992 |title= Long-range correlations in nucleotide sequences| doi = 10.1038/356168a0 |journal= Nature |volume= 356 |pages= 168–70 |url= http://havlin.biu.ac.il/Publications.php?keyword=Long-range+correlations+in+nucleotide+sequences&amp;amp;year=*&amp;amp;match=all |issue= 6365 |pmid=1301010|bibcode = 1992Natur.356..168P }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Volatility time series of stocks&amp;lt;ref&amp;gt;{{cite journal |author= Y. Liu, P. Cizeau, M. Meyer, C.-K. Peng, [[H. Eugene Stanley|H. E. Stanley]]|year= 1997 |title= Correlations in economic time series |journal= Physica A|volume= 245 |pages= 437 |doi= 10.1016/S0378-4371(97)00368-3 |issue= 3–4 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Temperature records around the globe&amp;lt;ref&amp;gt;{{cite journal |author= E. Koscielny-Bunde, A. Bunde, S. Havlin, H. E. Roman, Y. Goldreich, H.-J. Schellenhuber |year= 1998|title= Indication of a universal persistence law governing atmospheric variability |journal= Phys. Rev. Lett. |volume= 81 |pages= 729  |url= http://havlin.biu.ac.il/Publications.php?keyword=Indication+of+a+universal+persistence+law+governing+atmospheric+variability&amp;amp;year=*&amp;amp;match=all |doi= 10.1103/PhysRevLett.81.729 |issue= 3 |bibcode=1998PhRvL..81..729K}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Branching random walk]]&lt;br /&gt;
* [[Brownian motion]]&lt;br /&gt;
* [[Law of the iterated logarithm]]&lt;br /&gt;
* [[Lévy flight]]&lt;br /&gt;
* [[Lévy flight foraging hypothesis]]&lt;br /&gt;
* [[Loop-erased random walk]]&lt;br /&gt;
* [[Self-avoiding walk]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
===Bibliography===&lt;br /&gt;
*Pal Révész (2013), &#039;&#039;Random walk in random and non-random environments (Third Edition)&#039;&#039;, World Scientific Pub Co. ISBN 978-981-4447-50-8&lt;br /&gt;
*David Aldous and Jim Fill, &#039;&#039;Reversible Markov Chains and Random Walks on Graphs&#039;&#039;, http://stat-www.berkeley.edu/users/aldous/RWG/book.html&lt;br /&gt;
*{{Cite book | last1=Doyle | first1=Peter G. | last2=Snell | first2=J. Laurie | title=Random walks and electric networks | arxiv=math.PR/0001057 | publisher=[[Mathematical Association of America]] | series=Carus Mathematical Monographs | isbn=978-0-88385-024-4 | mr=920811 | year=1984 | volume=22 | postscript=&amp;lt;!-- Bot inserted parameter. Either remove it; or change its value to &amp;quot;.&amp;quot; for the cite to end in a &amp;quot;.&amp;quot;, as necessary. --&amp;gt;{{inconsistent citations}}}}&lt;br /&gt;
*[[William Feller]] (1968), &#039;&#039;An Introduction to Probability Theory and its Applications&#039;&#039; (Volume 1). ISBN 0-471-25708-7&lt;br /&gt;
:Chapter 3 of this book contains a thorough discussion of random walks, including advanced results, using only elementary tools.&lt;br /&gt;
*Barry D. Hughes (1996), &#039;&#039;Random walks and random environments&#039;&#039;, Oxford University Press. ISBN 0-19-853789-1&lt;br /&gt;
*James Norris (1998), &#039;&#039;Markov Chains&#039;&#039;, Cambridge University Press. ISBN 0-521-63396-6&lt;br /&gt;
*&amp;lt;!---apparently broken---[http://www.springerlink.com/(brnqxc55mlvpxs452ufzp555)/app/home/contribution.asp?referrer=parent&amp;amp;backto=issue,13,13;journal,798,1099;linkingpublicationresults,1:100442,1  Springer]---&amp;gt; Pólya (1921), [http://gdz.sub.uni-goettingen.de/index.php?id=11&amp;amp;PPN=PPN235181684_0084&amp;amp;DMDID=DMDLOG_0016&amp;amp;L=1 &amp;quot;Über eine Aufgabe der Wahrscheinlichkeitsrechnung betreffend die Irrfahrt im Strassennetz&amp;quot;], &#039;&#039;[[Mathematische Annalen]]&#039;&#039;, 84(1-2):149–160, March 1921.&lt;br /&gt;
*Wolfgang Woess (2000), &#039;&#039;Random walks on infinite graphs and groups&#039;&#039;, Cambridge tracts in mathematics 138, Cambridge University Press. ISBN 0-521-55292-3&lt;br /&gt;
*Mackenzie, Dana, [http://www.sciencemag.org/cgi/content/full/sci;290/5498/1883 &amp;quot;Taking the Measure of the Wildest Dance on Earth&amp;quot;], Science, Vol. 290, 8 December 2000.&lt;br /&gt;
*G. Weiss &#039;&#039;Aspects and Applications of the Random Walk&#039;&#039;, North-Holland, 1994.&lt;br /&gt;
*D. Ben-Avraham and [[Shlomo Havlin|S. Havlin]], &#039;&#039;[http://havlin.biu.ac.il/Shlomo%20Havlin%20books_d_r.php Diffusion and Reactions in Fractals and Disordered Systems]&#039;&#039;, Cambridge University Press, 2000.&lt;br /&gt;
*&amp;quot;Numb3rs Blog.&amp;quot; Department of Mathematics. 29 April 2006. Northeastern University. 12 December 2007 http://www.atsweb.neu.edu/math/cp/blog/?id=137&amp;amp;month=04&amp;amp;year=2006&amp;amp;date=2006-04-29.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://mathworld.wolfram.com/PolyasRandomWalkConstants.html Pólya&#039;s Random Walk Constants]&lt;br /&gt;
* [http://vlab.infotech.monash.edu.au/simulations/swarms/random-walk/ Random walk in Java Applet]&lt;br /&gt;
&lt;br /&gt;
{{Stochastic processes}}&lt;br /&gt;
{{Use dmy dates|date=September 2010}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Random Walk}}&lt;br /&gt;
[[Category:Concepts in physics]]&lt;br /&gt;
[[Category:Stochastic processes]]&lt;br /&gt;
[[Category:Variants of random walks]]&lt;/div&gt;</summary>
		<author><name>ChelseyBianco</name></author>
	</entry>
	<entry>
		<id>https://en.formulasearchengine.com/w/index.php?title=Main_Page&amp;diff=39126</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Main_Page&amp;diff=39126"/>
		<updated>2014-08-10T17:53:47Z</updated>

		<summary type="html">&lt;p&gt;ChelseyBianco: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In [[statistics]], the &#039;&#039;&#039;Pearson product-moment correlation coefficient&#039;&#039;&#039; (sometimes referred to as the &#039;&#039;&#039;PPMCC&#039;&#039;&#039; or &#039;&#039;&#039;PCC&#039;&#039;&#039;,&amp;lt;ref&amp;gt;&amp;quot;The human disease network&amp;quot;, Albert Barabasi et al., Plos.org&amp;lt;/ref&amp;gt; or &#039;&#039;&#039;Pearson&#039;s &#039;&#039;r&#039;&#039;&#039;&#039;&#039;, and is typically denoted by &#039;&#039;r&#039;&#039;) is a measure of the [[correlation]] (linear dependence) between two variables &#039;&#039;X&#039;&#039; and &#039;&#039;Y&#039;&#039;, giving a value between +1 and −1 inclusive. It is widely used in the sciences as a measure of the strength of linear dependence between two variables. It was developed by [[Karl Pearson]] from a similar but slightly different idea introduced by [[Francis Galton]] in the 1880s.&amp;lt;ref name=&amp;quot;thirteenways&amp;quot;&amp;gt;J. L. Rodgers and W. A. Nicewander. [http://www.jstor.org/stable/2685263 Thirteen ways to look at the correlation coefficient]. The American Statistician, 42(1):59–66, February 1988.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite journal| doi = 10.1214/ss/1177012580| last = Stigler | first = Stephen M. | title = Francis Galton&#039;s Account of the Invention of Correlation | journal = Statistical Science | volume=4 | issue=2 | pages = 73–79 | year = 1989 | jstor=2245329}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Correlation examples2.svg|thumb|400px|right|Several sets of (&#039;&#039;x&#039;&#039;,&amp;amp;nbsp;&#039;&#039;y&#039;&#039;) points, with the correlation coefficient of &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; for each set. Note that the correlation reflects the non-linearity and direction of a linear relationship (top row), but not the slope of that relationship (middle), nor many aspects of nonlinear relationships (bottom). N.B.: the figure in the center has a slope of 0 but in that case the correlation coefficient is undefined because the variance of &#039;&#039;Y&#039;&#039; is zero.]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
Pearson&#039;s correlation coefficient between two variables is defined as the [[covariance]] of the two variables divided by the product of their [[standard deviations]].  The form of the definition involves a &amp;quot;product moment&amp;quot;, that is, the mean (the first moment about the origin) of the product of the mean-adjusted random variables; hence the modifier &#039;&#039;product-moment&#039;&#039; in the name.&lt;br /&gt;
&lt;br /&gt;
===For a population===&lt;br /&gt;
Pearson&#039;s correlation coefficient when applied to a population is commonly represented by the Greek letter &#039;&#039;ρ&#039;&#039; (rho) and may be referred to as the &#039;&#039;population correlation coefficient&#039;&#039; or the &#039;&#039;population Pearson correlation coefficient&#039;&#039;. The formula for &#039;&#039;ρ&#039;&#039; is:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \rho_{X,Y}={\mathrm{cov}(X,Y) \over \sigma_X \sigma_Y} ={E[(X-\mu_X)(Y-\mu_Y)] \over \sigma_X\sigma_Y} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===For a sample===&lt;br /&gt;
Pearson&#039;s correlation coefficient when applied to a sample is commonly represented by the letter &#039;&#039;r&#039;&#039; and may be referred to as the &#039;&#039;sample correlation coefficient&#039;&#039; or the &#039;&#039;sample Pearson correlation coefficient&#039;&#039;. We can obtain a formula for &#039;&#039;r&#039;&#039; by substituting estimates of the covariances and variances based on a [[statistical sample|sample]] into the formula above. That formula for &#039;&#039;r&#039;&#039; is:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;r = \frac{\sum ^n _{i=1}(X_i - \bar{X})(Y_i - \bar{Y})}{\sqrt{\sum ^n _{i=1}(X_i - \bar{X})^2} \sqrt{\sum ^n _{i=1}(Y_i - \bar{Y})^2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An equivalent expression gives the correlation coefficient as the mean of the products of the [[standard score]]s. Based on a [[Statistical sample|sample]] of paired data (&#039;&#039;X&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt;,&amp;amp;nbsp;&#039;&#039;Y&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt;), the sample Pearson correlation coefficient is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;r = \frac{1}{n-1} \sum ^n _{i=1} \left( \frac{X_i - \bar{X}}{s_X} \right) \left( \frac{Y_i - \bar{Y}}{s_Y} \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\frac{X_i - \bar{X}}{s_X}, \bar{X}, \text{ and } s_X&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
are the [[standard score]], sample [[mean]], and sample [[standard deviation]], respectively.&lt;br /&gt;
&lt;br /&gt;
==Mathematical properties==&lt;br /&gt;
The absolute value of both the sample and population Pearson correlation coefficients are less than or equal to 1.  Correlations equal to 1 or -1 correspond to data points lying exactly on a line (in the case of the sample correlation), or to a bivariate distribution entirely supported on a line (in the case of the population correlation).  The Pearson correlation coefficient is symmetric: &#039;&#039;corr&#039;&#039;(&#039;&#039;X&#039;&#039;,&#039;&#039;Y&#039;&#039;)&amp;amp;nbsp;=&amp;amp;nbsp;&#039;&#039;corr&#039;&#039;(&#039;&#039;Y&#039;&#039;,&#039;&#039;X&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
A key mathematical property of the Pearson correlation coefficient is that it is [[invariant estimator|invariant]] (up to a sign) to separate changes in location and scale in the two variables.  That is, we may transform &#039;&#039;X&#039;&#039; to &#039;&#039;a&#039;&#039;&amp;amp;nbsp;+&amp;amp;nbsp;&#039;&#039;bX&#039;&#039; and transform &#039;&#039;Y&#039;&#039; to &#039;&#039;c&#039;&#039;&amp;amp;nbsp;+&amp;amp;nbsp;&#039;&#039;dY&#039;&#039;, where &#039;&#039;a&#039;&#039;, &#039;&#039;b&#039;&#039;, &#039;&#039;c&#039;&#039;, and &#039;&#039;d&#039;&#039; are constants, without changing the correlation coefficient (this fact holds for both the population and sample Pearson correlation coefficients). Note that more general linear transformations do change the correlation: see [[#Removing correlation|a later section]] for an application of this.&lt;br /&gt;
&lt;br /&gt;
The Pearson correlation can be expressed in terms of uncentered moments.  Since &#039;&#039;μ&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;X&#039;&#039;&amp;lt;/sub&amp;gt; = E(&#039;&#039;X&#039;&#039;), &#039;&#039;σ&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;X&#039;&#039;&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = E[(&#039;&#039;X&#039;&#039;&amp;amp;nbsp;−&amp;amp;nbsp;E(&#039;&#039;X&#039;&#039;))&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;] =&amp;amp;nbsp;E(&#039;&#039;X&#039;&#039;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)&amp;amp;nbsp;−&amp;amp;nbsp;E&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;(&#039;&#039;X&#039;&#039;) and&lt;br /&gt;
likewise for &#039;&#039;Y&#039;&#039;, and since&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;E[(X-E(X))(Y-E(Y))]=E(XY)-E(X)E(Y),\,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
the correlation can also be written as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\rho_{X,Y}=\frac{E(XY)-E(X)E(Y)}{\sqrt{E(X^2)-(E(X))^2}~\sqrt{E(Y^2)- (E(Y))^2}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternative formulae for the &#039;&#039;sample&#039;&#039; Pearson correlation coefficient are also available:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
r_{xy}=\frac{\sum x_iy_i-n \bar{x} \bar{y}}{(n-1) s_x s_y}=\frac{n\sum x_iy_i-\sum x_i\sum y_i}&lt;br /&gt;
{\sqrt{n\sum x_i^2-(\sum x_i)^2}~\sqrt{n\sum y_i^2-(\sum y_i)^2}}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above formula suggests a convenient single-pass algorithm for calculating sample correlations, but, depending on the numbers involved, it can sometimes be [[numerical stability|numerically unstable]].&lt;br /&gt;
&lt;br /&gt;
==Interpretation==&lt;br /&gt;
The correlation coefficient ranges from −1 to 1. A value of 1 implies that a linear equation describes the relationship between &#039;&#039;X&#039;&#039; and &#039;&#039;Y&#039;&#039; perfectly, with all data points lying on a [[line (mathematics)|line]] for which &#039;&#039;Y&#039;&#039; increases as &#039;&#039;X&#039;&#039; increases. A value of −1 implies that all data points lie on a line for which &#039;&#039;Y&#039;&#039; decreases as &#039;&#039;X&#039;&#039; increases. A value of 0 implies that there is no linear correlation between the variables.&lt;br /&gt;
&lt;br /&gt;
More generally, note that (&#039;&#039;X&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;&amp;lt;font style=&amp;quot;text-decoration: overline;&amp;quot;&amp;gt;&#039;&#039;X&#039;&#039;&amp;lt;/font&amp;gt;)(&#039;&#039;Y&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;&amp;lt;font style=&amp;quot;text-decoration: overline;&amp;quot;&amp;gt;&#039;&#039;Y&#039;&#039;&amp;lt;/font&amp;gt;) is positive if and only if &#039;&#039;X&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt; and &#039;&#039;Y&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt; lie on the same side of their respective means.  Thus the correlation coefficient is positive if &#039;&#039;X&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt; and &#039;&#039;Y&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt; tend to be simultaneously greater than, or simultaneously less than, their respective means.  The correlation coefficient is negative if &#039;&#039;X&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt; and &#039;&#039;Y&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt; tend to lie on opposite sides of their respective means.&lt;br /&gt;
&lt;br /&gt;
===Geometric interpretation===&lt;br /&gt;
[[File:Regression lines.png|thumb|upright=1.5|Regression lines for y=g&amp;lt;sub&amp;gt;x&amp;lt;/sub&amp;gt;(x) [red] and x=g&amp;lt;sub&amp;gt;y&amp;lt;/sub&amp;gt;(y) [blue]]]&lt;br /&gt;
&lt;br /&gt;
For uncentered data, the correlation coefficient corresponds with the cosine of the angle &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt; between both possible [[regression line]]s y=g&amp;lt;sub&amp;gt;x&amp;lt;/sub&amp;gt;(x) and x=g&amp;lt;sub&amp;gt;y&amp;lt;/sub&amp;gt;(y).&lt;br /&gt;
&lt;br /&gt;
For centered data (i.e., data which have been shifted by the sample mean so as to have an average of zero), the correlation coefficient can also be viewed as the [[cosine]] of the [[angle]] &amp;lt;math&amp;gt;\ \theta&amp;lt;/math&amp;gt; between the two [[Vector (geometry)|vectors]] of samples drawn from the two random variables (see below).&lt;br /&gt;
&lt;br /&gt;
Both the uncentered (non-Pearson-compliant) and centered correlation coefficients can be determined for a dataset. As an example, suppose five countries are found to have gross national products of 1, 2, 3, 5, and 8 billion dollars, respectively. Suppose these same five countries (in the same order) are found to have 11%, 12%, 13%, 15%, and 18% poverty. Then let &#039;&#039;&#039;x&#039;&#039;&#039; and &#039;&#039;&#039;y&#039;&#039;&#039; be ordered 5-element vectors containing the above data: &#039;&#039;&#039;x&#039;&#039;&#039; = (1, 2, 3, 5, 8) and &#039;&#039;&#039;y&#039;&#039;&#039; = (0.11, 0.12, 0.13, 0.15, 0.18).&lt;br /&gt;
&lt;br /&gt;
By the usual procedure for finding the angle &amp;lt;math&amp;gt;\ \theta&amp;lt;/math&amp;gt; between two vectors (see [[dot product]]), the &#039;&#039;uncentered&#039;&#039; correlation coefficient is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- cos theta = (X dot Y) / ||X|| ||Y|| = 2.93 / sqrt(103 * 0.0983) = 0.920814711. --&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt; \cos \theta = \frac { \bold{x} \cdot \bold{y} } { \left\| \bold{x} \right\| \left\| \bold{y} \right\| } = \frac { 2.93 } { \sqrt { 103 } \sqrt { 0.0983 } } = 0.920814711. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the above data were deliberately chosen to be perfectly correlated: &#039;&#039;y&#039;&#039; = 0.10 + 0.01 &#039;&#039;x&#039;&#039;. The Pearson correlation coefficient must therefore be exactly one. Centering the data (shifting &#039;&#039;&#039;x&#039;&#039;&#039; by E(&#039;&#039;&#039;x&#039;&#039;&#039;) = 3.8 and &#039;&#039;&#039;y&#039;&#039;&#039; by E(&#039;&#039;&#039;y&#039;&#039;&#039;) = 0.138) yields &#039;&#039;&#039;x&#039;&#039;&#039; = (−2.8, −1.8, −0.8, 1.2, 4.2) and &#039;&#039;&#039;y&#039;&#039;&#039; = (−0.028, −0.018, −0.008, 0.012, 0.042), from which&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- cos theta = (X dot Y) / ||X|| ||Y|| = 0.308 / sqrt(30.8 * 0.00308) = 1. --&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt; \cos \theta = \frac { \bold{x} \cdot \bold{y} } { \left\| \bold{x} \right\| \left\| \bold{y} \right\| } = \frac { 0.308 } { \sqrt { 30.8 } \sqrt { 0.00308 } } = 1 = \rho_{xy}, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
as expected.&lt;br /&gt;
&lt;br /&gt;
===Interpretation of the size of a correlation===&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; align=&amp;quot;right&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Correlation !! Negative !! Positive&lt;br /&gt;
|-&lt;br /&gt;
| None || −0.09 to 0.0 || 0.0 to 0.09&lt;br /&gt;
|-&lt;br /&gt;
| Small || −0.3 to −0.1 || 0.1 to 0.3&lt;br /&gt;
|-&lt;br /&gt;
| Medium || −0.5 to −0.3 || 0.3 to 0.5&lt;br /&gt;
|-&lt;br /&gt;
|Strong || −1.0 to −0.5|| 0.5 to 1.0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Several authors&amp;lt;ref name=&amp;quot;Buda&amp;quot;&amp;gt;A. Buda and A.Jarynowski (2010) &#039;&#039;Life-time of correlations and its applications vol.1&#039;&#039;, Wydawnictwo Niezalezne: 5–21, December 2010, ISBN 978-83-915272-9-0&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;Cohen88&amp;quot;/&amp;gt; have offered guidelines for the interpretation of a correlation coefficient. However, all such criteria are in some ways arbitrary and should not be observed too strictly.&amp;lt;ref name=&amp;quot;Cohen88&amp;quot;&amp;gt;Cohen, J. (1988). &#039;&#039;Statistical power analysis for the behavioral sciences&#039;&#039; (2nd ed.)&amp;lt;/ref&amp;gt;   The interpretation of a correlation coefficient depends on the context and purposes.  A correlation of 0.9 may be very low if one is verifying a physical law using high-quality instruments, but may be regarded as very high in the social sciences where there may be a greater contribution from complicating factors.&lt;br /&gt;
&lt;br /&gt;
===Pearson’s distance===&lt;br /&gt;
A distance metric for two variables X and Y known as &#039;&#039;Pearson&#039;s distance&#039;&#039; can be defined from their correlation coefficient as&amp;lt;ref&amp;gt;Fulekar (Ed.), M.H. (2009) &#039;&#039;Bioinformatics: Applications in Life and Environmental Sciences&#039;&#039;, Springer (pp. 110) ISBN 1-4020-8879-5&amp;lt;/ref&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;d_{X,Y}=1-\rho_{X,Y}.&amp;lt;/math&amp;gt;&lt;br /&gt;
Considering that the Pearson correlation coefficient falls between [-1, 1], the Pearson distance lies in [0, 2].&lt;br /&gt;
&lt;br /&gt;
==Inference==&lt;br /&gt;
[[Image:correlation significance.svg|300px|right|thumb|A graph showing the minimum value of Pearson&#039;s correlation coefficient that is significantly different from zero at the 0.05 level, for a given sample size.]]Statistical inference based on Pearson&#039;s correlation coefficient often focuses on one of the following two aims:  &lt;br /&gt;
* One aim is to test the [[null hypothesis]] that the true correlation coefficient &#039;&#039;ρ&#039;&#039; is equal to 0, based on the value of the sample correlation coefficient &#039;&#039;r&#039;&#039;.&lt;br /&gt;
* The other aim is to construct a [[confidence interval]] around &#039;&#039;r&#039;&#039; that has a given probability of containing &#039;&#039;ρ&#039;&#039;.&lt;br /&gt;
We discuss methods of achieving one or both of these aims below.&lt;br /&gt;
&lt;br /&gt;
===Use a permutation test===&lt;br /&gt;
[[Resampling (statistics)#Permutation tests|Permutation tests]] provide a direct approach to performing hypothesis tests and constructing confidence intervals.  A permutation test for Pearson&#039;s correlation coefficient involves the following two steps: &lt;br /&gt;
* (i) using the original paired data (&#039;&#039;x&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt;,&amp;amp;nbsp;&#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt;), randomly redefine the pairs to create a new data set (&#039;&#039;x&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt;,&amp;amp;nbsp;&#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&amp;amp;prime;&#039;&#039;&amp;lt;/sub&amp;gt;), where the &#039;&#039;i&amp;amp;prime;&#039;&#039; are a permutation of the set {1,...,&#039;&#039;n&#039;&#039;}.  The permutation &#039;&#039;i&amp;amp;prime;&#039;&#039; is selected randomly, with equal probabilities placed on all &#039;&#039;n&#039;&#039;! possible permutations.  This is equivalent to drawing the &#039;&#039;i&amp;amp;prime;&#039;&#039; randomly &amp;quot;without replacement&amp;quot; from the set {1,..., &#039;&#039;n&#039;&#039;}.  A closely related and equally justified ([[Bootstrapping (statistics)|bootstrapping]]) approach is to separately draw the &#039;&#039;i&#039;&#039; and the &#039;&#039;i&amp;amp;prime;&#039;&#039; &amp;quot;with replacement&amp;quot; from {1,..., &#039;&#039;n&#039;&#039;};&lt;br /&gt;
* (ii) Construct a correlation coefficient &#039;&#039;r&#039;&#039; from the randomized data.&lt;br /&gt;
To perform the permutation test, repeat (i) and (ii) a large number of times.  The [[p-value]] for the permutation test is the proportion of the &#039;&#039;r&#039;&#039; values generated in step (ii) that are larger than the Pearson correlation coefficient that was calculated from the original data.  Here &amp;quot;larger&amp;quot; can mean either that the value is larger in magnitude, or larger in signed value, depending on whether a [[two-tailed test|two-sided]] or [[two-tailed test|one-sided]] test is desired.&lt;br /&gt;
&lt;br /&gt;
===Use a bootstrap===&lt;br /&gt;
The [[bootstrapping (statistics)|bootstrap]] can be used to construct confidence intervals for Pearson&#039;s correlation coefficient.  In the &amp;quot;non-parametric&amp;quot; bootstrap, &#039;&#039;n&#039;&#039; pairs (&#039;&#039;x&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt;,&amp;amp;nbsp;&#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt;) are resampled &amp;quot;with replacement&amp;quot; from the observed set of &#039;&#039;n&#039;&#039; pairs, and the correlation coefficient &#039;&#039;r&#039;&#039; is calculated based on the resampled data.  This process is repeated a large number of times, and the empirical distribution of the resampled &#039;&#039;r&#039;&#039; values are used to approximate the [[sampling distribution]] of the statistic.  A 95% [[confidence interval]] for &#039;&#039;ρ&#039;&#039; can be defined as the interval spanning from the 2.5&amp;lt;sup&amp;gt;&#039;&#039;th&#039;&#039;&amp;lt;/sup&amp;gt; to the 97.5&amp;lt;sup&amp;gt;&#039;&#039;th&#039;&#039;&amp;lt;/sup&amp;gt; [[percentile]] of the resampled &#039;&#039;r&#039;&#039; values.&lt;br /&gt;
&lt;br /&gt;
===Testing using Student&#039;s t-distribution===&lt;br /&gt;
For pairs from an uncorrelated [[bivariate normal distribution]], the [[sampling distribution]] of Pearson&#039;s correlation coefficient follows [[Student&#039;s t-distribution]] with degrees of freedom &#039;&#039;n&#039;&#039;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;2.  Specifically, if the underlying variables have a bivariate normal distribution, the variable &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;t = r\sqrt{\frac{n-2}{1 - r^2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
has a Student&#039;s t-distribution in the null case (zero correlation).&amp;lt;ref&amp;gt;Rahman, N.A. (1968) &#039;&#039;A Course in Theoretical Statistics&#039;&#039;, Charles Griffin and Company, 1968&amp;lt;/ref&amp;gt; This also holds approximately even if the observed values are non-normal, provided sample sizes are not very small.&amp;lt;ref&amp;gt;Kendall, M.G., Stuart, A. (1973) &#039;&#039;The Advanced Theory of Statistics, Volume 2: Inference and Relationship&#039;&#039;, Griffin. ISBN 0-85264-215-6 (Section 31.19)&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;For deviation on small sample sizes, see for example http://www.neustats.com/neu-da-documentation/whats-that-pearson-p-value-in-the-tables/&amp;lt;/ref&amp;gt;  For determining the critical values for &#039;&#039;r&#039;&#039; the inverse of this transformation is also needed:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;r = \frac{t}{\sqrt{n - 2 + t^2}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively, large sample approaches can be used.&lt;br /&gt;
&lt;br /&gt;
Early work on the distribution of the sample correlation coefficient was carried out by [[R. A. Fisher]]&amp;lt;ref&amp;gt;{{Cite journal&lt;br /&gt;
 | last = Fisher | first = R.A.&lt;br /&gt;
 | authorlink = R. A. Fisher&lt;br /&gt;
 | title = Frequency distribution of the values of the correlation coefficient in samples from an indefinitely large population&lt;br /&gt;
 | journal = [[Biometrika]]&lt;br /&gt;
 | volume = 10&lt;br /&gt;
 | issue = 4&lt;br /&gt;
 | pages = 507–521&lt;br /&gt;
 | year = 1915&lt;br /&gt;
 | doi = 10.1093/biomet/10.4.507&lt;br /&gt;
}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite journal&lt;br /&gt;
 | last = Fisher | first = R.A.&lt;br /&gt;
 | authorlink = R. A. Fisher&lt;br /&gt;
 | title = On the probable error of a coefficient of correlation deduced from a small sample&lt;br /&gt;
 | journal = [[Metron (journal)|Metron]]&lt;br /&gt;
 | year = 1921&lt;br /&gt;
 | volume = 1&lt;br /&gt;
 | issue = 4&lt;br /&gt;
 | pages = 3–32&lt;br /&gt;
 | url = http://hdl.handle.net/2440/15169&lt;br /&gt;
 | accessdate = 2009-03-25&lt;br /&gt;
 | format = [[PDF]]&lt;br /&gt;
}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
and A. K. Gayen.&amp;lt;ref&amp;gt;{{Cite journal&lt;br /&gt;
 | first = A.K. | last = Gayen&lt;br /&gt;
 | title = The frequency distribution of the product moment correlation coefficient in random samples of any size draw from non-normal universes&lt;br /&gt;
 | journal = [[Biometrika]]&lt;br /&gt;
 | year = 1951&lt;br /&gt;
 | volume = 38&lt;br /&gt;
 | pages = 219–247&lt;br /&gt;
 | doi = 10.1093/biomet/38.1-2.219&lt;br /&gt;
}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
Another early paper&amp;lt;ref&amp;gt;Soper, H.E., Young, A.W., Cave, B.M., Lee, A., Pearson, K. (1917). &amp;quot;On the distribution of the correlation coefficient in small samples. Appendix II to the papers of &amp;quot;Student&amp;quot; and R. A. Fisher. A co-operative study&amp;quot;, &#039;&#039;[[Biometrika]]&#039;&#039;, 11, 328-413. {{doi|10.1093/biomet/11.4.328}}&amp;lt;/ref&amp;gt; provides graphs and tables for general values of &#039;&#039;ρ&#039;&#039;, for small sample sizes, and discusses computational approaches.&lt;br /&gt;
&lt;br /&gt;
===Use the exact distribution===&lt;br /&gt;
For data that follows a [[bivariate normal distribution]], the exact density function for the sample correlation of a normal bivariate is&amp;lt;ref&amp;gt;Kenney, J. F. and Keeping, E. S., &#039;&#039;Mathematics of Statistics&#039;&#039;, Pt. 2, 2nd ed. Princeton, NJ: Van Nostrand, 1951.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;[http://mathworld.wolfram.com/CorrelationCoefficientBivariateNormalDistribution.html Correlation Coefficient - Bivariate Normal Distribution]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f\left(r\right) = \frac{\left(n - 2\right)\, \mathbf{\Gamma}\left(n - 1\right) \left(1 - \rho^2\right)^{\frac{n - 1}{2}} \left(1 - r^2\right)^{\frac{n - 4}{2}}}{\sqrt{2\pi}\, \mathbf{\Gamma}\left(n - \frac{1}{2}\right) \left(1 - \rho r\right)^{n - \frac{3}{2}}} \,\mathbf{_2F_1}\left(\frac{1}{2}, \frac{1}{2}; \frac{2n - 1}{2}; \frac{\rho r + 1}{2}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{\Gamma}&amp;lt;/math&amp;gt; is the [[gamma function]], &amp;lt;math&amp;gt;\,\mathbf{_2F_1}(a,b;c;z)&amp;lt;/math&amp;gt; is the [[hypergeometric function|Gaussian hypergeometric function]]. In the special case when &amp;lt;math&amp;gt;\,\rho = 0&amp;lt;/math&amp;gt;, the density can be written as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f\left(r\right) = \frac{\left(1 - r^2\right)^{\frac{n - 4}{2}}}{\mathbf{B}\left(\frac{1}{2}, \frac{n - 2}{2}\right)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathbf{B}&amp;lt;/math&amp;gt; is the [[beta function]], which is one way of writing the density of a Student&#039;s t-distribution, as above. &lt;br /&gt;
&lt;br /&gt;
Note that{{citation needed|date=April 2012}} &amp;lt;math&amp;gt;E\left(r\right) = \rho - \frac{\rho \left(1 - \rho^2\right)}{2 \left(n - 1\right)} + \cdots &amp;lt;/math&amp;gt;, therefore &#039;&#039;r&#039;&#039; is a biased estimator of &amp;lt;math&amp;gt;\,\rho&amp;lt;/math&amp;gt;. An approximately unbiased estimator can be obtained by solving the equation &amp;lt;math&amp;gt;r = E\left(r\right) = \rho - \frac{\rho \left(1 - \rho^2\right)}{2 \left(n - 1\right)}&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\,\rho&amp;lt;/math&amp;gt;. However, the solution, &amp;lt;math&amp;gt;\breve{\rho} = r \left[1 + \frac{1 - r^2}{2\left(n - 1\right)}\right]&amp;lt;/math&amp;gt;,{{citation needed|date=April 2012}} is suboptimal.{{citation needed|date=April 2012}} An approximately unbiased estimator,{{citation needed|date=April 2012}} with minimum variance for large values of &#039;&#039;n&#039;&#039;, with a bias of order &amp;lt;math&amp;gt;\frac{1}{n - 1}&amp;lt;/math&amp;gt;, can be obtained by maximizing &amp;lt;math&amp;gt;\log{f\left(r\right)}&amp;lt;/math&amp;gt;, i.e. &amp;lt;math&amp;gt;\hat{\rho} = r \left[1 - \frac{1 - r^2}{2\left(n - 1\right)}\right]&amp;lt;/math&amp;gt;.{{citation needed|date=April 2012}}&lt;br /&gt;
&lt;br /&gt;
===Use the Fisher transformation===&lt;br /&gt;
In practice, [[confidence intervals]] and [[hypothesis test]]s relating to ρ are usually carried out using the [[Fisher transformation]]:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;F(r) = {1 \over 2}\ln{1 + r \over 1 - r} = \operatorname{artanh}(r).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;F&#039;&#039;(&#039;&#039;r&#039;&#039;) is the Fisher transformation of &#039;&#039;r&#039;&#039;, and &#039;&#039;n&#039;&#039; is the sample size, then &#039;&#039;F&#039;&#039;(&#039;&#039;r&#039;&#039;) approximately follows a [[normal distribution]] with&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{mean} = F(\rho) = \operatorname{artanh}(\rho)&amp;lt;/math&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;and standard error&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;math&amp;gt;\text{SE} = \frac{1}{\sqrt{n - 3}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus, a [[standard score|z-score]] is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;z = \frac{x - \text{mean}}{\text{SE}} = [F(r) - F(\rho_0)]\sqrt{n - 3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
under the [[null hypothesis]] of that &amp;lt;math&amp;gt;\rho = \rho_0&amp;lt;/math&amp;gt;, given the assumption that the sample pairs are [[independent and identically distributed]] and follow a [[bivariate normal distribution]].  Thus an approximate [[p-value]] can be obtained from a normal probability table.  For example, if &#039;&#039;z&#039;&#039;&amp;amp;nbsp;=&amp;amp;nbsp;2.2 is observed and a two-sided p-value is desired to test the null hypothesis that &amp;lt;math&amp;gt;\rho = 0&amp;lt;/math&amp;gt;, the p-value is 2·Φ(−2.2) = 0.028, where Φ is the standard normal [[cumulative distribution function]].&lt;br /&gt;
&lt;br /&gt;
To obtain a confidence interval for ρ, we first compute a confidence interval for &#039;&#039;F&#039;&#039;(&#039;&#039;&amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt;&#039;&#039;):&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;100(1 - \alpha)%\text{CI}: \operatorname{artanh}(\rho) \in [\operatorname{artanh}(r) \pm z_{\alpha/2}SE]&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The inverse Fisher transformation bring the interval back to the correlation scale.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;100(1 - \alpha)%\text{CI}: \rho \in [\operatorname{tanh}(\operatorname{artanh}(r) - z_{\alpha/2}SE), \operatorname{tanh}(\operatorname{artanh}(r) + z_{\alpha/2}SE)]&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
For example, suppose we observe &#039;&#039;r&#039;&#039;&amp;amp;nbsp;=&amp;amp;nbsp;0.3 with a sample size of &#039;&#039;n&#039;&#039;=50, and we wish to obtain a 95% confidence interval for ρ.  The transformed value is artanh(&#039;&#039;r&#039;&#039;)&amp;amp;nbsp;=&amp;amp;nbsp;0.30952, so the confidence interval on the transformed scale is 0.30952 ± 1.96/√47, or (0.023624,&amp;amp;nbsp;0.595415).  Converting back to the correlation scale yields (0.024,&amp;amp;nbsp;0.534).&lt;br /&gt;
&lt;br /&gt;
==Pearson&#039;s correlation and least squares regression analysis==&lt;br /&gt;
The square of the sample correlation coefficient, which is also known as the [[coefficient of determination]], estimates the fraction of the variance in &#039;&#039;Y&#039;&#039; that is explained by &#039;&#039;X&#039;&#039; in a [[simple linear regression]]. As a starting point, the total variation in the &#039;&#039;Y&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;i&#039;&#039;&amp;lt;/sub&amp;gt; around their average value can be decomposed as follows&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_i (Y_i - \bar{Y})^2 = \sum_i (Y_i-\hat{Y}_i)^2 + \sum_i (\hat{Y}_i-\bar{Y})^2,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;math&amp;gt;\hat{Y}_i&amp;lt;/math&amp;gt; are the fitted values from the regression analysis.  This can be rearranged to give&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
1 = \frac{\sum_i (Y_i-\hat{Y}_i)^2}{\sum_i (Y_i - \bar{Y})^2} + \frac{\sum_i (\hat{Y}_i-\bar{Y})^2}{\sum_i (Y_i - \bar{Y})^2}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The two summands above are the fraction of variance in &#039;&#039;Y&#039;&#039; that is explained by &#039;&#039;X&#039;&#039; (right) and that is unexplained by &#039;&#039;X&#039;&#039; (left).&lt;br /&gt;
&lt;br /&gt;
Next, we apply a property of least square regression models, that the sample covariance between &amp;lt;math&amp;gt;\hat{Y}_i&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y_i-\hat{Y}_i&amp;lt;/math&amp;gt; is zero.  Thus, the sample correlation coefficient between the observed and fitted response values in the regression can be written&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r(Y,\hat{Y}) &amp;amp;= \frac{\sum_i(Y_i-\bar{Y})(\hat{Y}_i-\bar{Y})}{\sqrt{\sum_i(Y_i-\bar{Y})^2\cdot \sum_i(\hat{Y}_i-\bar{Y})^2}}\\&lt;br /&gt;
&amp;amp;= \frac{\sum_i(Y_i-\hat{Y}_i+\hat{Y}_i-\bar{Y})(\hat{Y}_i-\bar{Y})}{\sqrt{\sum_i(Y_i-\bar{Y})^2\cdot \sum_i(\hat{Y}_i-\bar{Y})^2}}\\&lt;br /&gt;
&amp;amp;= \frac{ \sum_i [(Y_i-\hat{Y}_i)(\hat{Y}_i-\bar{Y}) +(\hat{Y}_i-\bar{Y})^2 ]}{\sqrt{\sum_i(Y_i-\bar{Y})^2\cdot \sum_i(\hat{Y}_i-\bar{Y})^2}}\\&lt;br /&gt;
&amp;amp;= \frac{ \sum_i (\hat{Y}_i-\bar{Y})^2 }{\sqrt{\sum_i(Y_i-\bar{Y})^2\cdot \sum_i(\hat{Y}_i-\bar{Y})^2}}\\&lt;br /&gt;
&lt;br /&gt;
&amp;amp;= \sqrt{\frac{\sum_i(\hat{Y}_i-\bar{Y})^2}{\sum_i(Y_i-\bar{Y})^2}}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thus&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
r(Y,\hat{Y})^2 = \frac{\sum_i(\hat{Y}_i-\bar{Y})^2}{\sum_i(Y_i-\bar{Y})^2}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
is the proportion of variance in &#039;&#039;Y&#039;&#039; explained by a linear function of &#039;&#039;X&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Sensitivity to the data distribution==&lt;br /&gt;
===Existence===&lt;br /&gt;
The population Pearson correlation coefficient is defined in terms of [[moment (mathematics)|moments]], and therefore exists for any bivariate [[probability distribution]] for which the [[statistical population|population]] [[covariance]] is defined and the [[marginal distribution|marginal]] [[population variance]]s are defined and are non-zero.  Some probability distributions such as the [[Cauchy distribution]] have undefined variance and hence ρ is not defined if &#039;&#039;X&#039;&#039; or &#039;&#039;Y&#039;&#039; follows such a distribution.  In some practical applications, such as those involving data suspected to follow a [[heavy-tailed distribution]], this is an important consideration.  However, the existence of the correlation coefficient is usually not a concern; for instance, if the range of the distribution is bounded, ρ is always defined.&lt;br /&gt;
&lt;br /&gt;
===Large sample properties===&lt;br /&gt;
In the case of the bivariate [[normal distribution]] the population Pearson correlation coefficient characterizes the joint distribution as long as the marginal means and variances are known.  For most other bivariate distributions this is not true.  Nevertheless, the correlation coefficient is highly informative about the degree of linear dependence between two random quantities regardless of whether their joint distribution is normal.&amp;lt;ref name=&amp;quot;thirteenways&amp;quot;/&amp;gt;&lt;br /&gt;
The sample correlation coefficient is the [[maximum likelihood estimate]] of the population correlation coefficient for bivariate normal data, and is [[asymptotic distribution|asymptotically]] [[bias of an estimator|unbiased]] and [[efficiency (statistics)|efficient]], which roughly means that it is impossible to construct a more accurate estimate than the sample correlation coefficient if the data are normal and the sample size is moderate or large. For non-normal populations, the sample correlation coefficient remains approximately unbiased, but may not be efficient.  The sample correlation coefficient is  a [[consistent estimator]] of the population correlation coefficient as long as the sample means, variances, and covariance are consistent (which is guaranteed when the [[law of large numbers]] can be applied).&lt;br /&gt;
&lt;br /&gt;
===Robustness===&lt;br /&gt;
Like many commonly used statistics, the sample statistic &#039;&#039;r&#039;&#039; is not [[robust statistics|robust]],&amp;lt;ref name=&amp;quot;wilcox&amp;quot;&amp;gt;{{Cite book| title=Introduction to robust estimation and hypothesis testing | last = Wilcox | first = Rand R. | publisher= Academic Press | year=2005}}&amp;lt;/ref&amp;gt; so its value can be misleading if [[outlier]]s are present.&amp;lt;ref&amp;gt;{{Cite journal| title= Robust Estimation and Outlier Detection with Correlation Coefficients | last= Devlin | first = Susan J | coauthors = Gnanadesikan, R; Kettenring J.R. | journal= Biometrika | volume= 62 |  issue= 3 |year=1975 | pages=531–545 | doi= 10.1093/biomet/62.3.531 | jstor=2335508}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite book| title=Robust Statistics | last = Huber | first = Peter. J.| publisher= Wiley | year=2004}}{{Page needed|date=September 2010}}&amp;lt;/ref&amp;gt; Specifically, the PMCC is neither distributionally robust,{{Citation needed|date=November 2009}} nor outlier resistant&amp;lt;ref name=&amp;quot;wilcox&amp;quot;/&amp;gt; (see [[Robust statistics#Definition]]). Inspection of the [[scatterplot]] between &#039;&#039;X&#039;&#039; and &#039;&#039;Y&#039;&#039; will typically reveal a situation where lack of robustness might be an issue, and in such cases it may be advisable to use a robust measure of association.   Note however that while most robust estimators of association measure [[statistical dependence]] in some way, they are generally not interpretable on the same scale as the Pearson correlation coefficient.&lt;br /&gt;
&lt;br /&gt;
Statistical inference for Pearson&#039;s correlation coefficient is sensitive to the data distribution.  Exact tests, and asymptotic tests based on the [[Fisher transformation]] can be applied if the data are approximately normally distributed, but may be misleading otherwise.  In some situations, the [[bootstrapping (statistics)|bootstrap]] can be applied to construct confidence intervals, and [[resampling (statistics)|permutation tests]] can be applied to carry out hypothesis tests.  These [[non-parametric statistics|non-parametric]] approaches may give more meaningful results in some situations where bivariate normality does not hold.  However the standard versions of these approaches rely on [[exchangeable random variables|exchangeability]] of the data, meaning that there is no ordering or grouping of the data pairs being analyzed that might affect the behavior of the correlation estimate.&lt;br /&gt;
&lt;br /&gt;
A stratified analysis is one way to either accommodate a lack of bivariate normality, or to isolate the correlation resulting from one factor while controlling for another.  If &#039;&#039;W&#039;&#039; represents cluster membership or another factor that it is desirable to control, we can stratify the data based on the value of &#039;&#039;W&#039;&#039;, then calculate a correlation coefficient within each stratum.  The stratum-level estimates can then be combined to estimate the overall correlation while controlling for &#039;&#039;W&#039;&#039;.&amp;lt;ref&amp;gt;Katz., Mitchell H. (2006) &#039;&#039;Multivariable Analysis - A Practical Guide for Clinicians&#039;&#039;. 2nd Edition.  Cambridge University Press. ISBN 978-0-521-54985-1. ISBN 0-521-54985-X {{DOI|10.2277/052154985X}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Calculating a weighted correlation==&lt;br /&gt;
Suppose observations to be correlated have differing degrees of importance that can be expressed with a weight vector &#039;&#039;w&#039;&#039;. To calculate the correlation between vectors &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; with the weight vector &#039;&#039;w&#039;&#039; (all of length&amp;amp;nbsp;&#039;&#039;n&#039;&#039;),&amp;lt;ref&amp;gt;http://sci.tech-archive.net/Archive/sci.stat.math/2006-02/msg00171.html&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;[http://www.mathworks.com/matlabcentral/fileexchange/20846 A MATLAB Toolbox for computing Weighted Correlation Coefficients]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Weighted mean:&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;math&amp;gt;\operatorname{m}(x; w) = {\sum_i w_i x_i \over \sum_i w_i}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Weighted covariance&lt;br /&gt;
:: &amp;lt;math&amp;gt;\operatorname{cov}(x,y;w) = {\sum_i w_i (x_i - \operatorname{m}(x; w)) (y_i - \operatorname{m}(y; w)) \over \sum_i w_i }.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Weighted correlation&lt;br /&gt;
:: &amp;lt;math&amp;gt;\operatorname{corr}(x,y;w) = {\operatorname{cov}(x,y;w) \over \sqrt{\operatorname{cov}(x,x;w) \operatorname{cov}(y,y;w)}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Removing correlation==&lt;br /&gt;
It is always possible to remove the correlation between random variables with a linear transformation, even if the relationship between the variables is nonlinear. A presentation of this result for population distributions is given by Cox &amp;amp; Hinkley.&amp;lt;ref&amp;gt;Cox, D.R., Hinkley, D.V. (1974) &#039;&#039;Theoretical Statistics&#039;&#039;, Chapman &amp;amp; Hall (Appendix 3) ISBN 0-412-12420-3&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A corresponding result exists for sample correlations, in which the sample correlation is reduced to zero. Suppose a vector of &#039;&#039;n&#039;&#039; random variables is sampled &#039;&#039;m&#039;&#039; times.  Let &#039;&#039;X&#039;&#039; be a matrix where &amp;lt;math&amp;gt;X_{i,j}&amp;lt;/math&amp;gt; is the &#039;&#039;j&#039;&#039;th variable of sample &#039;&#039;i&#039;&#039;.  Let &amp;lt;math&amp;gt;Z_{m,m}&amp;lt;/math&amp;gt; be an &#039;&#039;m&#039;&#039; by &#039;&#039;m&#039;&#039; square matrix with every element 1.  Then &#039;&#039;D&#039;&#039; is the data transformed so every random variable has zero mean, and &#039;&#039;T&#039;&#039; is the data transformed so all variables have zero mean and zero correlation with all other variables - the moment matrix of &#039;&#039;T&#039;&#039; will be the identity matrix. This has to be further divided by the standard deviation to get unit variance. The transformed variables will be uncorrelated, even though they may not be [[Statistical independence|independent]].&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;D = X -\frac{1}{m} Z_{m,m} X&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- extra blank line between two lines of &amp;quot;displayed&amp;quot; [[TeX]], for legibility --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;T = D (D^T D)^{-\frac{1}{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where an exponent of -1/2 represents the [[matrix square root]] of the [[matrix inverse|inverse]] of a matrix.  The covariance matrix of &#039;&#039;T&#039;&#039; will be the identity matrix.  If a new data sample &#039;&#039;x&#039;&#039; is a row vector of &#039;&#039;n&#039;&#039; elements, then the same transform can be applied to &#039;&#039;x&#039;&#039; to get the transformed vectors &#039;&#039;d&#039;&#039; and &#039;&#039;t&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;d = x - \frac{1}{m} Z_{1,m} X&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- extra blank line between two lines of &amp;quot;displayed&amp;quot; [[TeX]], for legibility --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;t = d (D^T D)^{-\frac{1}{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
This decorrelation is related to [[Principal Components Analysis]] for multivariate data.&lt;br /&gt;
&lt;br /&gt;
==Reflective correlation==&lt;br /&gt;
The reflective correlation is a variant of Pearson&#039;s correlation in which the data are not centered around their mean values.{{Citation needed|date=January 2011}} The population reflective correlation is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\text{Corr}_r(X,Y) = \frac{E[XY]}{\sqrt{EX^2\cdot EY^2}}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reflective correlation is symmetric, but it is not invariant under translation:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\text{Corr}_r(X, Y) = \text{Corr}_r(Y, X) = \text{Corr}_r(X, bY) \neq \text{Corr}_r(X, a + b Y), \quad a \neq 0, b &amp;gt; 0.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The sample reflective correlation is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rr_{xy} = \frac{\sum x_i y_i}{\sqrt{(\sum x_i^2)(\sum y_i^2)}}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The weighted version of the sample reflective correlation is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rr_{xy, w} = \frac{\sum w_i x_i y_i}{\sqrt{(\sum w_i x_i^2)(\sum w_i y_i^2)}}.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Scaled correlation==&lt;br /&gt;
{{Main|Scaled correlation}}&lt;br /&gt;
&lt;br /&gt;
Scaled correlation is a variant of Pearson&#039;s correlation in which the range of the data is restricted intentionally and in a controlled manner to reveal correlations between fast components in time series.&amp;lt;ref name = &amp;quot;Nikolicetal&amp;quot;&amp;gt;Nikolić D, Muresan RC, Feng W, Singer W (2012) Scaled correlation analysis: a better way to compute a cross-correlogram. &#039;&#039;European Journal of Neuroscience&#039;&#039;, pp. 1–21, {{doi|10.1111/j.1460-9568.2011.07987.x}} http://www.danko-nikolic.com/wp-content/uploads/2012/03/Scaled-correlation-analysis.pdf&amp;lt;/ref&amp;gt; Scaled correlation is defined as average correlation across short segments of data. &lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; be the number of segments that can fit into the total length of the signal &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt; for a given scale &amp;lt;math&amp;gt;s&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;K = \operatorname{round}\left(\frac{T}{s}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The scaled correlation across the entire signals &amp;lt;math&amp;gt;\bar{r}_s&amp;lt;/math&amp;gt; is then computed as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\bar{r}_s = \frac{1}{K} \sum\limits_{k=1}^K r_k,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;r_k&amp;lt;/math&amp;gt; is Pearson&#039;s coefficient of correlation for segment &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
By choosing the parameter &amp;lt;math&amp;gt;s&amp;lt;/math&amp;gt;, the range of values is reduced and the correlations on long time scale are filtered out, only the correlations on short time scales being revealed. Thus, the contributions of slow components are removed and those of fast components are retained.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Portal|Statistics}}&lt;br /&gt;
{{Wikiversity|Linear correlation}}&lt;br /&gt;
* [[Correlation and dependence]]&lt;br /&gt;
* [[Spearman&#039;s rank correlation coefficient]]&lt;br /&gt;
* [[Association (statistics)]]&lt;br /&gt;
* [[Disattenuation]]&lt;br /&gt;
* [[Maximal information coefficient]]&lt;br /&gt;
* [[Normally distributed and uncorrelated does not imply independent]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
{{Statistics}}&lt;br /&gt;
{{Use dmy dates|date=September 2010}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Pearson Product-Moment Correlation Coefficient}}&lt;br /&gt;
[[Category:Covariance and correlation]]&lt;br /&gt;
[[Category:Parametric statistics]]&lt;br /&gt;
[[Category:Statistical ratios]]&lt;br /&gt;
&lt;br /&gt;
[[ca:Coeficient de correlació de Pearson]]&lt;br /&gt;
[[de:Korrelationskoeffizient]]&lt;br /&gt;
[[et:Lineaarne korrelatsioonikordaja]]&lt;br /&gt;
[[es:Coeficiente de correlación de Pearson]]&lt;br /&gt;
[[eu:Korrelazio-koefiziente]]&lt;br /&gt;
[[it:Indice di correlazione di Pearson]]&lt;br /&gt;
[[he:מתאם פירסון]]&lt;br /&gt;
[[nl:Correlatiecoëfficiënt]]&lt;br /&gt;
[[ja:相関係数]]&lt;br /&gt;
[[no:Pearsons produkt-moment korrelasjonskoeffisient]]&lt;br /&gt;
[[pl:Współczynnik korelacji Pearsona]]&lt;br /&gt;
[[pt:Coeficiente de correlação de Pearson]]&lt;br /&gt;
[[ru:Корреляция#Линейный коэффициент корреляции]]&lt;br /&gt;
[[sk:Bravaisov-Pearsonov korelačný koeficient]]&lt;br /&gt;
[[sl:Pearsonov koeficient korelacije]]&lt;br /&gt;
[[zh:皮尔逊积矩相关系数]]&lt;/div&gt;</summary>
		<author><name>ChelseyBianco</name></author>
	</entry>
	<entry>
		<id>https://en.formulasearchengine.com/w/index.php?title=Main_Page&amp;diff=38596</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Main_Page&amp;diff=38596"/>
		<updated>2014-08-10T14:18:42Z</updated>

		<summary type="html">&lt;p&gt;ChelseyBianco: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{refimprove|date=August 2012}}&lt;br /&gt;
&#039;&#039;&#039;Maze generation [[algorithm]]s&#039;&#039;&#039; are automated methods for the creation of [[maze]]s.&lt;br /&gt;
&lt;br /&gt;
[[Image:Prim Maze.svg|right|frame|This maze generated by modified version of [[Prim&#039;s algorithm]], below.]]&lt;br /&gt;
&lt;br /&gt;
== Graph theory based methods ==&lt;br /&gt;
&lt;br /&gt;
[[File:Graph_based_maze_animation.gif|thumb|Animation of Graph theory based method]]&lt;br /&gt;
&lt;br /&gt;
A maze can be generated by starting with a predetermined arrangement of cells (most commonly a rectangular grid but other arrangements are possible) with wall sites between them. This predetermined arrangement can be considered as a [[connected graph]] with the edges representing possible wall sites and the nodes representing cells. The purpose of the maze generation algorithm can then be considered to be making a subgraph where it is challenging to find a route between two particular nodes.&lt;br /&gt;
&lt;br /&gt;
If the subgraph is not [[connected graph|connected]], then there are regions of the graph that are wasted because they do not contribute to the search space.  If the graph contains loops, then there may be multiple paths between the chosen nodes.  Because of this, maze generation is often approached as generating a random [[spanning tree (mathematics)|spanning tree]].  Loops which can confound naive maze solvers may be introduced by adding random edges to the result during the course of the algorithm.&lt;br /&gt;
&lt;br /&gt;
The animation shows the maze generation steps for a &lt;br /&gt;
graph that is not on a rectangular grid.&lt;br /&gt;
First, the computer creates a random [[planar graph]] G&lt;br /&gt;
shown in blue, and its [[Dual_graph|dual]] F&lt;br /&gt;
shown in yellow. Second, computer traverses F using a chosen&lt;br /&gt;
algorithm, such as a depth-first search, coloring the path red.&lt;br /&gt;
During the traversal, whenever a red edge crosses over a blue edge,&lt;br /&gt;
the blue edge is removed.&lt;br /&gt;
Finally, when all vertices of F have been visited, F is erased&lt;br /&gt;
and two edges from G, one for the entrance and one for the exit, are removed.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Depth-first search ===&lt;br /&gt;
[[File:Depth-First_Search_Animation.ogv|thumb|right|Animation of generator&#039;s thinking process using Depth-First Search]]&lt;br /&gt;
&lt;br /&gt;
This algorithm is a randomized version of the [[depth-first search]] algorithm. Frequently implemented with a stack, this approach is one of the simplest ways to generate a maze using a computer. Consider the space for a maze being a large grid of cells (like a large chess board), each cell starting with four walls. Starting from a random cell, the computer then selects a random neighbouring cell that has not yet been visited. The computer removes the &#039;wall&#039; between the two cells and adds the new cell to a stack (this is analogous to drawing the line on the floor). The computer continues this process, with a cell that has no unvisited neighbours being considered a dead-end. When at a dead-end it backtracks through the path until it reaches a cell with an unvisited neighbour, continuing the path generation by visiting this new, unvisited cell (creating a new junction). This process continues until every cell has been visited, causing the computer to backtrack all the way back to the beginning cell. This approach guarantees that the maze space is completely visited.&lt;br /&gt;
&lt;br /&gt;
As stated, the algorithm is very simple and does not produce over-complex mazes. More specific refinements to the algorithm can help to generate mazes that are harder to solve.&lt;br /&gt;
&lt;br /&gt;
# Start at a particular cell and call it the &amp;quot;exit.&amp;quot;&lt;br /&gt;
# Mark the current cell as visited, and get a list of its neighbors.  For each neighbor, starting with a randomly selected neighbor:&lt;br /&gt;
## If that neighbor hasn&#039;t been visited, remove the wall between this cell and that neighbor, and then [[recursion|recur]] with that neighbor as the current cell.&lt;br /&gt;
&lt;br /&gt;
As given above this algorithm involves deep recursion which may cause stack overflow issues on some computer architectures. The algorithm can be rearranged into a loop by storing backtracking information in the maze itself. This also provides a quick way to display a solution, by starting at any given point and backtracking to the exit.&lt;br /&gt;
&lt;br /&gt;
[[File:Horizontally_Influenced_Depth-First_Search_Generated_Maze.png|thumb|right|Horizontal Influence]]&lt;br /&gt;
&lt;br /&gt;
Mazes generated with a depth-first search have a low branching factor and contain many long corridors, because the algorithm explores as far as possible along each branch before backtracking. Also mazes will typically be relatively easy to find the way to the square that was first picked at the beginning of the algorithm, since most paths lead to or from there, but it is hard to find the way out.{{Why|date=October 2014}}&lt;br /&gt;
&lt;br /&gt;
To add difficulty and a fun factor to depth-first search generated mazes, you can influence the likelihood of which neighbor you should visit, instead of it being completely random. By making it more likely to visit neighbors to your sides, you can have a more horizontal maze generation. Experimenting with directional &amp;quot;influence&amp;quot; in certain places could lead to creating fun designs, such as a checkerboard pattern, an X, and more. &lt;br /&gt;
&lt;br /&gt;
==== Recursive backtracker ====&lt;br /&gt;
The depth-first search algorithm of maze generation is frequently implemented using [[backtracking]]:&lt;br /&gt;
&lt;br /&gt;
# Make the initial cell the current cell and mark it as visited&lt;br /&gt;
# While there are unvisited cells&lt;br /&gt;
##  If the current cell has any neighbours which have not been visited&lt;br /&gt;
###  Choose randomly one of the unvisited neighbours&lt;br /&gt;
###  Push the current cell to the stack&lt;br /&gt;
###  Remove the wall between the current cell and the chosen cell&lt;br /&gt;
###  Make the chosen cell the current cell and mark it as visited&lt;br /&gt;
## Else if stack is not empty&lt;br /&gt;
###  Pop a cell from the stack&lt;br /&gt;
###  Make it the current cell&lt;br /&gt;
## Else&lt;br /&gt;
### Pick a random unvisited cell, make it the current cell and mark it as visited&lt;br /&gt;
&lt;br /&gt;
=== Randomized Kruskal&#039;s algorithm ===&lt;br /&gt;
[[File:KruskalGeneratedMaze.webm|thumb|An animation of generating a 30 by 20 maze using Kruskal&#039;s algorithm.]]&lt;br /&gt;
This algorithm is a randomized version of [[Kruskal&#039;s algorithm]].&lt;br /&gt;
&lt;br /&gt;
# Create a list of all walls, and create a set for each cell, each containing just that one cell.&lt;br /&gt;
# For each wall, in some random order:&lt;br /&gt;
## If the cells divided by this wall belong to distinct sets:&lt;br /&gt;
### Remove the current wall.&lt;br /&gt;
### Join the sets of the formerly divided cells.&lt;br /&gt;
&lt;br /&gt;
There are several data structures that can be used to model the sets of cells.  An efficient implementation using a [[disjoint-set data structure]] can perform each union and find operation on two sets in nearly constant [[amortized time]] (specifically, &amp;lt;math&amp;gt;O(\alpha(V))&amp;lt;/math&amp;gt; time; &amp;lt;math&amp;gt;\alpha(x) &amp;lt; 5&amp;lt;/math&amp;gt; for any plausible value of &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;), so the running time of this algorithm is essentially proportional to the number of walls available to the maze.&lt;br /&gt;
&lt;br /&gt;
It matters little whether the list of walls is initially randomized or if a wall is randomly chosen from a nonrandom list, either way is just as easy to code.&lt;br /&gt;
&lt;br /&gt;
Because the effect of this algorithm is to produce a minimal spanning tree from a graph with equally weighted edges, it tends to produce regular patterns which are fairly easy to solve.&lt;br /&gt;
&lt;br /&gt;
=== Randomized Prim&#039;s algorithm ===&lt;br /&gt;
[[File:MAZE 30x20 Prim.ogv|thumb|upright=1.6|An animation of generating a 30 by 20 maze using Prim&#039;s algorithm.]]&lt;br /&gt;
This algorithm is a randomized version of [[Prim&#039;s algorithm]].&lt;br /&gt;
&lt;br /&gt;
# Start with a grid full of walls.&lt;br /&gt;
# Pick a cell, mark it as part of the maze. Add the walls of the cell to the wall list.&lt;br /&gt;
# While there are walls in the list:&lt;br /&gt;
## Pick a random wall from the list. If the cell on the opposite side isn&#039;t in the maze yet:&lt;br /&gt;
### Make the wall a passage and mark the cell on the opposite side as part of the maze.&lt;br /&gt;
### Add the neighboring walls of the cell to the wall list.&lt;br /&gt;
## Remove the wall from the list.&lt;br /&gt;
&lt;br /&gt;
Like the depth-first algorithm, it will usually be relatively easy to find the way to the starting cell, but hard to find the way anywhere else.&lt;br /&gt;
&lt;br /&gt;
Note that simply running classical Prim&#039;s on a graph with random weights would create mazes stylistically identical to Kruskal&#039;s, because they are both minimal spanning tree algorithms.  Instead, this algorithm introduces stylistic variation because the edges closer to the starting point have a lower effective weight.&lt;br /&gt;
&lt;br /&gt;
==== Modified version ====&lt;br /&gt;
Although the classical Prim&#039;s algorithm keeps a list of edges, for maze generation we could instead maintain a list of adjacent cells.  If the randomly chosen cell has multiple edges that connect it to the existing maze, select one of these edges at random.  This will tend to branch slightly more than the edge-based version above.&lt;br /&gt;
&lt;br /&gt;
==Recursive division method==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; align=&amp;quot;right&amp;quot;&lt;br /&gt;
|+ &#039;&#039;&#039;Illustration of Recursive Division&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;110px&amp;quot; | &#039;&#039;original chamber&#039;&#039;&lt;br /&gt;
! width=&amp;quot;110px&amp;quot; | &#039;&#039;division by two walls&#039;&#039;&lt;br /&gt;
! width=&amp;quot;110px&amp;quot; | &#039;&#039;holes in walls&#039;&#039;&lt;br /&gt;
! width=&amp;quot;110px&amp;quot; | &#039;&#039;continue subdividing...&#039;&#039;&lt;br /&gt;
! width=&amp;quot;110px&amp;quot; | &#039;&#039;completed&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | [[Image:Chamber.png|101px]]&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | [[Image:Chamber division.png|101px]]&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | [[Image:Chamber divided.png|101px]]&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | [[Image:Chamber subdivision.png|101px]]&lt;br /&gt;
| align=&amp;quot;center&amp;quot; | [[Image:Chamber finished.png|101px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Mazes can be created with &#039;&#039;recursive division&#039;&#039;, an algorithm which works as follows: Begin with the maze&#039;s space with no walls. Call this a chamber. Divide the chamber with a randomly positioned wall (or multiple walls) where each wall contains a randomly positioned passage opening within it. Then recursively repeat the process on the subchambers until all chambers are minimum sized. This method results in mazes with long straight walls crossing their space, making it easier to see which areas to avoid.&lt;br /&gt;
&lt;br /&gt;
For example, in a rectangular maze, build at random points two walls that are perpendicular to each other. These two walls divide the large chamber into four smaller chambers separated by four walls. Choose three of the four walls at random, and open a one cell-wide hole at a random point in each of the three. Continue in this manner recursively, until every chamber has a width of one cell in either of the two directions.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Simple algorithms ==&lt;br /&gt;
[[File:Prim Maze 3D.svg|right|thumb|300px|3D version of Prim&#039;s algorithm. Vertical layers are labeled 1 through 4 from bottom to top. Stairs up are indicated with &amp;quot;/&amp;quot;; stairs down with &amp;quot;\&amp;quot;, and stairs up-and-down with &amp;quot;x&amp;quot;. Source code is included with the image description.]]&lt;br /&gt;
Other algorithms exist that require only enough memory to store one line of a 2D maze or one plane of a 3D maze. They prevent loops by storing which cells in the current line are connected through cells in the previous lines, and never remove walls between any two cells already connected.&lt;br /&gt;
&lt;br /&gt;
Most maze generation algorithms require maintaining relationships between cells within it, to ensure the end result will be solvable. Valid simply connected mazes can however be generated by focusing on each cell independently. A binary tree maze is a standard orthogonal maze where each cell always has a passage leading up or leading left, but never both. To create a binary tree maze, for each cell flip a coin to decide whether to add a passage leading up or left. Always pick the same direction for cells on the boundary, and the end result will be a valid simply connected maze that looks like a [[binary tree]], with the upper left corner its root.&lt;br /&gt;
&lt;br /&gt;
A related form of flipping a coin for each cell is to create an image using a random mix of forward slash and backslash characters. This doesn&#039;t generate a valid simply connected maze, but rather a selection of closed loops and unicursal passages.  (The manual for the [[Commodore 64]] presents a BASIC program using this algorithm, but using [[PETSCII]] diagonal line graphic characters instead for a smoother graphic appearance.)&lt;br /&gt;
&lt;br /&gt;
== Cellular automaton algorithms ==&lt;br /&gt;
Certain types of [[cellular automata]] can be used to generate mazes.&amp;lt;ref name=ca&amp;gt;{{cite web|url=http://www.conwaylife.com/wiki/index.php?title=Maze|title=Maze - LifeWiki |author=[http://www.conwaylife.com/wiki/index.php?title=User:Nathaniel Nathaniel Johnston] &#039;&#039;et al&#039;&#039; |date=21 August 2010 |publisher=LifeWiki |accessdate=1 March 2011}}&amp;lt;/ref&amp;gt; Two well-known such cellular automata, Maze and Mazectric, have rulestrings B3/S12345 and B3/S1234.&amp;lt;ref name=ca /&amp;gt; In the former, this means that cells survive from one generation to the next if they have at least one and at most five [[Moore neighbourhood|neighbours]]. In the latter, this means that cells survive if they have one to four neighbours. If a cell has exactly three neighbours, it is born. It is similar to [[Conway&#039;s Game of Life]] in that patterns that do not have a living cell adjacent to 1, 4, or 5 other living cells in any generation will behave identically to it.&amp;lt;ref name=ca /&amp;gt; However, for large patterns, it behaves very differently.&amp;lt;ref name=ca /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a random starting pattern, these maze-generating cellular automata will evolve into complex mazes with well-defined walls outlining corridors. Mazecetric, which has the rule B3/S1234 has a tendency to generate longer and straighter corridors compared with Maze, with the rule B3/S12345.&amp;lt;ref name=ca /&amp;gt; Since these cellular automaton rules are [[deterministic]], each maze generated is uniquely determined by its random starting pattern. This is a significant drawback since the mazes tend to be relatively predictable.&lt;br /&gt;
&lt;br /&gt;
Like some of the graph-theory based methods described above, these cellular automata typically generate mazes from a single starting pattern; hence it will usually be relatively easy to find the way to the starting cell, but harder to find the way anywhere else.&lt;br /&gt;
&lt;br /&gt;
==Python code example{{clarify|reason=Which algorithm does this code implement??|date=October 2014}}==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import numpy&lt;br /&gt;
from numpy.random import random_integers as rand&lt;br /&gt;
import matplotlib.pyplot as pyplot&lt;br /&gt;
&lt;br /&gt;
def maze(width=81, height=51, complexity=.75, density=.75):&lt;br /&gt;
    # Only odd shapes&lt;br /&gt;
    shape = ((height // 2) * 2 + 1, (width // 2) * 2 + 1)&lt;br /&gt;
    # Adjust complexity and density relative to maze size&lt;br /&gt;
    complexity = int(complexity * (5 * (shape[0] + shape[1])))&lt;br /&gt;
    density    = int(density * (shape[0] // 2 * shape[1] // 2))&lt;br /&gt;
    # Build actual maze&lt;br /&gt;
    Z = numpy.zeros(shape, dtype=bool)&lt;br /&gt;
    # Fill borders&lt;br /&gt;
    Z[0, :] = Z[-1, :] = 1&lt;br /&gt;
    Z[:, 0] = Z[:, -1] = 1&lt;br /&gt;
    # Make aisles&lt;br /&gt;
    for i in range(density):&lt;br /&gt;
        x, y = rand(0, shape[1] // 2) * 2, rand(0, shape[0] // 2) * 2&lt;br /&gt;
        Z[y, x] = 1&lt;br /&gt;
        for j in range(complexity):&lt;br /&gt;
            neighbours = []&lt;br /&gt;
            if x &amp;gt; 1:             neighbours.append((y, x - 2))&lt;br /&gt;
            if x &amp;lt; shape[1] - 2:  neighbours.append((y, x + 2))&lt;br /&gt;
            if y &amp;gt; 1:             neighbours.append((y - 2, x))&lt;br /&gt;
            if y &amp;lt; shape[0] - 2:  neighbours.append((y + 2, x))&lt;br /&gt;
            if len(neighbours):&lt;br /&gt;
                y_,x_ = neighbours[rand(0, len(neighbours) - 1)]&lt;br /&gt;
                if Z[y_, x_] == 0:&lt;br /&gt;
                    Z[y_, x_] = 1&lt;br /&gt;
                    Z[y_ + (y - y_) // 2, x_ + (x - x_) // 2] = 1&lt;br /&gt;
                    x, y = x_, y_&lt;br /&gt;
    return Z&lt;br /&gt;
&lt;br /&gt;
pyplot.figure(figsize=(10, 5))&lt;br /&gt;
pyplot.imshow(maze(80, 40), cmap=pyplot.cm.binary, interpolation=&#039;nearest&#039;)&lt;br /&gt;
pyplot.xticks([]), pyplot.yticks([])&lt;br /&gt;
pyplot.show()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Maze solving algorithm]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://www.jamisbuck.org/presentations/rubyconf2011/index.html Jamis Buck: HTML 5 Presentation with Demos of Maze generation Algorithms]&lt;br /&gt;
* [http://www.astrolog.org/labyrnth/algrithm.htm#perfect Think Labyrinth: Maze algorithms] (details on these and other maze generation algorithms)&lt;br /&gt;
* [http://www.martinfoltin.sk/mazes Maze Generation ] - Master&#039;s Thesis (Java Applet enabling users to have a maze created using various algorithms and human solving of mazes)&lt;br /&gt;
* [http://rosettacode.org/wiki/Maze Collection of maze generation code] in different languages in Rosetta Code&lt;br /&gt;
* [http://totologic.blogspot.com/2013/04/maze-generation-in-3d.html Maze generation and navigation in 3D]&lt;br /&gt;
* [http://totologic.blogspot.com/2014/09/triangulated-circular-maze-generation.html Triangulated circular maze generation] with Daedalus Lib&lt;br /&gt;
&lt;br /&gt;
[[Category:Mazes]]&lt;br /&gt;
[[Category:Algorithms]]&lt;br /&gt;
[[Category:Random graphs]]&lt;br /&gt;
[[Category:Articles with example Python code]]&lt;/div&gt;</summary>
		<author><name>ChelseyBianco</name></author>
	</entry>
</feed>