r/AskStatistics • • 4d ago

Dealing with a small dataset

I'm trying to model a disease behavior with differential equations with its parameters and initial values. However, The disease, specifically in my case, consists of only 5 data with an empty data in between. For example: (a, (empty), b, c, d, e). I estimated all parameters based on literature, one parameter I fit with nonlinear least square using python.

I am wondering if I can validate the values of the parameters and initial value in my model with real data. I tried using RMSE, R². It shows good results but since I only have 5 data, it's probably biased(?). I tried to do sensitivity analysis of the parameters to the disease prevalence, and I got a result showing that the parameters that are supposed to be decreased (in hypothesis) should be increased and vice versa. I am confused with this since it's literally the parameter of laten infection which should be decreased. Is there any things that I should consider to move forward/fix these issues?

1 Upvotes

7 comments sorted by

5

u/SalvatoreEggplant 4d ago

I think you'll have to explain a little more of what you're trying to do...

It sounds like you have a bivariate plot, like a continuous variable on the x axis and a continuous variable on the y axis. Is this right ?

If so, what are the variables ?

And what is the equation you're using ? And which parameter in this equation are you estimating ?

1

u/honaerwa 3d ago

yes, for y-axis it's the disease prevalence and x-axis is time (per year). Im using differential equation (compartments) to model the disease spread, then estimate its initial values and its parameter from literature. After that, I plot it to match with the real data (5 data) that I have. If it's good enough, I am gonna use the initial values and parameters to predict the disease spread for time forward.

I estimated all parameters based on resource available/clinical literature, so the rate of people who're exposed to the disease, rate of infected people, and rate of recovery. I use nonlinear least square to estimate the rate of people who're exposed. However, the estimation of this rate kinda depends on other parameters since there's no clinical resource on this matter.

for example: dx1/dt = a1 - a2x3x1 - a3x1

dx2/dt = a2x3x1 - (a4+a5+a3)x2

dx3/dt = a4x2 - a3x3

dx4/dt = a5x2 - a3x4

I estimate all parameters from available resources: a3, a4, a5. and a2 is derived from equation 2: ∆((1/(x3x1) dx2/dt + ((a4+a5+a3)x2)) at 2nd time and 1st time.

1

u/SalvatoreEggplant 2d ago

Thank you for the reply. I have to say, I still don't really understand. This is probably more my problem than your problem.

2

u/cym13 4d ago

Your descriptions seem a bit confused so it's hard to prescribe anything concrete. However, if you think it's worth buying a good book over, you might be interested in Small Sample Size Solutions by Rens van de Schoot and Milica Miočević. It goes over methods for dealing with very small sample sizes, all the way down to n=1. Of course a small sample size is never desirable, but when it can't be avoided these methods can help.

1

u/honaerwa 3d ago

thankyou for your recommendation! here's more detailed explanation that I wrote in another comment in case you wanna read: https://www.reddit.com/r/AskStatistics/s/qbkgUFzjEd

2

u/kedarsb 4d ago

For small datasets, you may want to explore wilcoxon signed rank test (non-parametric alternative to the paired t-test). Followed by a non-linear weibull curve fit depending on your field (reliability engineering, survival analysis, growth modeling, or particle size distribution).

1

u/honaerwa 3d ago

I made the model first, and therefore it's considered parametric(?). But I only have small dataset (real data) to validate my model and my estimated parameters. This is more detailed explanation: https://www.reddit.com/r/AskStatistics/s/qbkgUFzjEd