1 / 28

Functions of Random Variables

Functions of Random Variables. Method of Distribution Functions. X 1 ,…,X n ~ f(x 1 ,…,x n ) U=g(X 1 ,…,X n ) – Want to obtain f U (u) Find values in (x 1 ,…,x n ) space where U=u Find region where U ≤u Obtain F U (u)=P(U≤u) by integrating f(x 1 ,…,x n ) over the region where U ≤u

fpaul
Download Presentation

Functions of Random Variables

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Functions of Random Variables

  2. Method of Distribution Functions • X1,…,Xn ~ f(x1,…,xn) • U=g(X1,…,Xn) – Want to obtain fU(u) • Find values in (x1,…,xn) space where U=u • Find region where U≤u • Obtain FU(u)=P(U≤u) by integrating f(x1,…,xn) over the region where U≤u • fU(u) = dFU(u)/du

  3. Example – Uniform X • Stores located on a linear city with density f(x)=0.05 -10 ≤ x ≤ 10, 0 otherwise • Courier incurs a cost of U=16X2 when she delivers to a store located at X (her office is located at 0)

  4. Example – Sum of Exponentials • X1, X2 independent Exponential(q) • f(xi)=q-1e-xi/q xi>0, q>0, i=1,2 • f(x1,x2)= q-2e-(x1+x2)/q x1,x2>0 • U=X1+X2

  5. Method of Transformations • X~fX(x) • U=h(X) is either increasing or decreasing in X • fU(u) = fX(x)|dx/du| where x=h-1(u) • Can be extended to functions of more than one random variable: • U1=h1(X1,X2), U2=h2(X1,X2), X1=h1-1(U1,U2), X2=h2-1(U1,U2)

  6. Example • fX(x) = 2x 0≤ x ≤ 1, 0 otherwise • U=10+500X (increasing in x) • x=(u-10)/500 • fX(x) = 2x = 2(u-10)/500 = (u-10)/250 • dx/du = d((u-10)/500)/du = 1/500 • fU(u) = [(u-10)/250]|1/500| = (u-10)/125000 10 ≤ u ≤ 510, 0 otherwise

  7. Method of Conditioning • U=h(X1,X2) • Find f(u|x2) by transformations (Fixing X2=x2) • Obtain the joint density of U, X2: • f(u,x2) = f(u|x2)f(x2) • Obtain the marginal distribution of U by integrating joint density over X2

  8. Example (Problem 6.11) • X1~Beta(a=2,b=2) X2~Beta(a=3,b=1) Independent • U=X1X2 • Fix X2=x2 and get f(u|x2)

  9. Method of Moment-Generating Functions • X,Y are two random variables • CDF’s: FX(x) and FY(y) • MGF’s: MX(t) and MY(t) exist and equal for |t|<h,h>0 • Then the CDF’s FX(x) and FY(y) are equal • Three Properties: • Y=aX+b  MY(t)=E(etY)=E(et(aX+b))=ebtE(e(at)X)=ebtMX(at) • X,Y independent  MX+Y(t)=MX(t)MY(t) • MX1,X2(t1,t2) = E[et1X1+t2X2] =MX1(t1)MX2(t2) if X1,X2 are indep.

  10. Sum of Independent Gammas

  11. Linear Function of Independent Normals

  12. Distribution of Z2 (Z~N(0,1))

  13. Distributions of and S2 (Normal data)

  14. Independence of and S2 (Normal Data) Independence of T=X1+X2 and D=X2-X1 for Case of n=2

  15. Independence of and S2 (Normal Data) P2 Independence of T=X1+X2 and D=X2-X1 for Case of n=2 Thus T=X1+X2 and D=X2-X1 are independent Normals and & S2 are independent

  16. Distribution of S2 (P.1)

  17. Distribution of S2 P.2

  18. Summary of Results • X1,…Xn≡ random sample from N(m, s2)population • In practice, we observe the sample mean and sample variance (not the population values: m, s2) • We use the sample values (and their distributions) to make inferences about the population values

  19. Order Statistics • X1,X2,...,Xn Independent Continuous RV’s • F(x)=P(X≤x)  Cumulative Distribution Function • f(x)=dF(x)/dx  Probability Density Function • Order Statistics: X(1) ≤ X(2) ≤ ...≤ X(n) (Continuous  can ignore equalities) • X(1) = min(X1,...,Xn) • X(n) = max(X1,...,Xn)

  20. Order Statistics

  21. Example • X1,...,X5 ~ iid U(0,1) (iid=independent and identically distributed)

  22. Distributions of Order Statistics • Consider case with n=4 • X(1) ≤x can be one of the following cases: • Exactly one less than x • Exactly two are less than x • Exactly three are less than x • All four are less than x • X(3) ≤x can be one of the following cases: • Exactly three are less than x • All four are less than x • Modeled as Binomial, n trials, p=F(x)

  23. Case with n=4

  24. General Case (Sample of size n)

  25. Example – n=5 – Uniform(0,1)

More Related