Practice
Resources
Contests
Online IDE
New
Free Mock
Events New Scaler
Practice
Improve your coding skills with our resources
Contests
Compete in popular contests with top coders
logo
Events
Attend free live masterclass hosted by top tech professionals
New
Scaler
Explore Offerings by SCALER

Probability

Go to Problems

Random Variables

Definition:

A random variable is a variable whose possible values are numerical outcomes of a random phenomenon. There are two types of random variables, discrete and continuous.

Types of Data or Types of Random Variables – Fake Professor

Discrete Random Variables:

A discrete random variable can take only a finite number of distinct values. For example, attendance of a class on any given day,  the number of patients in a doctor's surgery, the number of defective light bulbs in a box of 10, etc.

The probability distribution of a discrete random variable is a list of probabilities associated with each of its possible values. It is also sometimes called the probability function or the probability mass function.

Suppose a random variable X may take k different values, with the probability that X = xi defined to be P(X = xi) = pi. The probabilities pi must satisfy the following:

 

  • 0 < pi < 1 for each i
  • p1 + p2 + ... + pk = 1.

 

 

Continuos Random Variables:

A continuous random variable can take an infinite number of possible values. Continuous random variables are usually measurements, numerical interpretations of phenomenons. Examples include height, weight, the amount of sugar in an orange, the time required to run a mile.

Suppose a random variable X may take all values over an interval of real numbers. Then the probability that X is in the set of outcomes A, P(A), is defined to be the area above A and under a curve. The curve, which represents a function p(x), must satisfy the following:

1: The curve has no negative values (p(x) > 0 for all x)

2: The total area under the curve is equal to 1.

 

Serious about Learning Data Science and Machine Learning ?

Learn this and a lot more with Scaler's Data Science industry vetted curriculum.
Conditional probability
Problem Score Companies Time Status
Probability of Raining 30
9:56
How can he win? 30
BCG
7:37
White Marble Probability 30 3:19
Boy or girl paradox 30
5:10
Is it a queen? 30
4:27
Bayes theorem
Normal and continuous distribution
Problem Score Companies Time Status
Distribution Percentage 30 5:07
Random variables
Problem Score Companies Time Status
Product probability 30
10:54
Random variable's probability 30
6:22
New variance 30
6:59
Toss random variable 30
2:08
Probability distributions
Problem Score Companies Time Status
Standard deviation 30
2:37
Probability Distribution 50
20:26
Free Mock Assessment
Fill up the details for personalised experience.
All fields are mandatory
Current Employer *
Enter company name *
Graduation Year *
Select an option *
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
Phone Number *
OTP will be sent to this number for verification
+1 *
+1
Change Number
Phone Number *
OTP will be sent to this number for verification
+1 *
+1
Change Number
Graduation Year *
Graduation Year *
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
*Enter the expected year of graduation if you're student
Current Employer *
Company Name *
Please verify your phone number
Edit
Resend OTP
By clicking on Start Test, I agree to be contacted by Scaler in the future.
Already have an account? Log in
Free Mock Assessment
Instructions from Interviewbit
Start Test