Mean Squared Error: Concept, Formula & Sample Questions

Collegedunia Team logo

Collegedunia Team

Content Curator

Mean Square Error (MSE) is defined as the average or mean of the square of the difference between actual and estimated values in statistics. The idea of mean squared error is a crucial metric for determining an estimator's performance (to have a rough calculation of the value, number, quantity, of something). It measures the average squared difference between the estimated and actual values, or the average squared difference between the estimated and actual values. It is abbreviated as MSE and is used in statistical estimation to convey the ideas of precision, bias, and accuracy.

Read Also: Cartesian System

Key Terms: Statistics, Mean square error, mean, Variance, Standard deviation, Root mean square error formula, Mean deviation, Probability, Prediction error


What is the Mean Square Error?

[Click Here for Sample Questions]

Mean square error measurement requires a prediction or estimation objective as well as a forecasting or estimator tool, which is assumed to be a function of the given data. The MSE is the mean of the squares of the “error”. 

Here, the error is the difference between the estimated attribute and the estimator. The mean squared error can be called a function of risk corresponding to the expected value of squared error loss. This difference or loss may arise by chance or because the estimator does not represent information that could provide a more accurate estimate. 

Mean squared error may also be called the second error moment, measured around the origin. It includes both the variance and the bias of the estimator. If an estimator is an unbiased estimator, then its Mean Square Error is the same as the variance of the estimator. The unit of the Mean Square Error is the same as the unit of measure of the quantity to be estimated.

Check Important Notes for Scalar


Mean Square Error Formula

[Click Here for Sample Questions]

The Mean Square Error formula is easy to understand:

Mean Square Error formula

The total of all the points used to estimate the error is denoted by the summation sign. The total must be calculated from the initial point to the nth point, or the last point of estimation. The obs and the model value reflect the actual and predicted values, respectively, whereas Xi is a vector that represents all true values.

The MSE Formula may also be seen in the context of a specific value, which can be calculated using the same formula by substituting the obs value for it and the model value for the actual value. The Xobs, ' i ' value is substituted by the y coordinate of the points from which the errors are to be computed when the mean square formula is applied to a regression line on a graph. The Xmodel, ' i ' is selected from the regression line, and the formula is solved in this manner.

If θ is any unknown parameter and θobs, i is the matching estimator, then the formula for the mean square error of the provided estimate is

formula for the mean square error of the provided estimate

It's worth noting that MSE isn't strictly a random variable because it's an expectation. With respect to the unknown true value, it is vulnerable to the estimate error for a particular estimator of θ. As a result, the prediction of an estimated parameter's mean squared error is a random variable.

Also Read: Vector


Root Mean Square Error

[Click Here for Sample Questions]

This formula is responsible for helping to better understand the accuracy of the model. Learning about Root Mean Squared Error and Mean Squared Error will help to understand what Mean Square Error is.

The root mean square error (RMSE) is the residuals' standard deviation (prediction errors). Residuals are a measure of how distant the data points are from the regression line; Root Mean Square Error is a measure of how spread out these residuals are. In other words, it indicates how tightly the data is clustered around the line of best fit. In climatology, forecasting, and regression analysis. The root mean square error is widely used to check experimental results.

Check Also: Determinant Formula


What is the Root Mean Square Formula?

[Click Here for Sample Questions]

Confusion between square root mean error and mean square error can make it difficult to find estimates. So it is better to analyze what the root mean square error formula is for better understanding. The root mean square error (RMSE) is a very frequently used measurement to evaluate the difference between the value predicted by an estimator or model and the actual observed values. 

RMSE is defined as the square root of the difference between predicted and observed values. The individual difference in this calculation is called the "residuals''. The Root Mean Square Error estimates the magnitude of the errors. It is a measure of accuracy used to generate comparative prediction errors from different estimators for a particular variable, but not between variables, since this measure is scale dependent.

