Bayesian Rejection Sampling
Explore Bayesian rejection sampling methods in quantum Bayesian networks to calculate conditional probabilities based on measured quantum states. Learn how to evaluate factors like survival and norm favorability by analyzing quantum measurement outcomes and estimating probabilities for different passenger groups.
Our QBN is well trained. However, when we look back to all the CPT it consists of (see the lesson titled Estimating a Variable), we haven’t completed it. We still miss the CPT of being favored by a Norm given the passenger’s Sex and Age, and we miss the CPT of Survival given the Norm and the Pclass. Let’s catch up on this.
Again, estimating the numbers in the CPT of a Bayesian network builds upon counting how many times that event occurred in our training data.
First, we need to change the variables we measure.
Instead of the qubit at position QPOS_SURV that represents whether a passenger survived, we measure the qubits ...