## Probability that a random pair chosen from an array (a[i], a[j]) has the maximum sum

Given an array arr[] of N integers, the task is to find the probability of getting the maximum sum pair (arr[i], arr[j]) from the array… Read More »

## Probability that a N digit number is palindrome

Given an integer N, the task is to find the probability that a number with a number of digits as N is a palindrome. The… Read More »

## Probability such that two subset contains same number of elements

Given a set containing N elements. If two subset X and Y picked then find the probability that both of them contains the same number… Read More »

## Probability of distributing M items among X bags such that first bag contains N items

Given three integers N, M, X. The task is to find the probability of distributing M items among X bags such that first bag contains… Read More »

## Probability of getting more heads than tails when N biased coins are tossed

Given an array p[] of odd length N where p[i] denotes the probability of getting a head on the ith coin. As the coins are… Read More »

## Probability of A winning the match when individual probabilities of hitting the target given

Given four integers a, b, c and d. Player A & B try to score a penalty. Probability of A shooting the target is a… Read More »

## Probability and Statistics | Simpson’s Paradox (UC Berkeley’s Lawsuit)

Simpson’s Paradox in layman’s term is the reversal of relationship within data with respect to the subgroups of data after combining those subgroups data. For… Read More »

## Find probability of selecting element from kth column after N iterations

Given a matrix M of order N*M where Mij represent the occurrence of j in row i. The task is to find the probability of… Read More »

## Find probability that a player wins when probabilities of hitting the target are given

Given four integers p, q, r and s. Two players are playing a game where both the players are hitting a target and the first… Read More »

## Expected number of coin flips to get two heads in a row?

Problem : Find the expected number of times a coin must be flipped to get two heads consecutively? Solution : The key is to observe… Read More »

## Shannon-Fano Algorithm for Data Compression

DATA COMPRESSION AND ITS TYPES Data Compression, also known as source coding, is the process of encoding or converting data in such a way that… Read More »

## Probability of getting more value in third dice throw

Given that the three players playing a game of rolling a dice. Player1 rolled a dice got A and player2 rolled a dice got B.… Read More »

## Probability of getting two consecutive heads after choosing a random coin among two different types of coins

Given two coins which have probability of getting heads p% and q% respectively, the task is to determine the probability of getting two consecutive heads… Read More »

## Finding the probability of a state at a given time in a Markov chain | Set 2

Given a Markov chain G, we have the find the probability of reaching the state F at time t = T if we start from… Read More »

## Probability of getting a sum on throwing 2 Dices N times

Given the sum. The task is to find out the probability of occurring that sum on the thrown of the two dice N times. Probability… Read More »