1. Random Process

It is better to think of a random process in terms of a function rather than a variable.

In a random function, say,
random(x)
, \(x\) is the sample space of random outcomes that are possible after performing a certain stochastic process such as tossing a fair coin. 
Let’s say we are tossing a pair of coins. The outcome does not have to be a number. It can be heads or tails. However, the number of possible outcomes lies in a certain range, say,
range(x)
.

\(x\) outputs an outcome from
range(x)
using a probability distribution that represents a likelihood of occurrences of events within the sample space. 
In the above cointossing experiment, the sum of the probabilities of all outcomes should add up to 1 because a coin toss will always yield some output.
\(P_{\text{1 or 2 or 3 or 4}} = P_1 + P_2 + P_3 + P_4 = 1\)

\(x\) can be discrete or continuous.
1.1. Discrete random variable

A discrete random variable can take distinct or separate values.

Discrete random variable is countably infinite

A coin toss

The year that a random student in a school was born

The number of mosquitos born yesterday on earth

Winning time of random athletes to the nearest 2 decimals

The number of cars passing at a certain junction at a certain time

A discrete random variable can be countable finite or approach infinite values. At least you can list a few specific values.

The probability distribution of a discrete random variable is called Probability Mass Function (PMF)
1.2. Continuous random variable

A continuous random variable can take any value in an interval.

Continuous random variable is uncountably infinite

Even if you could find a range of this mass, the exact mass of a certain organism at a given time could have several decimal points…

Precisely exact winning time of random athletes

Temperature of a random place in a year measured at a high precision

A realworld example of a true case of a continuous random variable is rare.

A continuous random variable can be uncountable infinite values. You cannot list a few specific values.

The probability distribution of a continuous random variable is called Probability Density Function (PDF)

Each variable can take on a different value from a probability distribution.

A random process can be discrete or continuous depending on whether its member variables are discrete or continuous.
1.3. Gambler’s Ruin
Example 1 

A gambler has KES 500. They can only bet in increments of KES 100. They can only win or lose KES 100 per bet. They will keep gambling until they either lost all their money (KES 0) or win KES 1000. Simulate this gambling situation. 
Solution:
\[\text{gambling outcome, } x =
\begin{cases}
\text{Win KES 100 (P = 50%)} &= [+100] \\
\text{Lose KES 100 (P = 50%)} &= [100]
\end{cases}\]

Figure 1. Gambler’s ruin output.

Add Comment
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
 Your name, rating, website address, town, country, state and comment will be publicly displayed if entered.
 Aside from the data entered into these form fields, other stored data about your comment will include:
 Your IP address (not displayed)
 The time/date of your submission (displayed)
 Your email address will not be shared. It is collected for only two reasons:
 Administrative purposes, should a need to contact you arise.
 To inform you of new comments, should you subscribe to receive notifications.
 A cookie may be set on your computer. This is used to remember your inputs. It will expire by itself.
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
 Although the administrator will attempt to moderate comments, it is impossible for every comment to have been moderated at any given time.
 You acknowledge that all comments express the views and opinions of the original author and not those of the administrator.
 You agree not to post any material which is knowingly false, obscene, hateful, threatening, harassing or invasive of a person's privacy.
 The administrator has the right to edit, move or remove any comment for any reason and without notice.
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Comments