In probability theory, Janson's inequality (also the Janson inequalities) is a collection of related inequalities that give exponential upper bounds on the probability that none, or unusually few, of a collection of dependent events occur. Each event is that a fixed set of elements is contained in a random subset, where elements are included independently. The inequalities are named after Svante Janson, who proved them in 1987–1990, and they are a central tool of the probabilistic method, particularly in the theory of random graphs.: 127
When the events are only weakly dependent, the bounds show that the probability that none of them occurs is roughly the same as if they were independent, matching the lower bound given by the Harris inequality. In this sense Janson's inequality plays a role for sums of dependent indicator variables similar to that of the Chernoff bound for independent ones. The inequalities bound only the lower tail of the number of events that occur; the corresponding upper tail behaves very differently and is much harder to control. Research on the inequality continues along several lines: sharper and exact estimates of the probability that no event occurs, extensions to more general dependent events, and the contrasting behavior of the upper tail.
A typical question is how likely it is that the random graph , in which each of the possible edges between vertices is present independently with probability , contains no triangle. Each potential triangle appears exactly when all three of its edges are present. These events are not independent, because two triangles can share an edge, but most pairs of potential triangles share no edges at all. Janson's inequality bounds the probability that no triangle appears using only two quantities: the expected number of triangles, and a measure of how much the triangles overlap.
In general, let be a finite set, and let be a random subset of obtained by including each element independently with probability . Let be a family of subsets of ; in the example, is the set of possible edges and consists of the edge sets of the potential triangles. For , let be the indicator random variable of the event , and let be the number of sets in that are contained in . Define
Here is the expected number of sets that occur. The quantity measures the dependence between them: it adds up, over all unordered pairs of distinct sets that overlap, the probability that both occur. Pairs of sets that do not overlap depend on disjoint groups of elements, so their events are independent and they contribute nothing.
With this notation,
and
The first bound is the more useful one when is small compared with ; the second is better when . A slightly sharper form of the first bound, due to Boppana and Spencer, is
If the events were independent, the probability that none of them occurs would be , which is at most . The first inequality says that, even with dependence, the probability that none of them occurs exceeds this bound by at most a factor of . When the overlaps are rare, so that is small compared with , the events behave almost as if they were independent. In that regime the probability that none occurs is close to , the probability that a Poisson random variable with mean equals zero; this is the "Poisson paradigm" of Alon and Spencer, an idea reflected in the title of Janson's 1990 paper, "Poisson approximation for large deviations".: 127
The second inequality covers the case of strong dependence. Since overlapping pairs are the only source of correlation, the variance of is at most , so the second bound has the form , much like a Gaussian tail estimate for a deviation of size . It improves exponentially on the bound given by Chebyshev's inequality and the second moment method; Janson and Warnke describe it as a one-sided exponential form of Chebyshev's inequality.
The events are all increasing, so by the Harris inequality their complements are positively correlated, which gives the lower bound: 127–128
If every event has probability tending to zero, the right-hand side is . Consequently, when in addition , the first Janson bound matches this lower bound and : the events behave as if they were independent.
Janson also extended the inequality to bound the probability that is substantially smaller than its mean. Let . For ,
When the sets in are pairwise disjoint, and the indicators are independent, and the bound reduces to a one-sided Chernoff bound. In 2016 Janson and Lutz Warnke showed that, when both the dependence and the individual probabilities are small, the exponent in this bound is asymptotically optimal, settling a question left open since Janson's 1990 paper.
The bounds above concern the lower tail of . For the upper tail, the probability that is much larger than its mean, no comparably simple estimate is available; Janson and Ruciński called this the "infamous upper tail" problem and surveyed approaches to it.
Harel, Mousset and Samotij determined the logarithmic upper tail probability asymptotically in two central cases, for every fixed . Let be the number of k-term arithmetic progressions () in the random subset of that contains each element independently with probability . Then
with as above. In the first range the upper tail is driven by the appearance of a long interval in the random set; in the second, behaves like a Poisson random variable.
Now let be the number of cliques on vertices in the random graph , with . Then
with an explicit formula in the intermediate case . The two terms correspond to the random graph containing an unusually large clique or a "hub" of vertices adjacent to almost all others. This sharpens earlier work of Chatterjee and of DeMarco and Kahn, who had independently determined this probability up to a constant factor in the exponent.
Janson's original proof was analytic, based on Laplace transforms. Most textbooks instead give a short, elementary argument due to Ravi Boppana and Joel Spencer, whose structure resembles the proof of the Lovász local lemma.: 129–131
The strategy is to consider the events one at a time and measure how much the earlier ones can influence each new one. List the sets of as , and let be the event . By the chain rule, the probability that none of the events occurs is a product of conditional probabilities:
Each factor is the probability that fails, given that all the earlier events have failed. If the events were independent, the conditioning would have no effect. The key estimate shows that it has only a small effect, controlled by the earlier sets that overlap :
To prove it, split the earlier events into those whose sets are disjoint from and those whose sets overlap it. The disjoint ones depend on different elements of , so is independent of them. A union bound over the overlapping ones then shows that the conditioning can lower the probability of by at most the sum of the terms ; the Harris inequality is what allows the conditioning on the disjoint events to be dropped from each of these terms.: 129–131
Using , each factor in the product is at most . Multiplying the factors adds the exponents. The terms sum to , and because each overlapping pair is counted only once, when the later of the two sets is reached, the correction terms sum to exactly . This gives .: 129–131
The other bounds follow from this one. Applying it to a random subfamily of , in which each set is kept independently with a suitably chosen probability, reduces the dependence enough to give the second inequality up to a constant factor in the exponent. Spencer gave another proof of the second inequality that loses a factor of 1/2 in the exponent. The lower-tail bound follows from the first inequality by an argument similar to the proof of the Chernoff bound, applied to an auxiliary family of events.
Janson's inequality grew out of a problem about coloring random graphs. In 1975 Geoffrey Grimmett and Colin McDiarmid showed that, with high probability, the chromatic number of the random graph lies between roughly and , and they conjectured that the lower bound gives the correct asymptotic value. The conjecture remained open for more than a decade.

