Part III – optimizing a supply chain with naive Bayes in a blockchain process
Naive Bayes will use some of the critical information as features to optimize warehouse storage and product availability in a real-time process.
The Naive Bayes learning function will learn from the previous blocks on how to predict the next blocks (supplying another company that needs more stock) that should be inserted in the blockchain. The blocks will be inserted in a dataset just like any other form of timestamped data to make predictions.
Naive Bayes is based on Bayes' theorem. Bayes' theorem applies conditional probability, defined as follows:
- P(A|B) is a posterior probability, the probability of A after having observed some events (B). It is also a conditional probability: the likelihood of AÂ happening given B has already happened.
- P(B|A) is the probability of B given the prior observations A. It is also a conditional probability: the...