Probability Distribution Function for a Single Variable
One of the most important concepts in Finance is the concept of a random variable. For example this can be viewed as the outcome of throwing a die where the process is fixed by the outcome is not.
Form the definition of a random variable is derived the definition of the distribution function which is the probability that the final value of the random variable is less than equal to a given number. The other word for this term is cumulative distribution function.
Where is the cumulative distribution function
There are two possibilities in this case. When the variable takes discrete values and when it is continuous in nature. In case the variable is discrete in nature the distribution is obtained by summing the step values less than or equal to the reference number and the function that defines this variable is called the frequency function or the probability density function. When the variable is continuous in nature this is obtained by taking the integral of the probability density function over all possible values until the reference number. The probability density function is then the derivative of the first derivative of the distribution function with respect to the variable.
For the discrete case:
For the continuous case:
In the continuous case the integral of the probability density function from negative infinity to complete infinity will be 1.
If the cumulative distribution function is integrated over the complete range of values from -∞ to +∞ then it should be equal to 1.
Example of Density Functions (for the discrete case)
Take a case of rolling two dice at once. Since there are six faces on one side of the dice the total number of outcomes of the total of the addition of the two numbers that can appear on each face of the dice is 6*6=36. The range of final result is from 2-12 with varied frequencies representing the number of times each outcome can happen. The probability of each outcome is the frequency of each outcome divided by the total number of outcomes possible. The addition of all these probabilities should of course be 1. For any outcome the cumulative probability is the sum of the probabilities for each outcome lesser and equal to that outcome.
This is very useful in finance because the same approach can be applied to financial information like stock quotes, foreign exchange rates, commodity prices and exchange rates etc.
Data Science in Finance: 9-Book Bundle
Master R and Python for financial data science with our comprehensive bundle of 9 ebooks.
What's Included:
- Getting Started with R
- R Programming for Data Science
- Data Visualization with R
- Financial Time Series Analysis with R
- Quantitative Trading Strategies with R
- Derivatives with R
- Credit Risk Modelling With R
- Python for Data Science
- Machine Learning in Finance using Python
Each book includes PDFs, explanations, instructions, data files, and R code for all examples.
Get the Bundle for $29 (Regular $57)Free Guides - Getting Started with R and Python
Enter your name and email address below and we will email you the guides for R programming and Python.