Borrar filtros
Borrar filtros

quantifing goodness of fit between two data sets

21 visualizaciones (últimos 30 días)
yuval steinberg
yuval steinberg el 6 de En. de 2021
Comentada: Star Strider el 7 de En. de 2021
Hi everyone,
I have two data sets, one is empirical data gathered from an experiment and the other is data from a model that is suppose to simulate the experiment. Eventually it's just two vectors. I want to quantify the goodness of fit between the model and empirical data to a single number. how can I do this?
Thanks!!

Respuesta aceptada

Star Strider
Star Strider el 6 de En. de 2021
If ‘Q’ are your data and ‘Qest’ are the model values, one option is to compute the Coefficient of determination () value:
RMSE = sqrt(mean((Q - Qest).^2)); % Compute RMSE
OLSCF = @(b) sum((Q-Qfcn(b,yez)).^2);
SStot = sum((Q - mean(Q)).^2);
SSres = OLSCF(B);
Rsq = 1 - (SSres/SStot); % Compute R-squared
.
  6 comentarios
yuval steinberg
yuval steinberg el 7 de En. de 2021
sure, this is my first time on the forum:)
Star Strider
Star Strider el 7 de En. de 2021
Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Chemistry en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by