neural network: probability of prediction

조회 수: 11 (최근 30일)
Stefan van der Pol
Stefan van der Pol 2013년 8월 9일
댓글: Juan Klopper 2022년 7월 19일
I have been using the neural network toolbox to predict the next value in a time series. This works, however I would like to know what is the probability of Matlab's neural network prediction.
E.g.: let's say we have time series [1 2 3 4 5]. The neural network would maybe predict the next value in the chain will be 5.9 (as an example).
Is there any (easy) way to derive the probability of this prediction? I would like to be able to tell something like this: it is predicted that the expected value of the next step will be 5.9 with a probability of 78%. It would be even better if I could get the entire probability distribution of the next value, or at least also the standard deviation. I hope anyone can help.
My point is that having a prediction without a probability does not help a lot, there might be a lot of uncertainty about this prediction. If one would forecast it is going to rain tomorrow this would give little information. If one would say it is going to rain with 95% probability than I know how to handle.
  댓글 수: 2
Natanael silva
Natanael silva 2015년 2월 5일
I have the same problem, please if you had the solve, answer here, thank very mach
Juan Klopper
Juan Klopper 2022년 7월 19일
The .prediction method of your trained neural network takes the feature set (matrix) as input. The output is a prediction vector and a matrix of probabilities. Example below.
[YPred, YProb] = trainedModel.predictFcn(sim)

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

채택된 답변

Greg Heath
Greg Heath 2013년 8월 10일
The only way I know of to obtain error bars for a neural net output is to
1. Assume an input probability distribution
2. Assume an input variance
3. Create many random realizations
4. Calculate the resulting spread of the prediction
Hope this helps.
Greg

추가 답변 (1개)

Morgan facchin
Morgan facchin 2017년 4월 6일
편집: Morgan facchin 2017년 4월 6일
Hello,
I am working on a similar problem and I am having difficulties, could you tell me how you would do to find that 5.9 in that particular example ??
(Sorry that is not an answer but your first step is what I am trying to do!)
Thank you !

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by