Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Help finding the date for which my curve fit predicts 5% of positive daily tests.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm im about just a done with a project which analyzes a positive COVID-19 test in Oregon but im running into a problem thinking about how to create a formula which will find where the curve predicts 5% of positive daily tests.
%Prediction 150 days from data
npredict=n+100;
x=1:npredict;
a=curve1.a;
b=curve1.b;
predict=(1./x/a/sqrt(2*pi).*exp(-(log(x)-b).^2/2/a^2))*dataPositiveL;
% Target: find date for which curve fit predicts 5% of positive daily tests
daytarget=predict*.05
[err idx]=min(abs(predict-daytarget))
% Use date algebra to find the date
t0=datetime(2020,3,4);
daytarget = t0+idx
I think I just dont understand the wording of what is being looked for.
1 commentaire
Rik
le 20 Mai 2020
Modifié(e) : Rik
le 20 Mai 2020
A copy of this question in case it get deleted too:
Help finding the date for which my curve fit predicts 5% of positive daily tests.
I'm im about just a done with a project which analyzes a positive COVID-19 test in Oregon but im running into a problem thinking about how to create a formula which will find where the curve predicts 5% of positive daily tests.
%Prediction 150 days from data
npredict=n+100;
x=1:npredict;
a=curve1.a;
b=curve1.b;
predict=(1./x/a/sqrt(2*pi).*exp(-(log(x)-b).^2/2/a^2))*dataPositiveL;
% Target: find date for which curve fit predicts 5% of positive daily tests
daytarget=predict*.05
[err idx]=min(abs(predict-daytarget))
% Use date algebra to find the date
t0=datetime(2020,3,4);
daytarget = t0+idx
I think I just dont understand the wording of what is being looked for.
Réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!