A displayed colour can be described as a sum of the degree of red, green and blue components it carries. Each colour can hence be written as a vector denoting red, green and blue respectively.
If we notice that pure red tends to be recorded as due to random errors,
and pure green
and pure blue
then we can obtain the cause of distortion due to random errors as the following matrix
and take the inversion to correct the errors.