Skip to content

Tag Archives: statistical-algorithms

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
Normally mean of the matrix is the average of all elements present in the matrix. Consider a modified mean as the floor of the mean… Read More
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
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
Given two array elements and we have to find the correlation coefficient between two arrays. The correlation coefficient is an equation that is used to… Read More
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
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 + 1/1.0)… Read More
Interpolation is the technique of estimating the value of a function for any intermediate value of the independent variable, while the process of computing the… Read More
Given an array of n integers. We are allowed to add k additional integer in the array and then find the median of the resultant… Read More
Given an array, we need to calculate the variance and standard deviation of the elements of the array. Examples :   Input : arr[] = [1, 2,… Read More
The quartiles of a ranked set of data values are three points which divide the data into exactly four equal parts, each part comprising of… Read More
The Secretary Problem also known as marriage problem, the sultan’s dowry problem, and the best choice problem is an example of Optimal Stopping Problem. This… Read More
Given a sorted matrix of size n*n. Calculate the mean and median of the matrix .Examples:   Input : 1 2 3 4 5 6 7… Read More
Given n size unsorted array, find it’s mean and median.  Mean of an array = (sum of all elements) / (number of elements) Median of… Read More
We are given a row-wise sorted matrix of size r*c, we need to find the median of the matrix given. It is assumed that r*c… Read More