In simple words, the Root Mean Square Error Formula, in simple words, would be the root of the Mean Square Error formula. The formula's main purpose is to determine the amount of differences between expected and actual values. One of the most significant distinctions between Mean Square Error and Root Mean Square Error is that in Root Mean Square Error, the formula is applied to a single variable rather than a range of variables. Because root mean square errors are scale-dependent, this is not true for the mean square error formula.

Root Mean Square Error Formula

Root Mean Square Error Formula

Check Important Formula for Inverse Matrix


Steps to use the Formula

[Click Here for Sample Questions]

On the graph, the Mean Square Error may be visible as the gap between the regression line and the given set of points. In this case, it'll be simpler to recognize the formula. The reference factor for calculation is the regression line. It should be calculated to continue to the alternative steps the usage of the cited coordinates and the line equation. 

Find the new Y value. The usage of the X values locates the precise area of the regression line. The new Y values should be subtracted from the real values to locate the error. Use the formulation to calculate the sum and square of the errors and locate the mean. 

Read More: Optimization


Things to remember

[Click Here for Sample Questions]

  • The efficacy relies upon the proximity of the value to zero.
  • The ideal value for MSE is zero. However, that isn't always very probable.
  • Score functions like Brier score are utilised in forecasting, and in addition prediction is primarily based totally on what's mean square error.
  • MSE is used to test how close estimates or forecasts are to the actual value. The lower the Mean Square Error, the closer the forecast is to reality.
  • The Root Mean Square Error formula, in simple words, would be the root of the mean square error formula.
  • Mean squared error may also be called the second error moment, measured around the origin.
  • Mean Square error is always positive and never negative
  • Value lies between 0 to ∞

Read Further: Integration


Sample Questions

Ques.Find the Mean Squared Error or mse Equation for the given Set of Values: (43,41),(44,45),(45,49),(46,47),(47,44) (5 Marks)

Ans. On calculating the regression line using an online computation tool,

it is found to be y= 9.2 + 0.8x.

The new Y’ values are as follows:

9.2 + 0.8(43) = 43.6

9.2 + 0.8(44) = 44.4

9.2 + 0.8(45) = 45.2

9.2 + 0.8(46) = 46

9.2 + 0.8(47) = 46.8

The error can be calculated as (Y-Y’):

41 – 43.6 = -2.6

45 – 44.4 = 0.6

49 – 45.2 = 3.8

47 – 46 = 1

44 – 46.8 = -2.8

Adding the squares of the errors:

6.76 + 0.36 + 14.44 + 1 + 7.84 = 30.4.

The mean of the squares of the errors are:

30.4 / 5 = 6.08

Mean Squared Error

Regression line = y = 9.2 + 0.8x

Ques: How is the mean square error denoted? (2 Marks)

Ans: Mean square error is denoted as SSE/(n-m) where SSE is the sum of squares of error, n is the number of data points and m is number of samples.

Ques: Define the random variable W = E[X~|Y]W = E[X~|Y]. Let XM = E[X|Y]XM = E[X|Y] be the MMSE estimator of XX given YY, and let X~=X−XM be the estimation error. Then, we have
W=0
For any function g(Y)g(Y), we have E[X~⋅g(Y)] = 0E[X~⋅g(Y)] = 0. (4 Marks)

Ans:

We can write

W = E[X~|Y] = E[X−XM|Y] = E[X|Y]−E[XM|Y] = XM−E[XMY] = XM−XM = 0.

The last line resulted because X^MX^M is a function of YY, so

E[XM|Y] = XME[XM|Y] = XM.

First, note that

E[X~⋅g(Y)|Y] = g(Y)E[X~|Y] = g(Y)⋅W = 0.

Next, by the law of iterated expectations, we have

E[X~⋅g(Y)] = E[E[X~⋅g(Y)|Y]] = 0

E[X~⋅g(Y)] = E[E[X~⋅g(Y)|Y]] = 0

Ques: (2 Marks)
frequency distribution table

Ans: \(\text{Mean Deviation (X)} = \frac{\sum fidi}{\sum fi} = \frac{519}{40} =12.975 \)

Ques: (2 Marks)
frequency distribution table2

Ans:

Then the following formula is used:

