Skip to main content
  • 6728 Accesses

Abstract

In the last chapter, we examined the probability distribution of discrete random variables. In this chapter, we will look at the probability distribution of random variables.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 139.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 179.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The detailed information about SAS PDF function can be found in the link http://v8doc.sas.com/sashtml/lgref/z0270634.htm#z0226403

  2. 2.

    The detailed information about SAS PDF function can be found in the link http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n0n7cce4a3gfqkn1vr0p1x0of99s.htm

Bibliography

  • Microsoft Inc. Excel 2013. Microsoft Inc., Redmond

    Google Scholar 

  • Lee CF, Lee JC, Lee AC (2013) Statistics for business and financial economics. Springer, New York

    Google Scholar 

  • Minitab Inc. Minitab 17. Minitab Inc., State College

    Google Scholar 

  • SAS Institute Inc. SAS 2014. SAS Institute Inc., Cary

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Appendices

Appendix 7.1: Excel Code—Normal Distribution

figure cf
figure cg
figure ch
figure ci
figure cj

Appendix 7.2: Excel Code—Uniform Distribution

figure ck
figure cl
figure cm

Appendix 7.3: QQ Plot

A QQ plot is a probability plot of quantiles of two distributions against each other. It is a graphical method for comparing two probability distributions . If the two distributions are similar, the points on the QQ plot will approximately lie on the line Y = X.

Below is an example to show you how to use Excel to graph a QQ plot. Assume we have gotten the JNJ stock return data. Data period is 1967–2011. We would like to compare this data and normal distribution.

figure cn

Here are the main steps to calculate the QQ plot:

Step 1: Select column B and choose Data → Sort A to Z.

figure co

After pressing the A to Z button and expanding the selection, we get the result like below:

figure cp

Step 2: Standardize the return data.

figure cq

The formula for standardized return in cell C4 is

$$ =\frac{\left(\mathrm{B}2-\mathrm{AVERAGE}\left(\$\mathrm{B}\$2:\$\mathrm{B}\$46\right)\right)}{\mathrm{STDEV}\left(\$\mathrm{B}\$2:\$\mathrm{B}\$46\right)} $$

Step 3: Construct the sample number column E.

figure cr

Step 4: Use the number of Step 3 to calculate the cumulative distribution function (CDF).

figure cs

The CDF formula in the cell F2 is

$$ =\frac{\mathrm{E}2}{\left(\mathrm{COUNT}\left(\$\mathrm{E}\$2:\$\mathrm{E}\$46\right)+1\right)} $$

Step 5: Use NORMSINV function to z of column F.

figure ct

The formula of z in cell G2 is

$$ =\mathrm{NORMSINV}\left(\mathrm{F}2\right) $$

Step 6: Use columns G, z and z, to chart a benchmark line, and use column C and column G, standard return and z, to graph a comparative line.

figure cu

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Lee, CF., Lee, J., Chang, JR., Tai, T. (2016). The Normal and Lognormal Distributions. In: Essentials of Excel, Excel VBA, SAS and Minitab for Statistical and Financial Analyses. Springer, Cham. https://doi.org/10.1007/978-3-319-38867-0_7

Download citation

Publish with us

Policies and ethics