Differences Between WF and Hudson's Model Outputs #2372
-
I have encountered some unexpected results when comparing temporal statistical outputs between different simulation models. Specifically, using a constant population size of 30,000, the Standard Coalescent (Hudson’s model) produces nearly constant statistics over time, while the Discrete Time Wright-Fisher (DTWF) model diverges from Hudson's after a couple of generations. I then tested other population sizes as well and observed similar patterns, though it seems that as population size increases, the DTWF model results become more similar to those from Hudson's. The plots below are from 10 replicates with 95% confidence intervals. Here's a sample script using the DTWF model. The only change made to run the Hudson model was replacing
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Thanks for this @Rhinezly, it's not obvious to me why taking samples at different time points should matter here. It think it's sufficient to look at the number of mutations plot. Would you mind sharing the code used to compute that, and placing the plots inline here as images, so it's easier for people to view them? |
Beta Was this translation helpful? Give feedback.
Perhaps the problem is here:
In 'hudson', the only nodes whose times are exactly equal to the sampling times will indeed be the sample nodes, but in
dtwf
(since it's in discrete time), there will be other nodes whose time is exactly equal to those times. Could you swap out this line forand see if that changes things?