\(\sigma = (\sum \frac{d^2}{n})^{\frac{1}{2}}\)

\(\sigma = \sum \frac{(X-X')^{2}}{n}\)

\(\sigma = (\frac{1270}{5})^{\frac{1}{2}}\)

\(\sigma = 15.937\)

Ques. Two cards are drawn random and one-by-one without any replacement from a well shuffled pack of 52 playing cards. Find the probability that one card is red and the other is black. (2 Marks)

Ans. P (one red and one black) = P (first red and second black) + P (first black and second red)

= \(\frac{26}{52} \times \frac{26}{51} + \frac{26}{52} \times \frac{26}{51}\) [without replacement]

= \(\frac{13}{51} + \frac{13}{51}\)

= \(\frac{26}{51}\)

Ques:Two groups are competing for the positions of the Board of Directors of a corporation. The probabilities that the first and second groups will win are 0.6 and 0.4 respectively. Further, if the first group wins, the probability of introducing a new product is 0.7 and the corresponding probability is 0.3 if the second group wins. Find the probability that the new product introduced was by the second group. (2 Marks)

Ans:

Let E1 = First group wins,

E2 = Second group wins

H = Introduction of new product.

P(E1) = 0.6,

P(E2) = 0.4

P(H/E2) = 0.3

P(H/E1) = 0.7

Now,

P(E2/H) = P

Ques: From a lot of 20 bulbs which include 5 defectives, a sample of 3 bulbs is drawn at random, one by one with replacement. Find the probability distribution of the number of defective bulbs. Also, find the mean of the distribution. (2 Marks)

Ans:

Let X denote the number of defective bulbs.

X = 0, 1, 2, 3.

Total bulbs : = 20 and defective bulbs = 5

Let E : the defective bulb is drawn, so \(p (E)=\frac{5}{20}=\frac{1}{4}=p,p(\overrightarrow{E})=\frac{3}{4}=q\)

As a sample of 3 bulb is drawn so, n = 3, hence 

\(p(x=r)= { }^3C_{r} (\frac{1}{4})^r(\frac{3}{4})^{3-r} = r = 0, 1, 2, 3\)

Thus, the following table represents the required probability distribution:

x 0 1 2 3
P(x) 27/64 27/64 9/64 1/64

Also mean, \(\sum x\times(px) = 0 + \frac{27}{64}+\frac{18}{64}+\frac{3}{64}=\frac{48}{64}+\frac{3}{4}\)

CBSE CLASS XII Related Questions

  • 1.

    \( \int e^{x}\left( \frac{2+\sin 2x}{1+\cos 2x} \right) dx \) is equal to :

      • \( \log \cos 2x + C \)
      • \( \sec^{2} 2x + C \)
      • \( e^{x}\tan x + C \)
      • \( e^{x}\cot x + C \)

    • 2.

      Find the sum of maximum and minimum values of \(f(x) = \sin x\,(1 + \cos x)\) in the interval \([0, \pi]\).


        • 3.

          The value of \( \left[ \tan^{-1}(-1) + \cos^{-1}\left(-\frac{1}{2}\right) + \sin^{-1}\left(\frac{1}{2}\right) \right] \) is :

            • \( \frac{7\pi}{12} \)
            • \( \frac{5\pi}{12} \)
            • \( -\frac{5\pi}{12} \)
            • \( \frac{\pi}{3} \)

          • 4.

            If \(P(A) = 0.3\), \(P(B) = 0.7\) and \(P(B/A) = 0.5\), then \(P(A \cup B)\) is :

              • \(0.35\)
              • \(0.85\)
              • \(0.5\)
              • \(0.21\)

            • 5.

              Solve the differential equation \( (x+y)\,dy + (x-y)\,dx = 0 \), given that \( y(1) = 1 \).


                • 6.

                  Find the product of the maximum and minimum values of the function \( f(x) = \cos x - \frac{1}{2}\cos 2x,\ x \in \left[0, \frac{\pi}{2}\right] \).

                    CBSE CLASS XII Previous Year Papers

                    Comments


                    No Comments To Show