Hostname: page-component-76d6cb85b7-6jg5l Total loading time: 0 Render date: 2026-07-15T13:09:02.537Z Has data issue: false hasContentIssue false

Estimating minimum sample size for detecting phenotypic dimorphism using computational simulations

Published online by Cambridge University Press:  15 August 2025

Yibo Zhou
Affiliation:
State Key Laboratory for Mineral Deposits Research, School of Earth Sciences and Engineering, Centre for Research and Education on Biological Evolution and Environment and Frontiers Science Center for Critical Earth Material Cycling, Nanjing University , Nanjing 210023, China
Xudong Hou
Affiliation:
State Key Laboratory for Mineral Deposits Research, School of Earth Sciences and Engineering, Centre for Research and Education on Biological Evolution and Environment and Frontiers Science Center for Critical Earth Material Cycling, Nanjing University , Nanjing 210023, China
Yanhong Pan*
Affiliation:
State Key Laboratory for Mineral Deposits Research, School of Earth Sciences and Engineering, Centre for Research and Education on Biological Evolution and Environment and Frontiers Science Center for Critical Earth Material Cycling, Nanjing University , Nanjing 210023, China
*
Corresponding author: Yanhong Pan; Email: panyanhong@nju.edu.cn

Abstract

Polymorphism, the occurrence of different morphs of a trait within the population of a single species, plays a crucial role in species diversification, genetic variation, and adaptation. Detecting polymorphism in a single character helps us to understand population dynamics, particularly in species that inhabit diverse environments. However, detecting polymorphisms in fossil taxa is challenging due to the fragmentary and incomplete records. Dimorphism, defined as the occurrence of different morphs of a trait within the population of a single species, represents the simplest and most common form of polymorphism. This study focuses on dimorphism instead of polymorphism, which allows for a more streamlined analysis. We use computational simulation experiments to estimate the minimum sample size required to detect bimodal distribution in univariate morphological variables. We describe the morphological diversity of a measured variable (e.g., body mass or skeletal length) as a probability density distribution with specific parameter sets. Subsequently, we simulate the diversity of the measured variable with varying sample sizes and conduct resampling procedures to ensure the robustness. Four key parameters that characterize the probability distribution are identified as having significant influence on the minimum sample size for dimorphism recognition. According to the simulation experiments, a model is built to estimate the minimum sample size for dimorphism recognition based on these parameters. A dataset from extant avian and reptilian species is used to test the model. Furthermore, we calculate a reference for the minimal sample size required for assessing phenotypic dimorphism in fossil avian taxa by applying parameters derived from extant avian species.

Information

Type
Methodological Advances
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of Paleontological Society
Figure 0

Figure 1. Effect of the dimorphism index (DI) on sample size, illustrating the effect of the DI on minimum sample size when controlling other parameters. Each column represents a set of parameter combinations. For example, the first column (column A) represents the combination Abs SD = 0.71, SD ratio = 0.5, Abs skew = 0, Skew Diff = 0, and Pop ratio = 1. Line charts, the first image in each column, illustrate how the minimum sample size for detecting bimodality changes with variations in the DI. The subsequent images in each column, from top to bottom, demonstrate the changes in the distribution patterns of the two phenotypic subgroups as the DI increases. The red and blue probability plots represent the distribution patterns of the two phenotypic subgroups, while the black curve represents their combined distribution, that is, the overall population distribution. Abs SD, absolute standard deviation of both; SD ratio, standard deviation ratio; Abs Skew, absolute skewness of both; Skew Diff, skewness difference; Pop ratio, relative population size ratio.

Figure 1

Figure 2. Effect of the absolute magnitude of mean (Abs mean), expressed as mean difference (MD) in main text, and the mean difference, expressed as location of mode (LM) in main text, on the minimum sample size for detecting bimodality. A, Heat map illustrating how the minimum sample size for detecting bimodality varies with the combined changes in the Abs mean and mean difference. Differences in colors indicate different minimum sample sizes for detecting bimodality. B, Line chart between the minimum sample size for detecting bimodality and the Abs mean. Each line shows how the minimum sample size for detecting bimodality changes with variations in the Abs mean at a constant mean difference, with different lines representing different mean differences. C, Line chart between the minimum sample size for detecting bimodality and mean difference. Each line shows how the minimum sample size for detecting bimodality changes with variations in the mean difference at a constant Abs mean, with different lines representing different Abs means.

