Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
24 views
Random Variable
Uploaded by
Sahher Abbas
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save random variable For Later
Download
Save
Save random variable For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
24 views
Random Variable
Uploaded by
Sahher Abbas
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save random variable For Later
Carousel Previous
Carousel Next
Save
Save random variable For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 11
Search
Fullscreen
7.1. Introduction Every random experiment results in two or more outcomes and usually the interest is in a particular aspect of the outcomes of the experiment. For example, hen a pair of dice is thrown, the interest may be in the total of upturned dots on both dice. In case of this experiment, the total may be 2 (one on each die), 3 (one on the first die and two on the other) and so on. It may be 4, 5, 6, 7, 8, 9, 10, 11 or 12. In the language of probability, these values associated with outcomes are the values of a so-called random variable. An other example is the total number of children in each of the fifty randomly chosen families. If no family has more than 5 children then the values of this random variable ie., number of children in each family, would be 0,1,2.3.4,5 ic, no child, one child, two children, 3 children, 4 children and five children respectively, A variable whose values depend upon the outcomes of a random experiment is called a random variable. We will denote the random variable by the capital letters X, Yor Zand their values by the corresponding small letters x, y or z. Example 7.1 : Let a pair of dice be thrown and Y denote the random variable that is the sum of uptumed values on the two dice. There are 36 outcomes and Y assigns to the outcome (1, 1) the real number | + 1 =2. It assigns to the outcome (2, 1), the real number 2 + 1=3 and so on upiil the outcome (6, 6), the real number 6 + 6 = 12:so, the values assigned are 2,3,4,5,6,7,8,9,10,11 and 12. 7.2 Random numbers and their generation Random numbers are a sequence of digits from the set {0, 1,2,....,9}. Sothat, at each position in the sequence, each digit has the same probability 0.1 of being selected irrespective of the actual sequence, so far constructed, ‘The probability is 0.1because out of ten digits {0, 1, 2, ...., 9} each digit has equal probability i.e., 1/10 or 0.1. These are also known as random digits. The simplest ways of achieving such numbers are games of chance such as dice, coins, cards or by repeatedly drawing numbered slips out of a hat. These are usually grouped purely for convenience of reading but this would become very tedious for long runs of each digits. Fortunately tables of random digits are no w widely available (see table 7.1), For implementation on computers to provide sequences of such digits easily and quickly, the most common methods are called Pseudo random techniques. Here, digits will re-appear in the same order (i.¢., cycle) eventually but for a good technique the cycle might be tens of thousands of digits long. Of course the Pseudo random digits as the title says, are not truly random. In fact, they are completely deterministic but they do exhibit most of the properties of random digits. Generally, these methods involve the recursive formula 2s Xn = ax, +(mod m); n = 0,1,2,3,.. Ay Here a, 6 and m are suitably-chosen integer constants and the seed x, (a starting number) is an integer. By mod m we means that if the answer is greater than ‘m, then divide it by m and keep the remainder as a random number. Use of this formula gives rise to a sequence of integers each of which-is the range 0 to m-1. We simply run these together to give our sequence of pseudo random digits. Clearly this to be of any value; m, a and / or b should be large. Example 7.2: Let a= 13, b= 0 and m= 16. Generate 4 random numbers. Solution: According t the relation Xi =ax, +b (mod 16) for n=0, 1, 2, . Let a seed x, be 5, then for n= 0, we haveee 13x,+b (mod 16) 13(5)+0 (mod 16) = 65 (mod 16) = I(dividing 65 by 16, the remainder is 1) For n = 1, we have, & 13()+0 (mod 16) 3 3(13)+ 0 (mod16) Similarly, for n = 3, we have, 13(9)+0 (mod16) =5 ¥ So, the random numbers are 1, 13, 9, 5. 7.3 Application of random numbers ‘The random numbers have widely applicability in the simulation techniques (also called Monte Carlo Methods) which have been applied to many problems in the various sciences and are useful in the situations where direct experimentation is not possible, the cost of conducting an experiment is very high or the experiment takes too much time. The random number tables are constructed from the random numbers where, the random numbers are grouped for the purposes of reading. ‘The groups may consist of 2-digit, 3-digit, 4-digit or S-digit sequence of random numbers (0, 1, 2,3, 4,5, 6, 7, 8,9). A five digit sequence of these are given in table 7.1. We may use this table for I-digit random numbers, 2-digit random numbers and so on uptil S-digit random numbers depending upon the situation by using it row-wise or column-wise.Chapter 7 189] Random Variables Table 7.1: Random NumbersTo explain the use of a random number table, consider the following example 73. Example 7.3: Count the number of heads and tails when a single coin is thrown 12 times without throwing @ coin. Solution: ‘The first step is to number both the heads and tails staying within 0 to 9. Let 0, 2, 4, 6, 8 (even numbers including zero) indicate heads and the odd numbers 1, 3, 5, 7, 9 represent tails. ‘The second step is to open the random number table given in table 7.1 and select arbitrarily a column, say column | and select arbitrarily a row say row 4 and start reading a set of I-digit ie., 4, 8,5, 7, 7,2, 5.0, 1,5, 9,4. Third step is to interpret them as H, H, T, T, T, T, H, T, H, T, T, T, Has was decided head for 0, 2, 4, 6, 8 and tail for 1, 3, 5, 7,9. So, there are 5 heads and 7 tails. These are given in the following frequency table. Outcome frequeney Head (one head) 5 | Tail (O head) 7 Similarly. to count the number of heads when two coins are thrown 20 times, the first step is to take two-digit random numbers. If both are even including zero, then both are heads; if both are odd then both are tails (0 head), and if one is even and one is odd then there is one head. The second step is to open the random number table and select arbitrarily a column say column 2 and select arbitrarily a row say row 2 and start reading two digit numbers ie., 24, 80, 76, 06, 52, 34, 92, 03, 92, 93, 28, 83, 15, 03, 91, 20, 52, 92, 59, 56. Thitd step is to interpret them as HH, HH, TH, HH, TH, TH, TH, HT, TH, TT, HH, HT, TT, HY, TT, HH, TH, TH, TT, TH. So the frequency table would beChapter 7 fol Random Variables Outcome | f Ohead 4 head ul 2head 5 Another method known as probability proportional to size (PPS) is used when we have information about the probabilities of the outcomes. Example 7.4: If a coin is thrown thrice or three coins are tossed once) then the number of heads may be 0 (all tails) 1, 2 and 3 and the corresponding relative frequencies would be as given in adjoining table. Find the sequence of the number ofheads | umber of heads | Probability 20 times without throwing a coin? a 0135 Solution: Here we use 3-digits random 1 0375 numbers because probabilities are given 2 0375 tothree decimals, 3 0.195 ‘The first step is to make a cumulative probabilities (c.p) column. The second step is to assign random numbers (r.no) from 0 to 999 because we have 3-digit probabilities. Note that in cach class the random number assigned iy one Jess than the number formed by the corresponding cumulative frequency. ‘The reason is that the random numbers are from.0 to 999 not from 1 to 1000. These are shown in the table 7.2. ‘Table 7.2: cumulative probabilities and range. Heads Prob. C rno. 0 0.125 0.125 000-124 Li, 0375 0.500 125-499 2 0375 0.875 500-874 3 0.125 1.000 875-999The third step is to open the random number table 7.1 and select arbitrarily a column, say column 4, and select arbitrarily a row, say row 2, the 3-digit random numbers are 41, 833, 789, 924, 976, 562, 635, 122, 793, 472, 993, 952, 309, 420, 676, 662, 390, 782, 348, 773 and the corresponding number of heads are 1,2, 2, 3, 3, 3.1, 1,2,2, 1,2, Land 2 441 indicates | head because it is in the class corresponding to | head. 833 indicates 2 heads because it isin the class corresponding to 2 heads. 789 indicates 2 heads because it is in the class corresponding to 2 heads. 924 indicates 3 heads because it is in the class corresponding to 3 heads and ‘so on, The corresponding frequency table is as given in table 7.3. ‘Table 7.3: Frequency Distribution 7 Heads | 0 gee 3 f 1 @ | oe 7.4 Concept of random variables and their construction from different fields. As we are familiar by now that random variables arise from the outcomes of réndom experiments by associating a value to each outcome. The following examples may help explain them in detail. Example 7.5: Consider an experiment in which three students in a class are asked to take one of the wo courses Biology (B) or Computer Science (C). Solution: Define the random variable ¥ by Y= The number of students taking computer science. ‘The possible values are No, student takes computer science so, y = 0 ‘One student takes computer science so, y = | ‘Two students take computer science so, y=2coe? I faton vr Three students take computer science so, y=3 ‘The possible outcomes of the experiment are: BBB first takes biology, second takes biology, third takes biology CBB first takes computer science, second takes biology third takes biology. BCB first takes biology, second takes computer science, third takes biology BBC first takes biology, second takes biology, third takes computer science, CCB first takes computer science, second takes computer science, third takes biology. CBC first takes computer science, second takes biology, third takes ‘computer science. BCC first takes biology, second takes computer science, third takes computer science. CCC first takes computer science, second takes computer science, third takes computer science. ‘These are represented as follows: BBB CBB BCB BBC CCB CBC BCC ccc o 1 1 Dey aeteei die mast Ps Note that the values of the random variable ¥ are isolated points 0, 1, 2 and 3. Example 7.6 : Consider an experiment of recording the time (minutes) taken by the customers to wait for its turn in a utility store while standing in a queue. Define the random variable ¥ where ¥ is the time taken by the customers. Solution: The first customer may take 5.0 minutes, the second may takes 6.0 minutes, the third may take 5.30 minutes, fourth may takes 12.0 minutes and so on. It may be noted that Y may take any value in an interval on a number line. 7.5 Discrete and continuous random variables ~ Discrete random variable A random variable is called discrete if the set of values it takes is a collection of isolated points on a real line ie, the sample space S is a discrete sample space‘The outcomes of an experiment are noted and the value of the random variable is a number appropriately assigned to each outcome by some rule. Example 7.7: Three coins are tossed and let the random variable ¥ denote the number of heads. Then the outcomes and the values of ¥ are given in adjoining table. ‘Outcomes Value of Y HHH 3 HHT a HTH 2 HTT 1 THH 2 THT 1 TTH 1 TIT 0 ‘The values of Y are whole numbers. So, the sample space is discrete. Thus ¥ is a discrete random variable. Example 7.5 above is also another example of discrete random variable. Continuous random variable: A random variable is called’ continuous if the set of values it takes is an entire interval on the number line i.e., the sample space S is continuous. ‘The outcomes of an experiment are represented by the points on a line and the value of the random variable is a number appropriately assigned to each point by some rule, Example 7.8: Consider the experiment of measuring the height of students in a | statistics class. If the minimum height of a student is 5.0 feet and the maximum height is 5.8 feet, then the variable Y the height of students, takes values between 5.0 | and 5.8 feet i¢,,in the interval 5.0 ~ 5.8 feet. Example 7.6 is also an example of a continuous random variable.tea) Ans on Page 257 71 =i) ii) ii) Define random variable and give an example to explain it. What are random numbers and how these are generated. Also give an example to explain their application. Ciassify each of the following random variables as either discrete or continuous. a) The number of pages in a book. b) The number of questions asked in an oral examination, ©) The life time of alight bulb. d) The amount of rainfall at a particular location during different months of 1996. 7.2 Generate the first 6 random digits using the pseudo-random number generator with m= 100, a=21,b=7, x= 10 7.3 Count the number of heads and tails when a single coin is tossed 10 times without throwing a coin. 74 Two coins are tossed. Let ¥ denotes the ¥ pm) number of heads, then the possible number of [0 025 heads and their corresponding probabilities are 1 0.50 given in the adjoining table 2 0.25 Find the sequence of number of heads 20 times without throwing a soin? 75 Let the digits 0, 1, 2, 3, 4 represent head and 5, 6, 7, 8, 9 represent tail, use random numbers to simulate 20 flips of a coin.7.6 Two students in a class are asked to take one of the two courses Mathematics (M) or Biology (B). Define the random variable Yas number of students taking Biology. Write down the possible outcomes and the values assigned by the random variable ¥. 7.7 Two coins are tossed and let the random variable y denote the number of heads. Write down the possible outcomes and the values assigned to the random variable. 78 There are three children in a family, Let the random variable denote the number of boys in a family. Write down the possible outcomes and the values assigned by the random variable assuming equal chances for boys and girls. 7.9 Four balls are drawn from @ bag containing 5 white and 3 black balls. If X denotes the number of white balls drawn, then write down the possible values of the random variable X. 7.10 Differentiate between discrete and continuous random variable and give an example of each. | TAI Fill in the blanks: i) Random numbers are by some Process, i) Random numbers are obtained in such a way that each digit has probability ii) Random variable is also called variable. iy) A random variable assuming only a finite number of values is called___ random variable. vy) A random variable assuming all possible values in a is called random variable. vi) The sum of probabilities of events of a sample space is always vii) A probability function is function, viii) ‘The mean of probability distribution is called iy E(X)= XP) if it absolutely. x) Arandom variable may be or
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6126)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brene Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (932)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8215)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2923)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4972)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Tóibín
3.5/5 (2061)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1987)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1993)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2641)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2542)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Principles: Life and Work
From Everand
Principles: Life and Work
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Steve Jobs
From Everand
Steve Jobs
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Yes Please
From Everand
Yes Please
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
The Outsider: A Novel
From Everand
The Outsider: A Novel
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
John Adams
From Everand
John Adams
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
Little Women
From Everand
Little Women
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel