Random Variables STATISTICS – Lecture No
Total Page:16
File Type:pdf, Size:1020Kb
Random Variable Random Variables STATISTICS – Lecture no. 3 Jiˇr´ıNeubauer Department of Econometrics FEM UO Brno office 69a, tel. 973 442029 email:[email protected] 13. 10. 2009 Jiˇr´ıNeubauer Random Variables Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Random Variable Many random experiments have numerical outcomes. Definition A random variable is a real-valued function X (ω) defined on the sample space Ω. The set of possible values of the random variable X is called the range of X . M = {x; X (ω) = x}. Jiˇr´ıNeubauer Random Variables the number of dots when a die is rolled, the range is M = {1, 2,... 6} the number of rolls of a die until the first 6 appears, the range is M = {1, 2, }˙ the lifetime of the lightbulb, the range is M = {x; x ≥ 0}, Examples of random variables: Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Random Variable We denote random variables by capital letters X , Y ,... (eventually X1, X2,... ) and their particular values by small letters x, y,... Using random variables we can describe random events, for example X = x, X ≤ x, x1 < X < x2 etc. Jiˇr´ıNeubauer Random Variables Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Random Variable We denote random variables by capital letters X , Y ,... (eventually X1, X2,... ) and their particular values by small letters x, y,... Using random variables we can describe random events, for example X = x, X ≤ x, x1 < X < x2 etc. Examples of random variables: the number of dots when a die is rolled, the range is M = {1, 2,... 6} the number of rolls of a die until the first 6 appears, the range is M = {1, 2, }˙ the lifetime of the lightbulb, the range is M = {x; x ≥ 0}, Jiˇr´ıNeubauer Random Variables continuous ... M is a closed or open interval. Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Random Variable According to the range M we separate random variables to discrete ... M is finite or countable, Jiˇr´ıNeubauer Random Variables Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Random Variable According to the range M we separate random variables to discrete ... M is finite or countable, continuous ... M is a closed or open interval. Jiˇr´ıNeubauer Random Variables Examples of continuous random variables: the height of a person, M = (0, ∞) the time taken to complete an examination, M = (0, ∞) the amount of milk in a bottle, M = (0, ∞) Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Random Variable Examples of discrete random variables: the number of cars sold at a dealership during a given month, M = {0, 1, 2,... } the number of houses in a certain block, M = {1, 2,... } the number of fish caught on a fishing trip, M = {0, 1, 2,... } the number of heads obtained in three tosses of a coin, M = {0, 1, 2, 3} Jiˇr´ıNeubauer Random Variables Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Random Variable Examples of discrete random variables: the number of cars sold at a dealership during a given month, M = {0, 1, 2,... } the number of houses in a certain block, M = {1, 2,... } the number of fish caught on a fishing trip, M = {0, 1, 2,... } the number of heads obtained in three tosses of a coin, M = {0, 1, 2, 3} Examples of continuous random variables: the height of a person, M = (0, ∞) the time taken to complete an examination, M = (0, ∞) the amount of milk in a bottle, M = (0, ∞) Jiˇr´ıNeubauer Random Variables and some measures: measures of location, measures of dispersion, measures of concentration. Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Random Variable For the description of random variables we will use some functions: a (cumulative) distribution function F (x), a probability function p(x) – only for discrete random variables, a probability density function f (x) – only for continuous random variables. Jiˇr´ıNeubauer Random Variables Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Random Variable For the description of random variables we will use some functions: a (cumulative) distribution function F (x), a probability function p(x) – only for discrete random variables, a probability density function f (x) – only for continuous random variables. and some measures: measures of location, measures of dispersion, measures of concentration. Jiˇr´ıNeubauer Random Variables Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Distribution Function Definition Let X be any random variable. The distribution function F (x) of the random variable X is defined as F (x) = P(X ≤ x), x ∈ R. Note: distribution function = cumulative distribution function Jiˇr´ıNeubauer Random Variables F (x) is a non-decreasing, right-continuous function, it has limits lim F (x) = 0, lim F (x) = 1, x→−∞ x→∞ if range of X is M = {x; x ∈ (a, bi} then F (a) = 0 a F (b) = 1, for every real numbers x1 and x2: P(x1 < X ≤ x2) = F (x2) − F (x1). Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Distribution Function We mention some important properties of F (x): for every real x: 0 ≤ F (x) ≤ 1, Jiˇr´ıNeubauer Random Variables it has limits lim F (x) = 0, lim F (x) = 1, x→−∞ x→∞ if range of X is M = {x; x ∈ (a, bi} then F (a) = 0 a F (b) = 1, for every real numbers x1 and x2: P(x1 < X ≤ x2) = F (x2) − F (x1). Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Distribution Function We mention some important properties of F (x): for every real x: 0 ≤ F (x) ≤ 1, F (x) is a non-decreasing, right-continuous function, Jiˇr´ıNeubauer Random Variables for every real numbers x1 and x2: P(x1 < X ≤ x2) = F (x2) − F (x1). Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Distribution Function We mention some important properties of F (x): for every real x: 0 ≤ F (x) ≤ 1, F (x) is a non-decreasing, right-continuous function, it has limits lim F (x) = 0, lim F (x) = 1, x→−∞ x→∞ if range of X is M = {x; x ∈ (a, bi} then F (a) = 0 a F (b) = 1, Jiˇr´ıNeubauer Random Variables Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Distribution Function We mention some important properties of F (x): for every real x: 0 ≤ F (x) ≤ 1, F (x) is a non-decreasing, right-continuous function, it has limits lim F (x) = 0, lim F (x) = 1, x→−∞ x→∞ if range of X is M = {x; x ∈ (a, bi} then F (a) = 0 a F (b) = 1, for every real numbers x1 and x2: P(x1 < X ≤ x2) = F (x2) − F (x1). Jiˇr´ıNeubauer Random Variables Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Discrete Random Variable For a discrete random variable X , we are interested in computing probabilities of the type P(X = xk ) for various values xk in range of X . Definition Let X be a discrete random variable with range {x1, x2,... } (finite or countably infinite). The function p(x) = P(X = x) is called the probability function of X . Note: probability function = probability mass function Jiˇr´ıNeubauer Random Variables X p(x) = 1 x∈M for every two real numbers xk and xl (xk ≤ xl ): x Xl P(xk ≤ X ≤ xl ) = p(xi ). xi =xk Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Discrete Random Variable We mention some important properties of p(x) for every real number x, 0 ≤ p(x) ≤ 1, Jiˇr´ıNeubauer Random Variables for every two real numbers xk and xl (xk ≤ xl ): x Xl P(xk ≤ X ≤ xl ) = p(xi ). xi =xk Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Discrete Random Variable We mention some important properties of p(x) for every real number x, 0 ≤ p(x) ≤ 1, X p(x) = 1 x∈M Jiˇr´ıNeubauer Random Variables Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Discrete Random Variable We mention some important properties of p(x) for every real number x, 0 ≤ p(x) ≤ 1, X p(x) = 1 x∈M for every two real numbers xk and xl (xk ≤ xl ): x Xl P(xk ≤ X ≤ xl ) = p(xi ). xi =xk Jiˇr´ıNeubauer Random Variables Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Probability Function The probability function p(x) can be described by the table, P X x1 x2 ... xi ... p(x) p(x1) p(x2) ... p(xi ) ... 1 Jiˇr´ıNeubauer Random Variables Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Probability Function the graph [x, p(x)], Jiˇr´ıNeubauer Random Variables Discrete Random Variable Continuous Random Variable Random Variable Measures of Location Measures of Dispersion Measures of Concentration Probability Function the formula, for example π(1 − π)x x = 0, 1, 2,..., p(x) = 0 otherwise, where π is a given probability.