0% found this document useful (0 votes)
93 views1 page

Q function and error function: e dx= √ π e dx= a

The document defines the Q-function and its relationship to the error function used in Matlab. The Q-function is used to calculate the tail probability of a normal distribution. It is a monotonically decreasing function with known bounds. Matlab does not have a built-in Q-function, but it can be calculated from the error function using the relations Q(α) = 1/2 * (1 - erf(√(2/2)α)) or √(erf(α)) = 1 - 2Q(√(2)α). The Q-function gives the probability that a normally distributed variable is above or below its expected value by a given amount.

Uploaded by

Mohamed Fawzi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views1 page

Q function and error function: e dx= √ π e dx= a

The document defines the Q-function and its relationship to the error function used in Matlab. The Q-function is used to calculate the tail probability of a normal distribution. It is a monotonically decreasing function with known bounds. Matlab does not have a built-in Q-function, but it can be calculated from the error function using the relations Q(α) = 1/2 * (1 - erf(√(2/2)α)) or √(erf(α)) = 1 - 2Q(√(2)α). The Q-function gives the probability that a normally distributed variable is above or below its expected value by a given amount.

Uploaded by

Mohamed Fawzi
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Last version available at www.eng.tau.ac.

il/jo/teaching

Q function and error function


We rst note that

ex dx =

ax2 2

dx =

2 a

For our needs in Digital Communication course, we dene: 1 Q()= 2


x2 2

dx

The Q() function is monotonically decreasing. Some features: Q() = 1 ; Q(0) = 1 2 ; Q() = 0 ; Q(x) = 1 Q(x)

Known bounds (valid for x > 0): 1 1 1 2 2 1 2 ex /2 < Q(x) < ex /2 x 2x 2x 1 x2 /2 Q(x) e 2 Matlab does not have a build-in function for Q(). Instead, we use its erf function:
2 erf()=

ex dx

Note that erf function is dened over [0, ) only, and erf(0) = 0 ; erf() = 1

The relations between the two functions are Q() = 1 1 erf 2 2 2 ; erf() = 1 2Q( 2)

If we have a normal variable X N (, 2 ), the probability that X > x is Pr{X > x} = Q x

Now, if we want to know the probability of X to be away from its expectation by at least a (either to the left or to the right) we have: Pr{X > + a} = Pr{X < a} = Q a

a The probability to be away from the center where we dont matter in which direction is 2 Q( ).

This version compiled on April 6, 2006

You might also like