Effacer les filtres
Effacer les filtres

how to calculate the probability

51 vues (au cours des 30 derniers jours)
ANKUR MAHESHWARI
ANKUR MAHESHWARI le 9 Juin 2020
How to calulate Pr(PWF<Pschedule). Pr is the probability, PWF is an array of power (24x1) say , Pschedule is the scheduled power (1x1) and its expectation value (E(PWF<Pschedule(PWF))
  1 commentaire
David H
David H le 9 Juin 2020
I think you need lots more info in this question.
It looks like Pschedule is some function of PWF, but you haven't really said how. Is PWR a known array that you are inputting?
If you just want to know the probability an element of array "PWF" is smaller than the single number "Pschedule" you can do
mean(PWF<Pschedule)

Connectez-vous pour commenter.

Réponses (1)

Chaman Dewangan
Chaman Dewangan le 20 Juin 2021
If we have data then, the following MATLAB code can find probability.
%Create data
x=1.1:0.001:1.8;
x=x';% because fitdist function needs column vector
% Fit the probability distribution function.
% Here I have assumed normal distribution.
pd = fitdist(x,'Normal');
% mean and standard deviation are two parameters
mu1=pd.mu;
sigma1=pd.sigma;
% What is the probability? It is the area of probability density function
% for the given interval of random variable.
% Which we read as integration in mathematics.
% I want to find the probability for between 1.211 and 1.25
x2=[1.211:0.001:1.25];
y2 = pdf('Normal',x2,mu1,sigma1);
% trapz function is used to calculate the area for the given interval.
prob= trapz(x2, y2)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Tags

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by