- #1
liquidFuzz
- 97
- 3
An example of what I try to calculate. In a string matching between two strings the whole strings aren't compared, just a section.
A = The probability of a true hit.
A true hit being:
B = The probability of artifact being correct.
Falls artifact being:
I though I'd use Bayes theorem to calculate the probability, but I'm not sure of how to do it.
[itex]P(A|B)\frac{P(B|A)P(A)}{P(B)}[/itex]
In my example A is much higher than B, would this imply:
[itex]P(A|B)\frac{P(≈A)P(A)}{P(B)} ≈ P(A)[/itex]
A = The probability of a true hit.
A true hit being:
PHP:
|adcbacdcbacd|abacd
|adcbacdcbacd|ab
B = The probability of artifact being correct.
Falls artifact being:
PHP:
|adcbacdcbacd|abacd
|adcbacdcbacd|bca
I though I'd use Bayes theorem to calculate the probability, but I'm not sure of how to do it.
[itex]P(A|B)\frac{P(B|A)P(A)}{P(B)}[/itex]
In my example A is much higher than B, would this imply:
[itex]P(A|B)\frac{P(≈A)P(A)}{P(B)} ≈ P(A)[/itex]