Calculating Similarities: Mean and Standard Deviation
To calculate the similarity score, you start by calculating the mean and the standard deviation of each gene’s expression values:
| Gene A | Gene B | Gene C | Gene D | |
|---|---|---|---|---|
| Sample 1 | 0.602 | 0 | −0.481 | 0 | 
| Sample 2 | 0.301 | −0.0969 | 0 | 0.114 | 
| Sample 3 | 0.544 | 0.301 | −0.602 | 0.477 | 
| Sample 4 | 0.176 | −0.301 | −0.602 | 0 | 
| Sample 5 | −0.0969 | 0 | 0.0792 | −0.0969 | 
| Mean | 0.305 | −0.0194 | −0.321 | 0.0988 | 
| Std Dev | 0.254 | 0.194 | 0.299 | 0.200 |