ST 380 Probability and Statistics for the Physical Sciences Continuous Random Variables Recall: A continuous random variable X satisfies: 1 its range is the union of one or more real number intervals; 2 P(X = c) = 0 for every c in the range of X . Examples: The depth of a lake at a randomly chosen location. The pH of a random sample of effluent. The precipitation on a randomly chosen day is not a continuous random variable: its range is [0; 1), and P(X = c) = 0 for any c > 0, but P(X = 0) > 0. 1 / 12 Continuous Random Variables Probability Density Function ST 380 Probability and Statistics for the Physical Sciences Discretized Data Suppose that we measure the depth of the lake, but round the depth off to some unit. The rounded value Y is a discrete random variable; we can display its probability mass function as a bar graph, because each mass actually represents an interval of values of X . In R source("discretize.R") discretize(0.5) 2 / 12 Continuous Random Variables Probability Density Function ST 380 Probability and Statistics for the Physical Sciences As the rounding unit becomes smaller, the bar graph more accurately represents the continuous distribution: discretize(0.25) discretize(0.1) When the rounding unit is very small, the bar graph approximates a smooth function: discretize(0.01) plot(f, from = 1, to = 5) 3 / 12 Continuous Random Variables Probability Density Function ST 380 Probability and Statistics for the Physical Sciences The probability that X is between two values a and b, P(a ≤ X ≤ b), can be approximated by P(a ≤ Y ≤ b). Because Y is discrete, P(a ≤ Y ≤ b) is the sum of the areas of the corresponding bars in the graph. As the rounding unit becomes smaller, the sum of the areas of the bars approaches the integral of the smooth function. In the limit, Z b P(a ≤ X ≤ b) = f (x) dx: a 4 / 12 Continuous Random Variables Probability Density Function ST 380 Probability and Statistics for the Physical Sciences The smooth function f (x) is called a probability density function (pdf). Clearly f (x) must satisfy: f (x) ≥ 0; −∞ < x < 1; (1) Z 1 f (x) dx = 1: (2) −∞ Any f (x) satisfying these two conditions could be the pdf of some continuous random variable. 5 / 12 Continuous Random Variables Probability Density Function ST 380 Probability and Statistics for the Physical Sciences Uniform Distribution A bee leaves its hive to forage for blossom that will provide nectar. If the bee has no prior information, it searches in a random direction. If X is the direction, measured from North clockwise in degrees, then X is equally likely to be any value in [0; 360). More precisely, if 0 ≤ a < b < 360, then b − a Z b 1 P(a ≤ X ≤ b) = = dx: 360 a 360 So the pdf is f (x) = 1=360; 0 ≤ x < 360, and zero otherwise. 6 / 12 Continuous Random Variables Probability Density Function ST 380 Probability and Statistics for the Physical Sciences Cumulative Distribution Function The cumulative distribution function F (x) of any random variable X is defined as F (x) = P(X ≤ x); −∞ < x < 1: Earlier, for a continuous random variable X , Z b P(a ≤ X ≤ b) = f (y) dy; a so Z x F (x) = P(X ≤ x) = f (y) dy: −∞ 7 / 12 Continuous Random Variables Cumulative Distribution Function ST 380 Probability and Statistics for the Physical Sciences Conversely, dF (x) f (x) = = F 0(x): dx For the uniform distribution on [0; 1), ( 1 0 ≤ x < 1 f (x) = 0 otherwise and 8 0 x < 0 Z x <> F (x) = f (y) dy = x 0 ≤ x < 1 −∞ :>1 x ≥ 1 8 / 12 Continuous Random Variables Cumulative Distribution Function ST 380 Probability and Statistics for the Physical Sciences Percentiles The (100p)th percentile of X is the value that X falls below with probability p. That is, it is the value η(p) that satisfies P[X ≤ η(p)] = p: In terms of the cdf, Z η(p) p = F [η(p)] = f (y) dy: −∞ 9 / 12 Continuous Random Variables Cumulative Distribution Function ST 380 Probability and Statistics for the Physical Sciences Median and Quartiles Most commonly used percentiles: The median is the 50th percentile, 1 P(X ≤ median) = : 2 The upper and lower quartiles are the 75th and 25th percentiles, respectively, 3 P(X ≤ upper quartile) = ; 4 1 P(X ≤ lower quartile) = : 4 10 / 12 Continuous Random Variables Cumulative Distribution Function ST 380 Probability and Statistics for the Physical Sciences Expected Value Recall that the expected value of a discrete random variable is the average of its values, weighted by their probabilities. For a continuous random variable, expected value is defined the same way, but the average must be computed as an integral instead of a sum: Z 1 µX = E(X ) = x · f (x) dx: −∞ More generally, for a function h(X ), Z 1 µh(X ) = E[h(X )] = h(x) · f (x) dx: −∞ 11 / 12 Continuous Random Variables Expected Value ST 380 Probability and Statistics for the Physical Sciences Variance and Standard Deviation As for a discrete random variable, the variance of X is 2 2 σX = V (X ) = E (X − µX ) and the standard deviation is p σX = V (X ): But the expected value is now given by an integral: Z 1 2 2 E (X − µX ) = (x − µX ) · f (x) dx −∞ 12 / 12 Continuous Random Variables Expected Value.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages12 Page
-
File Size-