Random variable and elementary events

In summary, a random variable is a numerical outcome of a random process, which can take on different values based on the occurrence of certain events. Elementary events are the simplest possible outcomes of a random experiment that cannot be broken down further. Together, random variables and elementary events form the foundation of probability theory, allowing for the quantification and analysis of uncertainty in various contexts.
  • #1
fog37
1,569
108
TL;DR Summary
Trying to understand why a random variables assigns a unique value only to elementary events and not to composite events
Hello,
A sample space is the set of all possible elementary events. A random "variable" is really a real-valued function that associates a single real number to every elementary events. For example, in the case of a fair die, the sample space is ##\Omega={1,2,3,4,5,6}##. Each number is an elementary event.
A composite event would be, for example, the outcome being larger than 3: composite event {4,5,6}. Couldn't a random variable also apply to composite events like this? Or does it only assign numbers to elementary events?

When we launch two fair dies, the space of the events is
1703883177004.png

In this case, each pair is an elementary event and the numbers represent the number on the face of each die. A random variable could be defined in different ways, for example X could be the sum of the numbers on the two faces. Or the product, etc.

The sum of two numbers or their product, etc. are not elementary events in themselves but a concept applied to the elementary event. The elementary event is (1;1). The random variable is "their sum", "their product", etc., correct?

Thank you!
 

Attachments

  • 1703883171477.png
    1703883171477.png
    2.7 KB · Views: 64
Physics news on Phys.org
  • #2
fog37 said:
TL;DR Summary: Trying to understand why a random variables assigns a unique value only to elementary events and not to composite events

Hello,
A sample space is the set of all possible elementary events. A random "variable" is really a real-valued function that associates a single real number to every elementary events. For example, in the case of a fair die, the sample space is ##\Omega={1,2,3,4,5,6}##. Each number is an elementary event.
Are you making these definitions up on your own? They are very limited and incorrect.
From Wikipedia: Random Variable:
"In the formal mathematical language of measure theory, a random variable is defined as a measurable function from a probability measure space (called the sample space) to a measurable space."
fog37 said:
A composite event would be, for example, the outcome being larger than 3: composite event {4,5,6}. Couldn't a random variable also apply to composite events like this? Or does it only assign numbers to elementary events?
This is not an issue for the correct definition of a random variable. Your definition is too limited and misleading in this case.
 
  • #3
In the context of your question, part of the definition of a probability space is a ##\sigma## algebra which defines all measurable subsets of the sample space. For finite sample spaces, like a roll of a dice, this usually is the power set of the sample space. So it would include each of the individual numbers, but also subsets such as odd numbers or numbers greater than 4.
 
  • Like
Likes fog37
  • #4
fog37 said:
A sample space is the set of all possible elementary events. A random "variable" is really a real-valued function that associates a single real number to every elementary events. For example, in the case of a fair die, the sample space is ##\Omega={1,2,3,4,5,6}##. Each number is an elementary event.
A composite event would be, for example, the outcome being larger than 3: composite event {4,5,6}. Couldn't a random variable also apply to composite events like this? Or does it only assign numbers to elementary events?
For the random variable (call it X) that you describe, each sample of X will only give you only one specific number. To deal with larger sets of numbers, you just ask for the probability that X is in {4,5,6}.
 
  • Like
Likes fog37 and Hornbein
  • #5
Thank you. I understand that my definition of random variable is quite basic and primitive, but hopefully pragmatic.
As mentioned, the random variable ##X## is really a function that maps an elementary event in the sample space to a (positive or negative) number. That assigned number can then be associated to another number which is its probability $$P$$. The example below shows the sample space we get from throwing two fair and independent dices. In this case, the random function ##X## is defined as "add the numbers on the faces on the two dices and assign the result to the elementary event". So event ##(1,1)## get ##X=2##.
1703980025890.png

  • It is worth noticing that a random variable ##X## can be a many-to-one function: multiple elementary events can in fact be mapped to the same number (ex: ##X=4##). The numbers 2 or 4 are just two of the possible several realizations of the so defined random variable.
  • Given the same sample space composed of the same elementary events/outcomes, mothing prevents us from defining the random variable differently. For example, as "multiply the numbers of the dices faces and assign the result to the event"....
