Thanks. Actually, I was not aware that was possible. Presumably the probability would have to be greater than 0.5? If not - how could a forecast be made?
With kNN, for example, the algo (in this example) will try to match recent time, and/or price, and/or volume, and/or anything else, to past data. The output will be 'whatever happened in the past.'
So you see, in raw form, the algo doesn't care whether the forecast is accurate or not. Probabilities don't come into play wrt the forecast (nor the generation of the forecast)--unless the trader/developer adds them.
How? Via proper backtesting.
So now, after proper tuning and testing, the algo will only use specific and purposeful inputs, rather than all of them in the universe, based upon which inputs performed best during the tests. But it (generally) doesn't keep stats on which patterns performed well. In fact, it may never find two patterns (days) that match exactly anyway.
So the trader/developer used "data" and trial/error to
create a viable system, but it didn't use probabilities, in the sense that you are using.
But, what about outputting likelihoods?
Again, it may never see the same exact pattern twice; but it may see that a recent history has closely matched the same point in history, more than once. And an algo can be designed to keep track, and offer likelihoods, in this sense, should it match to this same point in history again.
It gets complicated for non-trivial algos. What I've told you is not how kNN's work on their own. I've never read about it this technique. But I'm sure others have discovered it, just as I did.
It can be done. It would have to be deliberately done. But, it is not necessary, nor required, to the point where we can say, "all forecasts are based on probabilities."
Overfitting.
Neural networks can develop a black box that will match past data perfectly; or with 100% probability as you like to say. They can do this with past lotto data. You can guess the results as the algo is walked forward in real-time.
IOW, Machine Learning doesn't necessarily rely on probabilities of past, backtesting results to shape the algo's design/parameters.
TLDR: Forecasts can be based on patterns, or formulas, or anything else. They can be tuned, as a whole, without knowledge of the probabilities of individual trades. And they can also offer forecasts, that don't include probabilities.