필터 지우기
필터 지우기

how can i compute the probablity for 2 prorperties?

조회 수: 1 (최근 30일)
RADWAN A F ZEYADI
RADWAN A F ZEYADI 2022년 2월 27일
답변: Pavan Sahith 2023년 10월 16일
Hi
i have 2 properties in matrix withe dimension 51 71 how can i compute and plot the marginal probabilites between them?

답변 (1개)

Pavan Sahith
Pavan Sahith 2023년 10월 16일
Hi RADWAN,
I understand you have 2 properties and their 51x71 probability matrix. You want to compute marginal probabilities of these two properties and plot them.
I assume that you are having 2 properties, say X and Y and you want to calculate Marginals of X and Y in this way.
To achieve that in MATLAB:
A=[0.32 0.03 0.01;0.06 0.24 0.02;0.02 0.03 0.27];
% calculate column wise sum
k=sum(A,1);
% calculate row wise sum
l=sum(A,2);
% plot the Marginals for X and Marginals for Y
plot(k,l)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by