Random Variable

  • date 25th June, 2019 |
  • by Prwatech |
  • 0 Comments

Random Variable Tutorial

 

Random Variable Tutorial, Welcome to the world of Statistics and Probability in Data science. In the previous section, we have learned about standard deviation and how it calculates. Now, we will talk about a random variable in data science.

 

In Data Science, there are many chances that data may affect as data enters from the random sample; standard data error in mean, data is affected by measurement error or data in an outcome which is random. Being an expert Data analyst, it is necessary to have the capability to know where the random variables are generating. If you want to become an expert in Data Science, then get trained from Prwatech, the world’s largest E-learning platform.

 

So, Let’s start our Random Variable tutorial..

 

What is a Random Variable?

 

A random variable is a variable where value is unknown or a function that assigns values to every of an experiment’s outcomes. They are often designated by letters. Random variables can be classified as discrete which are variables that have specific values and continuous which are variables that can have any values within a continuous range.

 

Random Variable tutorial

 

Random variables are often used in econometric or regression analysis to determine statistical relationships among one another. It is different from an algebraic variable. The variable in the algebraic equation is an unknown value that could be calculated.

 

The equation 12 + x = 13 denotes that we can calculate the specific value for x which is 1. Whereas a random variable has a set of values, and any of those values can be the resulting outcome as seen in the example of the dice above.

 

►Tossing a Coin and Throwing a Dice.

 

Different Types of Random Variables

 

There are mainly two types of Random Variables.

 

Discrete Random Variable

 

As the name Suggest, Discrete random variables consist of distinct or discrete unique values. It takes a countable number of distinct values.Now, Consider in an experiment where a coin is tossed five times.

 

If X represents a number of times that coin comes up heads, then X is a discrete random variable that can only have the values 0, 1, 2, 3,4,5. No other value is possible for X.

 

Discrete Random Variable Example

 

  ♦ Tossing a Coin

Here the number of outcomes that can occur is either a Head or a Tail. Hence we can denote Head, Tail as Random variables as they are distinct in nature.

 

Continuous Random Variable

 

An example of a continuous random variable can be an experiment that involves measuring the amount of rainfall in a city over a year or the average height of a random group of 25 people.

 

Continuous Random Variable Example

 

►Heights of people playing Basketball.

 

Here Height can be any value between 4 feet’s to 7 feet’s respectively.

 

Example of Random Variable

 

Random variables allow us to ask questions in a mathematical way. If we flip 5 coins and want to answers questions like What is the probability of getting exactly 3 heads, less than 4 heads and getting more than 1 head?

 

Then our general way of writing would be: P (Probability of getting exactly 3 heads when we flip a coin 5 times, less than 4 heads when we flip a coin 5 times and getting more than 1 head when we flip a coin 5 times). But if we use random variables ‘X’ to represent the above questions then we would write: P(X=3), P(X<4) and P(X>1).

 

In this Random Variable tutorial, we have covered concepts of what is a random variable in data science, its uses, random variable formula, types of random variables with examples. This will get you a clear idea about Random Variable probability in Data Science.

 

Interested in learning more. Do you want to get in-depth knowledge in Data science or Do you want to become an expert in Data Science – Get enroll now with Data Science Training institute in Bangalore and get the training under 15+ years experienced trainers.

 

We hope you liked our article on the Random Variable tutorial with examples. Share your feedback with your comments.

 

 

 

 

 

 

 

0
0

Quick Support

image image