Figure 2

Figure 3. Distribution patterns with changes in dimorphism index (DI) and absolute magnitude of the standard deviation of both groups (Abs SD) at a constant standard deviation ratio (SD ratio). The horizontal arrow represents changes in the DI, while the vertical arrows represent changes in the Abs SD.

Figure 3

Figure 4. Distribution patterns with changes in dimorphism index (DI) and absolute magnitude of the standard deviation of both groups (Abs SD) on the left and the corresponding ACR test results on the right. The left column displays the distribution patterns, corresponding to the nine plots in Fig. 3. In each row, the plot on the right shows the results of the ACR test for simulation data, which was generated from the distribution pattern on the left. For each distribution pattern combination, random sampling was performed with varying sample sizes, ranging from 10 to 1000. For each specific sample size (e.g., n = 100), 500 repeated samplings were performed.

Figure 4

Figure 5. Effect of the dimorphism index (DI) and absolute magnitude of the standard deviation of both groups (Abs SD) on the minimum sample size for detecting bimodality. A–C, Heat maps illustrating how the minimum sample size varies with the combined changes in the DI and Abs SD. Differences in color indicate different minimum sample sizes for detecting bimodality. The gray area indicates that the minimum sample size for detecting bimodality exceeds 1000. D–F, Line charts showing the relationship between sample size and Abs SD. Each line shows how the minimum sample size for detecting bimodality changes with variations in the Abs SD at a constant DI, with different lines representing different DIs. A–D, B–E, and C–F represent three parallel experiments with different standard deviation ratios (SD ratio): 1, 1.25, and 1.5, respectively.

Figure 5

Figure 6. Effect of the dimorphism index (DI) and standard deviation ratio (SD ratio) on the minimum sample size. A–C, Heat maps illustrating how the minimum sample size varies with the combined changes in DI and SD ratio. Differences in color indicate different sample size. The gray area indicates that the minimum sample size for detecting bimodality exceeds 1000. D–F, Line charts showing the relationship between sample size and SD ratio. Each line shows how the minimum sample size for detecting bimodality changes with variations in the SD ratio at a constant DI, with different lines representing different DIs. A–D, B–E, and C–F represent three parallel experiments with Abs SD: 1, 1.5, and 2, respectively.

Figure 6

Figure 7. Heat map illustrating how the minimum sample size for detecting bimodality varies with the combined changes in the dimorphism index (DI) and standard deviation of one group (SD of one group). Differences in color indicate different minimum sample sizes for detecting bimodality. The gray area indicates that the minimum sample size for detecting bimodality exceeds 1000.

Figure 7

Figure 8. Effect of the dimorphism index (DI) and absolute magnitude of the skewness of both groups (Abs Skew) on the minimum sample size for detecting bimodality. A–C, Heat maps illustrating how the minimum sample size varies with the combined changes in DI and Abs Skew. Differences in color indicate different sample sizes. The gray area indicates that the minimum sample size for detecting bimodality exceeds 1000. D–I, Line charts showing the relationship between sample size and Abs Skew. Each line shows how the minimum sample size changes with variations in the Abs Skew at a constant DI, with different lines representing different DIs. A–D–G, B–E–H, and C–F–I represent three parallel experiments with skewness difference (Skew Diff): 0, 0.25, and 0.5, respectively. When the DI ranges from 0.3 to 0.4, the relationship between the sample size and Abs Skew is more significantly influenced by the DI. Therefore, G–H–I further illustrates the changes in sample size with variations in the Abs Skew for DI values between 0.3 and 0.4, providing additional information to supplement D–E–F.

Figure 8

