## Program for Mean Absolute Deviation

Given an array of size n, find mean absolute deviation. Prerequisite : Mean, Variance and Standard Deviation Examples: Input : arr[] = {10, 15, 15,… Read More »

## Program to find simple moving average

Simple Moving Average is the average obtained from the data for some t period of time . In normal mean, it’s value get changed with… Read More »

## Skewness of statistical data

Given data in array. Find skewness of the data distribution. Skewness is a measure of the asymmetry of a data distribution. Skewness is asymmetry in… Read More »

## Program for Coefficient of variation

Given an array of size n and the task is to find Coefficient of variation . Coefficient of variation is the ratio of standard deviation… Read More »

## Median and Mode using Counting Sort

Given an n sized unsorted array, find median and mode using counting sort technique. Thia can be useful when array elements are in limited range.… Read More »

## Program for Spearman’s Rank Correlation

Prerequisite : Correlation Coefficinet Given two arrays X[] and Y[]. Find Spearman’s Rank Correlation. In Spearman rank correlation instead of working with the data values… Read More »

## Rank of all elements in an array

Given an array of N integers with duplicates allowed. All elements are ranked from 1 to N in ascending order if they are distinct. If… Read More »

## Evaluation of Risk in Investments

Given two investment options A and B, we have tho find the less risky investment of the two. The two investments A and B are… Read More »

## Find mean of subarray means in a given array

You are given an array of n-elements you have to find the mean of the array as mean of all consecutive m-elements of array for… Read More »

## Number of elements greater than modified mean in matrix

Normally mean of matrix is the average of all elements present in matrix. Consider a modified mean as floor of mean of row-wise minimum and… Read More »

## Find combined mean and variance of two series

Given two different series arr1[n] and arr2[m] of size n and m. The task is to find the mean and variance of combined series. Examples… Read More »

## Minimum number of elements to add to make median equals x

A median in an array with the length of n is an element which occupies position number (n+1)/2 after we sort the elements in the… Read More »

## Program to find correlation coefficient

Given two array elements and we have to find the correlation coefficient between two array. Correlation coefficient is an equation that is used to determine… Read More »

## Program for weighted mean of natural numbers.

There are given an array of natural numbers and another array with corresponding weight of the number. Then we have to calculate the weighted mean.… Read More »

## Program for harmonic mean of numbers

Given an array of elements, find harmonic mean of numbers. Examples: Input : arr[] = {2.0, 1.0} Output : 1.3333 Harmonic mean = 2/(1/2.0 +… Read More »