probCounts2MN: Compute the probability that two subsets of sets M and N...

View source: R/prob_counts.R

probCounts2MNR Documentation

Compute the probability that two subsets of sets M and N intersect in k points

Description

This function computes the probability that two subsets of sets M and N intersect in k points. Intersection sizes (M with N, A with N and B with M) must be provided.

Usage

probCounts2MN(intMN, intAN, intBM, k)

Arguments

intMN

Number of elements in the intersection of sets M and N.

intAN

Number of elements in the intersection of sets A (subset of M) and N.

intBM

Number of elements in the intersection of sets B (subset of N) and M.

k

Number of elements in the intersection of sets A and B.

Value

A numeric value in [0, 1] representing the probability that two subsets of sets M and N intersect in k points.

Examples

probCounts2MN(8, 6, 4, 2)


LISTO documentation built on April 25, 2026, 5:06 p.m.