where X and Y are independent exponential random variables, each with expected value 1000

Write R commands to simulate one pair of values of (X, Y ) and compute R = X/Y . Create a loop to run the above commands 100 times. Store the 100 values of X in a vector Xsample, the 100 values of Y in a vector Ysample and store the ratios, R, in a vector Rsample. Draw histograms of the data in Xsample, Ysample and Rsample


이부분을 어떻게 코딩해야될지 모르겠는데 참고할만한 링크같은것도 좋고 코딩 예시도 좋으니 도와주시면 감사하겠습니다.