5 views

Uploaded by Sumona Sumi

- data processing and analysis of data
- 13718-Pvt Correlations for Middle East Crude Oils
- Correlation and Regression
- malhotra17_tif.doc
- Dissertaion (1)
- Intro to Stats T1 Notes
- Correlational Research
- Statistics
- YJC H1Maths 2013 Prelim Soln
- A Study of Prevalence of ARI in Ahmedabad District
- CORPORATE GOVERNANCE
- 2007-139.pdf
- rs hal case
- THE CORRELATION BETWEEN TIME MANAGEMENT AND STUDENTS' MASTERY IN CONTENT SUBJECTS OF EMI CLASSES
- Cross Sections of Expected Return and Firm Size: An Empirical Study on the Colombo Stock Market
- Common Method Variance in IS Research: A Comparison of Alternative Approaches and a Reanalysis of Past Research
- Project
- regression.pdf
- Article Multipic
- hubungan hb dengan derajat dbd.doc

You are on page 1of 6

Submitted by: Sumona Islam Roll:RK-43 Nowrin Akter Surovi Roll:RK-16 Most. Nilufa Yeasmin Roll:RK-31 Khadiza Tahira Roll:RK-52 Homework description: Generating two random variables for the following cases: 1. No correlation between these two RVs. 2. Desired correlation between them. 3. Perfect correlation between them.

Theory:

Random Variable:A Random Variable is a function, which assigns unique

numerical values to all possible outcomes of a random experiment under fixed conditions. A random variable is not a variable but rather a function that maps events to numbers. Suppose that a coin is tossed three times and the sequence of heads and tails is noted.The sample space for this experiment evaluates to: S={HHH, HHT, HTH, HTT, THH, THT,TTH, TTT}. Now let the random variable X be the number of heads in three coin tosses. X assigns each outcome in S a number from the set.Then Sx={0, 1, 2,3}. The list below lists the eight outcomes of S and the corresponding values of X.

Outcomes

HHH 3 HHT 2 HTH 2 THH 2 HTT 1 THT 1 TTH 1 TTT 0 X is then a random variable taking on values in the set Sx = {0, 1, 2, 3}.

1.A Continuous Random Variable is one that takes an infinite number of possible values. Example: Duration of a call in a telephone exchange. 2.A Discrete Random Variable is one that takes a finite distinct values. Example: A number of students who fail a test. 3.A Mixed Random Variable is one for which some of its values are continuous and some are discrete.

Correlation:

Correlation is a statistical measurement of the extent of the linear relationship between two variables. Possible correlations range from +1 to 1. A zero correlation indicates that there is no relationship between the variables. A correlation of 1 indicates a perfect negative correlation, meaning that as one variable goes up, the other goes down. A correlation of +1 indicates a perfect positive correlation, meaning that both variables move in the same direction together.

The formula used in the calculation involves six different values obtained from the X and Y variables 1.The first two values are simply the sum of X values and Y values 2.The Greek letter (pronounced sigma) is used to represent the summations. 3.The next step involves squaring each of the X and Y values;and summing them. 4.In the next step, the product of each pair of X and Y scores is obtained;and summed. 5.The last of the preliminary steps is to simply determine the number of stuff beingincluded in the calculations. In summary, our six values used to calculate the correlation coefficient aren,X,Y,X^2,Y^2,XY and the formula is

Where r is the correlation coefficient in (X,Y).We can consider 3 cases for the value of it. 1.If r=0,then the random variables are said to be uncorrelated. Clearly, independent random variables are said to be uncorrelated. 2.If the value of r remains between 0 and 1,then we can get a desired correlation which is neither perfect nor uncorrelated. 3.If r=1,then the random variables are said to be perfect correlated.

We can generate realizations of a continuous random vector (X, Y) using the relationship Fx,y(X,Y)=Fy|x(Y|X)Fx(X) (Of course, if X and Y are independent, we can generate X based on Fx(x) and Y based on Fy(y)). Consider as an example the standard bivariate Gaussian PDF. We know that Y|(X=x)~N(x,1-^2) and X~N(0,1) Hence, we can generate realizations of (X,Y) as follows. Step 1: Generate X = x according to N(0,1). Step 2: Generate Y|(X=x) according to N(x,1-^2). If we let x=y=0, x^2=y^2=1 then we have

Where U~N(0,1) ,V~N(0,1) and U and V are independent. The transformation can be used to generate realizations of a standard bivariate Gaussian random vector.

Generate two random variable with no correlation u=rand(1,100); v=rand(1,100); rho=0; x=u; y=(rho*u+sqrt(1-rho^2)*v); plot(x,y,'.') The figure is given below,

Fig:1

