Identifying the influence of stochastic processes and of deterministic processes, such as dispersal of individuals of different species and trait‐based environmental filtering, has long been a challenge in studies of community assembly. Here, we present the Univariate Community Assembly Analysis (UniCAA) and test its ability to address three hypotheses: species occurrences within communities are (a) limited by spatially restricted dispersal; (b) environmentally filtered; or (c) the outcome of stochasticity—so that as community size decreases—species that are common outside a local community have a disproportionately higher probability of occurrence than rare species. The comparison with a null model allows assessing if the influence of each of the three processes differs from what one would expect under a purely stochastic distribution of species. We tested the framework by simulating “empirical” metacommunities under 15 scenarios that differed with respect to the strengths of spatially restricted dispersal (restricted vs. not restricted); habitat isolation (low, intermediate, and high immigration rates); and environmental filtering (strong, intermediate, and no filtering). Through these tests, we found that UniCAA rarely produced false positives for the influence of the three processes, yielding a type‐I error rate ≤5%. The type‐II error rate, that is, production of false negatives, was also acceptable and within the typical cutoff (20%). We demonstrate that the UniCAA provides a flexible framework for retrieving the processes behind community assembly and propose avenues for future developments of the framework.