필터 지우기
필터 지우기

quantifing goodness of fit between two data sets

조회 수: 21 (최근 30일)
yuval steinberg
yuval steinberg 2021년 1월 6일
댓글: Star Strider 2021년 1월 7일
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!!

채택된 답변

Star Strider
Star Strider 2021년 1월 6일
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
yuval steinberg
yuval steinberg 2021년 1월 7일
sure, this is my first time on the forum:)
Star Strider
Star Strider 2021년 1월 7일
Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Chemistry에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by