Generate two random variable with correlation coefficient =.9 u=rand(1,100); v=rand(1,100); rho=.9; x=u; y=(rho*u+sqrt(1-rho^2)*v); plot(x,y,'.') The figure is shown below,

Fig:2

Generate random variable with perfect correlation, u=rand(1,100); v=rand(1,100); rho=1; x=u; y=(rho*u+sqrt(1-rho^2)*v); plot(x,y,'.') The figure is given below,

Fig:3

- data processing and analysis of dataUploaded byankita3031
- 13718-Pvt Correlations for Middle East Crude OilsUploaded byLucero Hdez
- Correlation and RegressionUploaded by12345689lak
- malhotra17_tif.docUploaded byIsabella Mehnaz
- Dissertaion (1)Uploaded byPINKY CUARESMA
- Intro to Stats T1 NotesUploaded byBrittney Valderrama
- Correlational ResearchUploaded byAnnaliza Gando
- StatisticsUploaded byYet Barreda Basbas
- YJC H1Maths 2013 Prelim SolnUploaded byAnonymous OOLcOxAVP
- A Study of Prevalence of ARI in Ahmedabad DistrictUploaded byAgung Nugroho Ote
- CORPORATE GOVERNANCEUploaded byAbeerAlgebali
- 2007-139.pdfUploaded bySaiCharan
- rs hal caseUploaded byanshul25
- THE CORRELATION BETWEEN TIME MANAGEMENT AND STUDENTS' MASTERY IN CONTENT SUBJECTS OF EMI CLASSESUploaded bygiman wahyudi
- Cross Sections of Expected Return and Firm Size: An Empirical Study on the Colombo Stock MarketUploaded bySab Keels
- Common Method Variance in IS Research: A Comparison of Alternative Approaches and a Reanalysis of Past ResearchUploaded byirfan444
- ProjectUploaded byManvi Tiwari
- regression.pdfUploaded byKenny
- Article MultipicUploaded byEsteban Hernandez Rivera
- hubungan hb dengan derajat dbd.docUploaded byAdeLia Nur Fitriana
- Traditional Ho q 1Uploaded byPaula Caballero Lillo
- Farida Nomer 3Uploaded byaulia
- 210211014900Uploaded bySuci Nourmaliza
- 5071-Article Text-8840-1-10-20171218Uploaded byMeilani Puji
- BuffUploaded byDatip M Koswari
- Spearman 1904 ArticleUploaded byMarie Chong
- 10.1.1.916.4605Uploaded byCristian Onea
- stats2projectUploaded byapi-357332188
- Incorporation Effect Size KotrlikwilliamsUploaded bySimona Coroi
- Sirca S., Horvat M. Computational Methods for PhysicistsUploaded byMaria Herrera

- rubricUploaded byapi-442342912
- MatLab - Statistics Toolbox User's GuideUploaded byuser7man
- Assignment 4 QuestionsUploaded byAmy Parker
- 70807408-Fear-of-Death-K poopUploaded byNathan Groh
- ARML 2012-2013 Varsity Expected ValueUploaded byWithoon Chinchalongporn
- Howard 1966 Information Value TheoryUploaded byAnonymous L4bqaG2c
- Eisenhardt 1989 SummaryUploaded byAdelson Nascimento
- Chapter 4 ProbabilityUploaded byargbgrb
- STIDS2013_T04_TecuciEtAlUploaded byoakley bart
- Big Brand Perfume Market Challenge. Losing their Allure.docxUploaded byCharmie Lagdamen
- 192820372-mat540-quiz-2Uploaded bytswag2014
- Lecture 20Uploaded byEd Z
- Risk Uncertainty and Expected ValueUploaded byShameem Jazir
- Probability Distributions FinalUploaded byTushar Gautam
- Msc StatisticsUploaded byMurali Dharan
- Stochastic ProcessesUploaded bypratgame
- The Attribute for Hydrocarbon Prediction Based on (1)Uploaded byGhassen Laouini
- Normal+ExponentialUploaded bySarfraz 'Drogba' Shaikh
- 11 MM Ch08Uploaded bylakvinu
- A-1-On the ALARP Approach to Risk ManagementUploaded byAnderson Garcia Vasquez
- PL Meyer.pdfUploaded byDurga Sivakumar
- Module 3.pptxUploaded byAlexis Nicole Joy Manatad
- probability unitUploaded byapi-235922849
- ProbabilityUploaded bylynajam
- Stats Revision Slides (From Maria Molina-Domene) (1)Uploaded bysai
- Decision Making Method through - Probability TechniqueUploaded byAnwar Suran
- Stochastic ProcessUploaded byCarlos de la Calleja
- QTSessions_5,6Uploaded byParinita Agarwal
- History of ProbabilityUploaded bygabor_peter1
- Algebra II m4 Topic a Lesson 5 TeacherUploaded byvic