filmov
tv
Geometric mean of Dataset |python
![preview_player](https://i.ytimg.com/vi/l5rv08it-Gw/maxresdefault.jpg)
Показать описание
How to find the Geometric Mean of a Dataset ❔
Here,
eg. There is a dataset of marks obtained by the students.
Algorithm (GM of Discrete series):
1️⃣ Input number of data element: n
2️⃣ Take input of marks (data) and number of Students (frequency): data and list are Python list
3️⃣ Take loop from 0 to n-1
Calculate: ➡️Sologx = log (data [ ]) * freq[ ]
and ➡️N = N+ freq [ ]
4️⃣ Calculation of Anti-log by pow():
➡️ gm = pow( 10, Sologx/N)
Solog : sum of log
pow : power function
Here,
eg. There is a dataset of marks obtained by the students.
Algorithm (GM of Discrete series):
1️⃣ Input number of data element: n
2️⃣ Take input of marks (data) and number of Students (frequency): data and list are Python list
3️⃣ Take loop from 0 to n-1
Calculate: ➡️Sologx = log (data [ ]) * freq[ ]
and ➡️N = N+ freq [ ]
4️⃣ Calculation of Anti-log by pow():
➡️ gm = pow( 10, Sologx/N)
Solog : sum of log
pow : power function