Linear Combination of Random Variables

Sulav Jung Hamal - Blog - 2023/04/13 -

Linear Combination of Random Variables

What is Linear Combination of Random Variables?

A linear combination of random variables is a new random variable that is formed by taking a weighted sum of two or more other random variables.

Let's suppose we have random variables X1,X2,,Xn\large X_{1},X_{2},\dots,X_{n}. Now, we are given means and variances as such: Means:μ1,μ2,,μnMeans: \large \mu_{1},\mu_{2},\dots,\mu_{n} Variances:σ12,σ22,,σn2Variances: \large \sigma_{1}^2,\sigma_{2}^2, \dots, \sigma_{n}^2 Then, linear combination gives us:

Expected Value:

E(c1X1+c2X2++cnXn)=c1μ1+cnμn++cnμn\large E(c_{1}X_{1}+c_{2}X_{2}+\dots+c_{n}X_{n}) = c_{1}\mu_{1} +c_{n}\mu_{n} +\dots+c_{n}\mu_{n}

Variance (If independent):

Var(c1X1+c2X2++cnXn)=c12σ12+c22σ22++cn2σn2\large Var(c_{1}X_{1}+c_{2}X_{2}+\dots+c_{n}X_{n}) = c_{1}^2\sigma_{1}^2 +c_{2}^2\sigma_{2}^2 +\dots+c_{n}^2\sigma_{n}^2

Variance (if Dependent Event):


This is what we will learn in this note. Why it is true and how it can be used in different practical fields. Let's dive in.

Where do we use it? || Practical Use of this Concept

Linear combinations of random variables can come in handy in many different situations. Here are a few examples:

  1. Portfolio optimization: In finance, investors often want to construct a portfolio of assets that maximizes their expected return while minimizing their risk. To do this, they can use linear combinations of asset returns to create a diversified portfolio with a desired level of risk and return.
  2. Image processing: In image processing, linear combinations of pixel values can be used to create new images with specific properties. For example, in image compression, a linear combination of basis images can be used to approximate the original image with fewer pixels.
  3. Machine learning: In machine learning, linear combinations of features can be used to create new features that capture important relationships between the original features. This can improve the performance of models by reducing the number of features and increasing their predictive power.
  4. Statistical modeling: In statistical modeling, linear combinations of predictor variables can be used to create models that capture the relationship between the predictors and the response variable. For example, in regression analysis, a linear combination of predictors can be used to model the relationship between a response variable and one or more predictor variables.
  5. Signal processing: In signal processing, linear combinations of signals can be used to filter out noise or extract important information from noisy data. For example, in speech recognition, a linear combination of spectral features can be used to recognize spoken words in noisy environments.

These are just a few examples of how linear combinations of random variables can be used in different fields. The concept is quite versatile and can be applied to many different problems, making it a powerful tool for understanding complex systems and analyzing data.

Suppose you load weights F1,F2F_{1}, F_{2} on opposite sides of a beam at distances 10, 7 from a fulcrum. For the load to be perfectly balanced, we need 7F2=10F17F_{2}= 10F_{1}. So, we might measure the net torque about the fulcrum

T=10F17F2T = 10F_{1} - 7F_{2}

Assume the forces are random variables: F1F_{1} mean 35 and standard deviation 2 lbs and F2F_{2} has mean 50 and standard deviation 3 lbs. Then linearity of expectation shows the mean of T is zero. But variance?

  • This is linear combination of F1,F2F_{1}, F_{2} with coefficients c1=10,c2=7c_{1} = 10, c_{2} = -7

Case 1: The forces are applied INDEPENDENTLY so that COV(F1,F2)=0COV(F_{1}, F_{2}) = 0

3 mins to finish this blog.

615 words read. Hooray!

Latest Post


20 things, one week, and one me.

Sulav Jung Hamal - 2024/05/04


Horrible week of front end submission

Sulav Jung Hamal - 2024/04/27

Tech Tutorial

How to Install Nginx and configure it in Ubuntu server?

Sulav Jung Hamal - 2024/02/24

Web Development

What are Progressive Web Apps?

Sulav Jung Hamal - 2023/11/08

Daily Vibes