Figure 9. Effect of the dimorphism index (DI) and skewness difference (Skew Diff) on the minimum sample size for detecting bimodality. A–C and J, Heat maps illustrating how the minimum sample size for detecting bimodality varies with the combined changes in the DI and Skew Diff. Differences in color indicate different minimum sample sizes for detecting bimodality. The gray area indicates that the minimum sample size for detecting bimodality exceeds 1000. D–I, K, and L, Line charts showing the relationship between the sample size and Skew Diff. Each line shows how the minimum sample size for detecting bimodality changes with variations in the Skew Diff at a constant DI, with different lines representing different DIs. A–D–G, B–E–H–J–K–L, and C–F–I represent three parallel experiments with Abs Skew: −0.5, 0, and 0.5, respectively. When the DI ranges from 0.3 to 0.4, the relationship between the sample size and Skew Diff is more significantly influenced by the DI. Therefore, G–H–I and L further illustrate the changes in sample size with variations in Skew Diff for DI values between 0.3 and 0.4, providing additional information to supplement D–E–F and K. When Abs Skew = 0, the Skew Diff exhibits a wider range of variation (−1.9 to 1.9). Therefore, J, K, and L specifically show how the minimum sample size for detecting bimodality changes as the Skew Diff ranges from −1.9 to 1.9. To allow for parallel comparison with Abs Skew = −0.5 (A–D–G) and 0.5 (C–F–I), B–E–H are retained, where the Skew Diff ranges from −0.9 to 0.9, consistent with A–D–G and C–F–I.

Figure 9

Figure 10. Heat map illustrating how the minimum sample size for detecting bimodality varies with the combined changes in the dimorphism index (DI) and skewness of one group. Differences in color indicate different minimum sample sizes for detecting bimodality. The gray area indicates that the minimum sample size for detecting bimodality exceeds 1000.

Figure 10

Figure 11. Effect of the dimorphism index (DI) and relative population size ratio of the two phenotypic groups (Pop ratio) on the minimum sample size for detecting bimodality. A, Heat map illustrating how the minimum sample size for detecting bimodality varies with the combined changes in the DI and Pop ratio. Differences in colors indicate different sample size. The gray area indicates that the minimum sample size for detecting bimodality exceeds 1000. B and C, Line charts showing the relationship between the minimum sample size for detecting bimodality and Pop ratio. Each line shows how minimum sample size for detecting bimodality changes with variations in Pop ratio at a constant DI, with different lines representing different DIs. When the DI ranges from 0.3 to 0.5, the relationship between the minimum sample size for detecting bimodality and Pop ratio is more significantly influenced by the DI. Therefore, C further illustrates the changes in the minimum sample size for detecting bimodality with variations in the Pop ratio for the DI values between 0.3 and 0.5, providing additional information to supplement B.

Figure 11

Figure 12. Scatter plot of the minimum sample size for detecting bimodality and the coefficient of dimorphism, indicating the effect of the coefficient of dimorphism on the minimum sample size for detecting bimodality. Differences in color indicate different minimum sample sizes for detecting bimodality.

Figure 12

Figure 13. Schematic showing the simulation experiments, construction of the model, and the use of neontological data to test the model to estimate the minimum sample size for detecting bimodality. A–D, Steps of computer simulation experiment and model construction. E–G, Steps of estimating parameters of extant avian. H and I, Steps of model validation and estimate of the minimum sample size for detecting bimodality. A, A set of distribution patterns based on designed parameters. B, Relationship between the minimum sample size for detecting bimodality and the distribution parameters. C, Several sets of the relationship between the minimum sample size for detecting bimodality and the distribution parameters. D, Artificial neural network (ANN) model used to estimate the minimum sample size for detecting bimodality based on input distribution parameters: coefficient of dimorphism (CD), absolute magnitude of the standard deviation of both groups (Abs SD), standard deviation ratio (SD ratio), and relative population size ratio of the two phenotypic groups (Pop ratio). Specifically, the ANN includes one input layer with four input nodes (I1, I2, I3, and I4), one output layer with one output variable (O1), and one hidden layer with 32 nodes labeled as H1 through H32. Bias nodes (B1 and B2) are also connected to the hidden and output layer. Positive weights are plotted as black lines, and negative weights are plotted as gray lines between layers. Line thickness is in proportion to the relative magnitude of each weight. E, Plot of log(SD of body mass) versus log(mean of body mass) for estimating SD of body mass. F, Distribution of coefficient of dimorphism. G, Distribution of Pop ratio. H, Model validation according to neontological population data. I, Estimate of minimum sample size for detecting bimodality based on extant avian population data. All silhouettes were sourced PhyloPic (http://phylopic.org/) under a public domain license.

Figure 13

Figure 14. Distribution of parameters from extant avian. A, Distribution of dimorphism index. B, Distribution of standard deviation. C, Distribution of standard skewness. D, Distribution of relative population size ratio. E, Distribution of coefficient of dimorphism. F, Scatter plots and regression line of log (SD of body mass) vs. log (mean of body mass). SD, standard deviation.