At the 3rd International Seminar on Random Graphs and Probabilistic Methods in Combinatorics, held at Adam Mickiewicz University in Poznań from 27 June to 3 July 1987, Béla Bollobás presented a proof of the conjecture: the chromatic number of is asymptotically . The heart of the argument was to show that a random graph is extremely unlikely to have no large independent set, so unlikely that a union bound over all large sets of vertices can be applied. Bollobás proved this estimate with martingale methods based on Azuma's inequality. David Matula and Luděk Kučera gave a different proof, based on Matula's "expose-and-merge" method, which appeared in the same conference proceedings.
Both Janson and Spencer attended the meeting. Bollobás's lecture provided the motivation for Janson's work: by the end of the meeting, Janson had proved the first form of the inequality, using Laplace transforms. In a 2005 lecture at Uppsala University, Spencer headed the slide stating the inequality with the time of the discovery, "July 2nd, 1987 11:07 p.m.". Tomasz Łuczak independently found a related but less explicit bound for small subgraphs of random graphs, also using martingales.
Svante Janson, Tomasz Łuczak and Andrzej Ruciński published the result for subgraph counts in random graphs, including the second form of the inequality under mild symmetry assumptions, in the proceedings of the conference. In 1989 Ravi Boppana and Joel Spencer gave a short elementary proof, modeled on the proof of the Lovász local lemma, which became the standard textbook argument. In 1990 Janson proved the general form of the second inequality, together with the lower-tail bound, in the first volume of the journal Random Structures & Algorithms; the next article in the same issue was W. C. S. Suen's related correlation inequality for general dependent events.
The inequalities, with their proofs and applications, became part of the standard treatment of the probabilistic method in combinatorics, where they form the basis of what Alon and Spencer call the "Poisson paradigm".: 127–143 Lutz Warnke, in a lecture on joint work with Janson, described the inequality as "widely used in combinatorial probability/random graph theory". Modern expositions often derive the estimate at the core of the chromatic number problem from Janson's inequality instead of martingales.
Attention later turned to the limits of the method. Janson's inequality controls only the lower tail of the number of configurations, and in 2002 Janson and Ruciński titled their survey of the corresponding upper-tail problem "The infamous upper tail". For cliques in random graphs, the order of magnitude of the upper tail was determined independently by Sourav Chatterjee and by DeMarco and Kahn in 2012, and its exact asymptotics, for almost all sparse densities, by Matan Harel, Frank Mousset and Wojciech Samotij in 2022. On the lower-tail side, Oliver Riordan and Lutz Warnke showed in 2015 that the inequalities hold for arbitrary increasing events, and in 2016 Janson and Warnke showed that the lower-tail bound is asymptotically sharp when the dependence is small, closing a gap left open since 1990.
Many questions in probabilistic combinatorics reduce to estimating the probability that a random structure avoids every copy of some configuration: a random graph with no triangle, a random set of integers with no arithmetic progression, a random graph whose large vertex sets all contain an independent set. Janson's inequality is suited to such questions for three reasons. Its inputs, and , are first- and second-moment quantities that can usually be computed directly. Its bounds are exponentially small, so they survive a union bound over exponentially many cases, as in the application to the chromatic number below. And when the dependence is weak, the bound is asymptotically sharp.: 127–143
A basic example is the probability that the random graph contains no triangle. Here is the set of edges of the complete graph , each set in is the edge set of a triangle, , and , since two distinct triangles that share an edge span four vertices. If then , and the first inequality together with the Harris lower bound gives
For larger the second inequality gives an upper bound of the form , which matches, up to the constant in the exponent, the probability that the graph has no edges at all. The same method gives the probability that contains no copy of any fixed graph, and the lower-tail bound shows that the number of copies is unlikely to fall much below its mean.
The inequality can also be used to find large structures. For example, when , the first inequality shows that with probability tending to one, more than 99% of the vertices of can be covered by vertex-disjoint triangles.
To show that the chromatic number of is asymptotically , one needs that, with very high probability, every moderately large set of vertices contains an independent set of size close to ; color classes can then be removed one at a time. The second Janson inequality, applied to the number of independent sets of a given size, shows that the probability that a random graph on vertices has no such independent set is at most , small enough to apply a union bound over all candidate vertex sets. This gives a short proof of Bollobás's theorem.
In additive number theory, the Erdős–Tetali theorem states that for every there is an additive basis of order in which every sufficiently large integer has representations as a sum of elements. Its proof chooses the basis at random and needs the number of representations of each integer to be close to its mean; Janson's inequality was used to control the probability that this number is too small.: 139–142
Janson's inequality has been used in the study of pseudorandomness, for bounds on constant-depth circuits.