Quadratic Mean

Quadratic Mean

Quadratic mean :

Quadratic mean or also called root mean square (RMS), it's a type of mean like harmonic or geometric mean that we've already seen in previous articles.

The quadratic mean (rms) of a set of numbers is the square root of the sum of the squares of the numbers divided by the number of terms.

RMS is important in many branches of physics, chemistry and engineering, example; When you throw a ball it goes up in the air, slowing as it travels, then comes down again faster with the quadratic mean you can have an idea about the speed.

Formula :

rms, quadratic, quadratic mean

  • RMS = root mean square
  • n = number of observations
  • Xi = elements values
  • The formula exists in discrete and continuous. In the continuous case it is the same formula except that instead of Xi it is Ci (center of value)
  • We can also calculate a weighted quadratic mean by the formula:

rms, quadratic, quadratic mean

Application :

Find the Root Mean Square of X, where X = [2, 3, 4, 7, 8]

  • The number of elements (n) is 5
  • Square all of the numbers X1 = [22, 32, 42, 72, 82]
  • Add them up ; 4+9+16+49+64 =142
  • Divide the sum on the number of elements n 142/5 =28.4
  • Root of the result ?28.4
  • RMS = 5.33

Weighted quadric mean (discrete?):

rms, quadratic, quadratic mean

  • RMS = √?(1220/200)
  • RMS = 2.47

Weighted root mean square (continuous):

rms, quadratic, quadratic mean

  • Here we will take the central value of Xi, for the first row it is ( 0+5)/2
  • RMS = √?(31375/300)
  • RMS = 10.23

Example in Python

import numpy as np


X = [2,3,4,7,8]


squared_X = [x ** 2 for x in X]
squared_X


sum_squared = np.sum(squared_X)
sum_squared


a = sum_squared/len(X)
a


rms = np.sqrt(a)
rms        

要查看或添加评论,请登录

Dr. Oualid S.的更多文章

  • Building Recommendation engines using ALS

    Building Recommendation engines using ALS

    In this article, I will cover how to build a recommendation engine using ALS, illustrated by three different examples…

    2 条评论
  • Van Westendorp’s Price Sensitivity Meter (PSM)

    Van Westendorp’s Price Sensitivity Meter (PSM)

    In this article related to the price Strategies in the series of International Marketing I will cover the Van…

    3 条评论
  • Herfindahl-Hirschman Index (HHI)

    Herfindahl-Hirschman Index (HHI)

    In this article, I will discuss a key metric in market research known as the Herfindahl-Hirschman Index (HHI), which is…

  • Evaluating a company’s portfolio with the MABA Analysis

    Evaluating a company’s portfolio with the MABA Analysis

    In this article, we will cover another tool that can be used in international marketing called MABA Analysis. This tool…

  • 7S McKinsey Model for Internal Analysis

    7S McKinsey Model for Internal Analysis

    It's been quite a while since I wrote an article on business strategies, so I thought I'd kick off this week by…

    2 条评论
  • Step by Step guide A/B for UX (Binary Data)

    Step by Step guide A/B for UX (Binary Data)

    In the last article I covered how to execute a hypothesis test illustrated by a UX research design where we compared…

  • Retail Analytics project

    Retail Analytics project

    This article is an introduction to the world of machine learning, for anyone wanting to participate in small-scale…

  • From Sci-Fi to Reality | Exploring the root of AI

    From Sci-Fi to Reality | Exploring the root of AI

    For people who have not jumped into AI or are just hooked on generative AI and want to understand how things work?…

  • Apache Airflow Building End To End ETL Project

    Apache Airflow Building End To End ETL Project

    In that article I will cover the essential that you need to know about Airflow, if you don’t know what it is, I wrote…

  • Diving Deep into Significance Analysis

    Diving Deep into Significance Analysis

    In the constantly changing landscape of scientific research, the pursuit of significance extends well beyond the usual…

社区洞察

其他会员也浏览了