On a different note, I was thinking again about a binomial experiments with a single coin where we toss the coin several times. Does each trial/toss represent a different realization of the same random variable ##X## (which has uniform probability distribution) or is each trial a realization of a different and independent random variable with uniform distribution? How do we determine this?
In general, the random variable defined in this type of experiment is "the total number of heads obtained during the ##N## tosses". This r.v. would be a binomial r.v.

Thank you!
 
  • #6
fog37 said:
Thank you. I understand that my definition of random variable is quite basic and primitive, but hopefully pragmatic.
I don't think that it is pragmatic to invent personal definitions for standard terms that already have clear definitions.
 
  • Like
Likes fog37
  • #8
Your example should be thought of as having more than one random variable. You can think of the selection of two numbers as taking two independent samples of a uniform random variable, U, on {1,2,3,4,5,6}. Call those samples U1 and U2. Then you have another random variable, X = U1 + U2 with the probabilities you show in post #5.
This is a very common scenario.
 
  • #9
Well, you can always use Wikipedia before making up your own meanings:

https://en.m.wikipedia.org/wiki/Probability_space

What you call an elementary event is an outcome, which is an element of the sample space. What you call a composite event is simply part of the event space and is just called an event.

The event space includes all of your elementary events and composite events together. It has to include both since the event space must be closed under unions, intersections, and complements. Separating them as you have done breaks this important mathematical feature. For example, the complement of an elementary event is not an elementary event. So elementary events and composite events must be kept as parts of the same space.
 
  • #10
fog37 said:
I know what you mean. But my intro to probability textbook does not give the rigorous definition "...a random variable is defined as a measurable function from a probability measure space (called the sample space) to a measurable space."
Ha! That's probably right. A simpler definition is nice. You should get used to using the simpler definition to give precise definitions for more complicated problems. Compare your original post with the description I gave in post #8: "taking two independent samples of a uniform random variable, U, on {1,2,3,4,5,6}. Call those samples U1 and U2. Then you have another random variable, X = U1 + U2"
That is routine, using standard, simple definitions. You will quickly get good at things like that and they are very common.
 

FAQ: Random variable and elementary events

What is a random variable?

A random variable is a numerical outcome of a random phenomenon. It is a function that assigns a real number to each outcome in the sample space of a random experiment. Random variables can be discrete, taking on a finite or countable number of values, or continuous, taking on an infinite number of values within a given range.

What is the difference between a discrete and a continuous random variable?

A discrete random variable can take on a finite or countably infinite set of values, such as the number of heads in a series of coin flips. A continuous random variable, on the other hand, can take on any value within a given range, such as the exact height of a person. The key difference lies in the type of values each can assume: discrete variables take distinct, separate values, while continuous variables take any value within a continuum.

What is an elementary event?

An elementary event, also known as an atomic event, is a single outcome of a random experiment. It represents the most basic possible outcome, which cannot be decomposed into simpler events. For example, in a dice roll, an elementary event could be rolling a 3.

How is the probability of a random variable calculated?

The probability of a random variable is calculated using a probability distribution, which assigns probabilities to the possible values of the random variable. For discrete random variables, this is often represented by a probability mass function (PMF), while for continuous random variables, it is represented by a probability density function (PDF). The probabilities must sum to 1 for discrete variables or integrate to 1 for continuous variables.

What is the expected value of a random variable?

The expected value of a random variable, also known as the mean, is a measure of the central tendency of the distribution of the variable. It is calculated as the weighted average of all possible values the variable can take, with the weights being their respective probabilities. For a discrete random variable, it is the sum of the product of each value and its probability. For a continuous random variable, it is the integral of the product of the value and its probability density function over the range of the variable.

Similar threads

Replies
5
Views
2K
Replies
10
Views
1K
Replies
2
Views
2K
Replies
30
Views
3K
Replies
12
Views
2K
Replies
12
Views
1K
Back
Top