Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
Smetanin Alexander committed Apr 23, 2020
1 parent 1a70c9e commit b4a6666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Csv file with statistics that shows the fraction of windows assigned to each pop
## Modes explanation
### 1. Bayes
Probability of assigning snp to population is calculated according to the Bayes formula:
$$ P(Population | SNP) = \frac{P(SNP | Population) \cdot P(Population)}{P(SNP)} $$
<img src="https://render.githubusercontent.com/render/math?math=P(Population | SNP) = \frac{P(SNP | Population) \cdot P(Population)}{P(SNP)}">
Here, $P(SNP | Population)$ can be estimated as frequency of SNP in selected Population.
$ P(Population) = \frac{1}{\#Populations}$ - we assume all populations are equally probable.
$ P(SNP)$ can be estimated as average frequency of SNP among all populations or samples.
Expand Down

0 comments on commit b4a6666

Please sign in to comment.