Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
1. If y = 5x2 β 2x + 1, find ππ¦ . ππ₯ ππ¦ = 10π₯ β 2 ππ₯ 2. Find the turning point of the function given in question 1. 10π₯ β 2 = 0 1 π₯= 5 2 4 1 1 π¦=5 β2 +1 = 5 5 5 1 4 ππ’πππππ πππππ‘: , 5 5 3. Solve 3x2 β 8x + 1 = 0 giving your answers to 2 decimal places. π = 3, π₯= π = β8, 8± β8 2 π=1 β 4(3)(1) 6 8 ± 52 π₯= 6 π₯ = 2.54, 0.13 4. Calculate 2 β1 π₯ 2 β 2π₯ + 5 ππ₯ 2 ο©x οΉ ο½ οͺ ο x 2 ο« 5x οΊ ο«3 ο» ο1 3 2 ο©ο¦ 2 οΆ ο¦ (ο1) οΆοΉ 2 2 ο½ οͺο§ ο 2 ο« 5(2) ο· ο ο§ ο (ο1) ο« 5(ο1) ο·οΊ οΈ ο¨ 3 οΈο» ο1 ο«ο¨ 3 26 19 ο½ 15 ο½ οο 3 3 3 3 Suppose the heights of a very large number of 17 year olds was surveyed The total area under the graph is 1 and particular areas represent probabilities Suppose the class widths were refined to 0.1m Assuming that enough data was collected the class widths could be further reduced until the βrelative frequency polygonβ approximates to a curve. When the function βf(x)β is found for the curve, it is called the probability density function, or pdf To be a probability density function (pdf), f(x) must satisfy these basic properties: ο f(x) β₯ 0 for all x, so that no probabilities are negative ο β π ββ π₯ ππ₯ = 1 ; often f(x) is only defined over a small range, in which case the integral over that range will be 1. You can find the probability that a random variable lies between x = a and x = b from the area under the curve represented by f(x) between these two points. Example 1 (a) Show that f(x) is a probability density function where 1 π π₯ = 2 π₯ β 3 πππ 3 β€ π₯ β€ 5 0 ππ‘βπππ€ππ π ο f(x) β₯ 0 for all x, so that no probabilities are negative f(x) is positive for all values of x ο β π ββ π₯ ππ₯ = 1 ; often f(x) is only defined over a small range, in which case the integral over that range will be 1. 5 2 2 1 x ο© οΉ ο© 1 5 3 ο¦ οΆ ο¦ οΆοΉ 1 ο½ ο 3 x ο² 2 (x ο 3)dx 2 οͺο« 2 οΊο» 3 ο½ 2 οͺο«ο§ο¨ 2 ο 3(5) ο·οΈ ο ο§ο¨ 2 ο 3(3) ο·οΈοΊο» 5 2 3 1ο© 5 9οΉ ο½1 ο½ ο οο οͺ οΊ 2ο« 2 2ο» Example 1 (a) Show that f(x) is a probability density function where 1 π π₯ = 2 π₯ β 3 πππ 3 β€ π₯ β€ 5 0 ππ‘βπππ€ππ π (b) Find P(X < 4) 4 1 P( X οΌ 4) ο½ ο² (x ο 3)dx 2 3 4 2 1 ο©x οΉ P( X οΌ 4) ο½ οͺ ο 3x οΊ 2ο« 2 ο»3 1 ο©ο¦ 4 2 οΆ ο¦ 32 οΆοΉ P( X οΌ 4) ο½ οͺο§ ο 3(4) ο· ο ο§ ο 3(3) ο·οΊ 2 ο«ο¨ 2 οΈ ο¨2 οΈο» 1 9 P(X οΌ 4) ο½ ο©ο 4 ο ο οΉ 2 οͺο« 2 οΊο» 1 P( X οΌ 4) ο½ 4 π π π π· π<πΏ<π = If f(x) is a pdf, then π π π Example 2 π π₯ = π₯ 2βπ₯ 0 πππ 0 β€ π₯ β€ 1 πππ 1 β€ π₯ β€ 2 gives a pdf. ππ‘βπππ€ππ π Draw the pdf and find P(0.5 < x < 1.3) 1.3 1 P(0.5 < x < 1.3) ο½ ο² xdx ο« ο² (2 ο x)dx f(x) 0.5 1 1 1.3 x οΉ ο©x οΉ ο© ο½ οͺ οΊ ο« οͺ2 x ο οΊ 2 ο»1 ο« 2 ο» 0.5 ο« 1 2 2 ο½ 0.63 0 1 2 x Example 3 2 π 9 β π₯ πππ β 3 β€ π₯ β€ 3 π π₯ = 0 ππ‘βπππ€ππ π (a) Find the value of k and calculate P(-1 < X < 2) (b) Find P(X = 2) β (a) ο π π₯ ππ₯ = 1 ; often f(x) is only defined over a small ββ range, in which case the integral over that range will be 1. 3 3 3 3 3 ο© 3 ( ο 3 ) ο¦ οΆ ο¦ οΆοΉ x ο© οΉ 2 k ( 9 ο x ) dx ο½ 1 k 9 ( 3 ) ο ο 9 ( ο 3 ) ο k οͺ9 x ο οΊ ο½ 1 ο§ ο· ο§ ο·οΊ ο½ 1 οͺ ο²ο3 3οΈ ο¨ 3 οΈο» 3 ο» ο3 ο« ο«ο¨ 1 k(18 ο ο18) ο½ 1 36k ο½ 1 k ο½ 36 2 3 3 3 ο© 1 2 ( ο 1 ) ο¦ οΆ ο¦ οΆοΉ 1ο© x οΉ ο½ ο§ 9(2) ο ο· ο ο§ 9(ο1) ο ο·οΊ P(ο1 οΌ X οΌ 2) ο½ οͺ9 x ο οΊ οͺ 3οΈ ο¨ 3 οΈο» 36 ο« 3 ο» ο1 36 ο«ο¨ 1 ο¦ 46 26 οΆ 2 ο½ ο§ οο ο· ο½ 36 ο¨ 3 3οΈ 3 (b) For any CONTINUOUS distribution, P(X = a) = 0 P(X = 2) = 0 In S1, the cumulative distribution function (cdf) F(x0) was defined as P(X β€ x0) for discrete random variables. For continuous random variables, you can find the cdf by integrating the pdf. Similarly, you can find the pdf from the cdf by differentiating. Probability Density Function (pdf) f(x) Cumulative Distribution Function (cdf) F(x) Example 4 π π₯ = 1 2 π₯β 3 πππ 3 β€ π₯ β€ 5 0 ππ‘βπππ€ππ π is a pdf. Find the cumulative distribution function. πΉ π₯ = 0 π₯<3 x 2 3x 9 ο ο« 3ο£ x ο£5 4 2 4 1 π₯>5 2 2 2 ο© 1 x 3 ο¦ οΆ ο¦ οΆοΉ 1 1 ο©x οΉ ο²3 2 (x ο 3)dx ο½ 2 οͺο« 2 ο 3x οΊο» ο½ 2 οͺο«ο§ο¨ 2 ο 3x ο·οΈ ο ο§ο¨ 2 ο 3(3) ο·οΈοΊο» 3 x x 1 ο© x2 9 οΉ x 2 3x 9 ο½ οͺ ο 3x ο ο οΊ ο½ ο ο« 2ο« 2 2ο» 4 2 4 Example 5 πΌπ πΉ π₯ = 0 1 2 π₯ 9 1 π₯β€0 0 β€π₯ β€3 π₯>3 dF (x) f (x) ο½ dx π π₯ = 2 ο½ x 9 2 x 0ο£ x ο£3 9 0 otherwise find f(x) The mean or expected value of a discrete probability distribution is defined as: ΞΌ = E(X) = Ξ£px For a continuous random variable: π=π¬ πΏ = β ππ ββ π π π where in practice, the limits will be the interval over which f(x) is defined. Example 6 1 2 π π₯ = π₯β 3 0 3β€π₯ β€5 ππ‘βπππ€ππ π Find E(X) 5 πΈ π = 5 π₯π π₯ ππ₯ = 3 3 5 1 2 π₯ β 3π₯ ππ₯ 2 1 ο©ο¦ 53 3(5)2 οΆ ο¦ 33 3(3)2 οΆοΉ 1 ο© x 3x οΉ ο½ οͺο§ ο ο·οο§ ο ο·οΊ ο½ οͺ ο οΊ 2 οΈ ο¨3 2 οΈο» 2ο« 3 2 ο» 3 2 ο«ο¨ 3 3 2 1 ο©25 27 οΉ 13 ο½ ο½ οο 3 2 οͺο« 6 6 οΊο» For a discrete random variable, variance, Var(X) = Ο2 = E(X2) β ΞΌ2 For a continuous random variable,π¬ πΏπ = β π π π ββ π π π Example 7 Find the standard deviation for π π₯ = πΈ π2 1 2 0 π₯β 3 5 π₯2π = 3 3β€π₯ β€5 ππ‘βπππ€ππ π 5 π₯ ππ₯ = 3 1 3 π₯ β 3π₯ 2 ππ₯ 2 1 ο©ο¦ 54 3 οΆ ο¦ 34 3 οΆοΉ ο½ οͺο§ ο 5 ο· ο ο§ ο 3 ο·οΊ ο½ 19 2 ο«ο¨ 4 οΈ ο¨4 οΈο» 2 2 13 ο¦ οΆ 2 2 Var(X) = E(X ) β ΞΌ ο½ 19 ο ο§ ο· ο½ 9 ο¨3οΈ 2 2 Standard Deviation ο½ ο½ 9 3 5 1 ο©x 3οΉ ο½ οͺ οx οΊ 2ο« 4 ο»3 4 * Example 8 The continuous random variable, X, has probability density function ππ₯ 0 β€ π₯ β€ 5 π π₯ = 0 ππ‘βπππ€ππ π (a) Find the value of k (b) Find the mean and variance of X. (c) Calculate i P(X > ΞΌ) ii P(X > ΞΌ + Ο) 5 10 2 ( c ) i P ( X οΎ ο ) ο½ (b) E ( X ) ο½ (a) k ο½ 9 3 25 25 2 ii P( X οΎ ο ο« ο³ ) ο½ 0.1857 E(X ) ο½ 2 25 Var ( X ) ο½ 18 Example 9 The continuous random variable Y has probability density function π¦ πππ 0 β€ π¦ β€ 1 π π¦ = 2 β π¦ πππ 1 β€ π¦ β€ 2 0 ππ‘βπππ€ππ π Find the mean and variance of Y. 1 7 2 Var (Y ) ο½ E (Y ) ο½ E (Y ) ο½ 1 6 6 Example 10 The continuous random variable X has probability density function π π₯ = (a) (b) 1 36 9 β π₯2 β3β€π₯ β€3 0 ππ‘βπππ€ππ π Find the mean and variance of X. Calculate i P(X > 2) (a) E ( X ) ο½ 0 E(X 2 ) ο½ (b) i P( X οΎ 2) ο½ 2 27 9 5 Var ( X ) ο½ ii P(|X| > Ο) 9 5 ii P(| X |οΎ ο³ ) ο½ P( X οΎ ο³ ) ο« P( X οΌ οο³ ) ο½ 0.374 Example 11 The weekly petrol consumption, in hundreds of litres, of a sales representative may be modelled by the random variable X with probability density function 2 (π β π₯) ππ₯ 0β€π₯ β€2 π π₯ = 0 ππ‘βπππ€ππ π (a) Find the values of a and b if the mean consumption is 144 litres. (b) Find the standard deviation of the weekly petrol consumption. 3 (a) a ο½ bο½4 20 (b) ο³ ο½ 0.408 ο½ 40.8litres The mode of a continuous random variable is the value of x for which f(x) is a maximum over the interval in which f(x) exists. This is either a stationary point, at which f β(x) = 0, or the end value of the interval over which f(x) is defined. There may not be a mode if no single value occurs more often that any other. (Bimodal distributions do occur commonly in real life). Example 12 π π₯ = 1 36 0 9 β π₯2 β3β€π₯ β€3 ππ‘βπππ€ππ π x d ο©1 2 οΉ ο½0 ο¨ 9οx ο© ο½ ο οΊο» 18 dx οͺο« 36 This lies in the range - 3 ο£ x ο£ 3 So the mode ο½ 0 xο½0 Find the mode. Example 13 π π₯ = 1 2 π₯β 3 0 f (3) ο½ 0 3β€π₯ β€5 ππ‘βπππ€ππ π f (5) ο½ 1 Maximum value of f(x) is when x ο½ 5 Mode ο½ 5 Find the mode You can use the cumulative distribution function to find the median and quartiles for a continuous random variable: If m is the median, then F(m) = 0.5 If Q1 is the lower quartile then F(Q1) = 0.25 If Q3 is the upper quartile then F(Q3) = 0.75 You can set up an appropriate algebraic equation and solve it to find the required quartile, decile or percentile. Example 14 π π₯ = Find 1 2 0 π₯β 3 3β€π₯ β€5 ππ‘βπππ€ππ π (a) (b) the median the lower and upper quartiles for X. x x 2 1 1 ο©ο¦ x 2 οΆ ο¦ 32 οΆοΉ 1 ο©x οΉ (a) F ( X ) ο½ ο² (x ο 3)dx ο½ οͺ ο 3x οΊ ο½ οͺο§ ο 3x ο· ο ο§ ο 3(3) ο·οΊ 2 2ο« 2 οΈ ο¨2 οΈο» ο» 3 2 ο«ο¨ 2 3 1 ο© x2 9 οΉ x 2 3x 9 ο½ οͺ ο 3x ο ο οΊ ο½ ο ο« 2ο« 2 2ο» 4 2 4 Median is when F(X)=0.5 x 2 3x 9 1 2 x ο 6x ο« 7 ο½ 0 ο ο« ο½ 4 2 4 2 x ο½ 3 ο« 2 ο½ 4.41 ο½ median Example 14 π π₯ = 1 2 π₯β 3 0 3β€π₯ β€5 ππ‘βπππ€ππ π Find (a) the median (b) the lower and upper quartiles for X. Q3 is when F(X) = 0.75 (b) Q1 is when F(X) = 0.25 x 2 3x 9 1 ο ο« ο½ 4 2 4 4 x2 ο 6x ο« 8 ο½ 0 (x ο 2)(x ο 4) ο½ 0 Q1 ο½ 4 x 2 3x 9 3 ο ο« ο½ 4 2 4 4 x2 ο 6x ο« 6 ο½ 0 Q3 ο½ 3 ο« 3 ο½ 4.73 If you were asked for the SHAPE of the distribution or the SKEWβ¦ Q1 ο½ 4 Q2 ο½ 4.41 Q2 β Q1 = 0.41 Q3 β Q2 = 0.32 Q2 β Q1 > Q3 β Q2 Negative Skew Q3 ο½ 4.73