Close Menu
Computing.net
    Facebook X (Twitter) Instagram
    Computing.netComputing.net
    • News
      1. AI
      2. Crypto
      3. Gaming
      4. Hardware
      5. Security
      6. Software
      7. View All

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      AI Trading Bot Loses $441K in Crypto After Decimal Point Mistake

      February 23, 2026

      Tesla (TSLA) Stock: Goodbye Sedans, Hello Robots in Dramatic Production Shift

      January 29, 2026

      Palantir Technologies (PLTR) Stock: Why Bears May Be Wrong About Valuation Concerns

      January 29, 2026

      SUI Token Rallies 40% Following Major Staking Event and CME Futures Announcement

      May 12, 2026

      Chainlink (LINK) Surges to $10.40 as Network Activity Hits Eight-Month Peak

      May 12, 2026

      Dogecoin Whales Ramp Up Accumulation as DOGE Eyes Critical Breakout Levels

      May 12, 2026

      Bitcoin Holds $81K While Burry Flags Nasdaq Bubble and Oil Surges Past $105

      May 12, 2026

      Hamster Kombat: Unraveling TON’s Gaming Phenomenon

      August 7, 2024

      W-Coin: Exploring the Latest Telegram Tap-to-Earn Phenomenon

      August 7, 2024

      Hamster Kombat: 300 Million Players & Counting, HMSTR Token Airdrop Soon!

      July 31, 2024

      Hamster Kombat Developers Work with TON Team on Airdrop Solution

      July 30, 2024

      Nothing Expands Product Line with New AI Feature & Phone Update

      July 31, 2024

      Security Audit Reveals Concerns in Atari’s Blockchain Game on Base

      August 6, 2024

      SideWinder Group Targets Maritime Facilities in New Cyber Espionage Campaign

      July 30, 2024

      OAuth Implementation Flaw Exposes Millions of Websites to XSS Attacks

      July 30, 2024

      Hamster Kombat Players Face Growing Cybersecurity Threats

      July 25, 2024

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      Cookie Crumble: Google Halts Plans to Eliminate Third-Party Cookies in Chrome

      July 23, 2024

      Big Brother is Watching: Apple’s Creepy New Ad Urges iPhone Users to Ditch Chrome

      July 23, 2024

      Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

      May 12, 2026

      Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

      May 12, 2026

      GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

      May 12, 2026

      SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

      May 12, 2026
    • How To

      Batch Files: Tokens and Delimiters (FOR Loops)

      July 31, 2024

      Types of Ethernet Cabling & Electrical Low Voltage Wiring

      July 9, 2024

      What You Should Know About .JSON File Extension

      January 10, 2023

      Bkup File Extension

      November 19, 2022

      HEIC File Extension

      November 19, 2022
    • Office
      1. Excel
      2. Google Sheets
      3. View All

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024

      How to Remove Characters from Right in Excel

      July 30, 2023

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      Bullet Points in Google Sheets

      January 20, 2022

      Sort by Date in Google Sheets

      January 18, 2022

      Google Sheets Timestamp

      January 17, 2022

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024
    • Answers
    • About
    • Contact
    Facebook X (Twitter)
    Computing.net
    Excel

    How to Calculate Mean Squared Error (MSE) in Excel

    Ovo OdiokoBy Ovo OdiokoJanuary 9, 2023
    Twitter LinkedIn Email Telegram
    How to Calculate Mean Squared Error MSE in Excel
    Twitter LinkedIn Email Telegram

    Mean Squared Error (MSE) is one of the most routine parameters that is used for measuring the forecast accuracy of a model.

    In layman’s terms, it is the mean of the squares of the error margin between observed and expected values.

    The formula for MSE is:

    MSE = (1/N) * Σ(O – E)2 

    Where:

    Σ stands for summation or sum

    N = sample size

    O = observed data value (or actual value)

    E = expected data value (or forecasted value)

    Mean squared error gives a measure of the closeness of a regression line to a set of points.

    It achieves this using the squares of the distances between the points and the regression line.

    The squaring helps to eliminate negative signs.

    As a rule of thumb, the MSE value is inversely proportional to the accuracy level of the forecast model.

    This implies that a lower MSE value will result in a more accurate forecast model and vice-versa.

    Contents:

    Toggle
    • How to Calculate Mean Squared Error (MSE) in Excel
    • Step 1: Set up the table of values
    • Step 2: Calculate the “squared error” for each entry.
    • Step 3: Calculate the mean squared error
    • Summary & Conclusion

    How to Calculate Mean Squared Error (MSE) in Excel

    It’s pretty easy and straightforward.

    In literally three steps, you’re done!

    In this short tutorial, we’ll calculate the mean square error between the actual and forecasted number of cars (in thousands) manufactured by company X between 2011 and 2022.

    Step 1: Set up the table of values

    First, we arrange the observed and expected values in adjacent columns as shown below:

    Step 2: Calculate the “squared error” for each entry.

    From the initial formula provided for MSE in the introductory part of this article, the term (O – E)2 is known as the squared error.

    We will use this formula to add an extra column to our table of values:

    When we cascade this to all the rows of the table, the resulting table is as shown below:

    Step 3: Calculate the mean squared error

    Next, we calculate the mean squared error by simply finding the arithmetic mean (or average) of the squared errors, using the “AVERAGE” function in excel.

    The resulting MSE of cars manufactured by company X between 2011 and 2022 is 3.25 as shown in the final table below:

    This result can be verified using MATLAB, by using the mse(O, E) function

    Where:

    • O = observed data value (or actual value)
    • E = expected data value (or forecasted value)

    The same example can be modelled by creating an array of both observed and expected values, and then applying the mse(O, E) function to calculate the MSE between the observed values and the expected values.

    The resulting MSE of cars manufactured by company X between 2011 and 2022 is 3.25 as shown in the MATLAB model below.

    Summary & Conclusion

    In this brief article, we have outlined what mean square error (MSE) is, its formula and its uses.

    We stated that it is used to assess the accuracy of a model.

    We also saw an example of how to compute MSE by calculating the mean square error of cars manufactured by a fictitious car company – company X.

    In addition to MSE, other metrics that can be used to assess the accuracy of a model are mean absolute deviation (MAD) and mean absolute percentage error (MAPE).

    Share. Twitter LinkedIn Email Telegram
    Avatar photo
    Ovo Odioko
    • Website
    • LinkedIn

    Ovo is a highly specialized Computer and Networking Expert with experience in Windows, Cisco, Microsoft Office (Excel, Word, etc) and Networking engineering. Ovo is a creative, team player that loves sharing his experience with technology with readers to follow along. He has great attention to detail when discussing various technologies, tutorials and guides.

    Related Posts

    How to Convert Column List to Comma Separated List in Excel

    July 24, 2024

    How to Find the Last Monday of the Month in Excel

    July 24, 2024

    Convert Bytes to MB or GB in Excel: 3 Methods!

    July 24, 2024

    How to Remove Characters from Right in Excel

    July 30, 2023

    How to Create a Stem and Leaf Plot in Excel

    January 10, 2023

    How to Remove Macros From an Excel Workbook

    January 10, 2023
    Add A Comment

    Comments are closed.

    Latest

    Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

    May 12, 2026

    Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

    May 12, 2026

    GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

    May 12, 2026

    SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

    May 12, 2026

    Trump Dismisses Iran Peace Proposal — Oil Markets React as Hormuz Remains Restricted

    May 12, 2026
    • Facebook
    • Twitter

    Latest Reviews

    Meta Platforms Shares Tumble 8% Despite Strong Q1 Performance Amid AI Investment Surge

    April 30, 2026

    Flush.com Review: Casino & Sportsbook With 275% Welcome Bonus

    March 7, 2026

    Katsubet Review: Crypto Casino With 300% Welcome Bonus & Free Spins

    March 7, 2026

    7Bit Review: Crypto Casino With 325% Bonus & 250 FS

    March 7, 2026

    Mega Dice Review: Crypto Casino With 200% Bonus & 50 Free Spins, Legit?

    March 7, 2026


    Home / Privacy Policy / Terms & Conditions

    Computing.net © 1996 - 2026 Kooc Media Ltd. All rights reserved. Registered Company No.05695741

    Type above and press Enter to search. Press Esc to cancel.