東京大学 新領域創成科学研究科 メディカル情報生命専攻 2022年8月実施 問題12
Author
zephyr, 祭音Myyura
Description
We would like to know the probability that the string appears in a random protein sequence. Assume the sequence has random independent letters from the protein alphabet , and letter has probability . Define to be the probability that appears in a random sequence of length , given that the sequence ends with , where is a length-4 string.
(1) What is when ?
(2) What is when ?
Define to be without its final letter. Define to be with letter prepended to it. These definitions may be useful to answer the following questions.
(3) What is , in terms of , where is any length-4 string, when ?
(4) What is when ?
Define to be the product of the probabilities of the letters in . Define to be the set of all possible length-4 strings. These definitions may be useful to answer the following question.
(5) What is the probability that appears in a random sequence of length , in terms of ?
题目描述
蛋白质字母表为 ,随机序列各位置独立同分布,字母 出现的概率为 。目标是计算连续字符串 FRED 在随机蛋白质序列中至少出现一次的概率。对任意长度为 4 的字符串 ,定义
回答下列问题:
-
当 时求 。
-
当 时求 。
-
令 为删去 最后一个字母所得的长度 3 字符串, 表示在其前端添加字母 。当 时,用所有长度 4 字符串 对应的 表示 。
-
当 时求 。
-
定义
并令 为全部长度 4 字符串的集合。用 、 对 的加权和表示长度 随机序列中
FRED出现的无条件概率。
Kai
Conditional probabilities below are used for suffixes with . Suffixes with zero probability are omitted from the weighted sum. If any of F, R, E or D has probability zero, the unconditional occurrence probability is zero.
(1)
when :
If , then has not appeared by the time the sequence reaches length 4 with ending . Therefore, the probability .
(2)
when :
If , then the sequence exactly matches , meaning has appeared. Therefore, the probability .
(3)
in terms of when :
To find , we need to consider all possible sequences of length that could lead to a sequence ending with when an additional letter is appended. Specifically, depends on for all possible letters .
Since , we have:
(4)
when :
If the sequence ends in at length , then has appeared, so .
(5)
The probability that appears in a random sequence of length :
To find the total probability that appears in a sequence of length , we will consider 3 cases:
-
: In this case, cannot appear, so the probability is 0.
-
: Only the ending contributes, so the probability is .
-
: The probability that appears in a sequence of length is given by:
where is the product of the probabilities of the letters in .
Therefore, the probability that appears in a random sequence of length can be concluded as follows:
Knowledge
概率论 随机序列 字符串出现概率
难点解题思路
对于随机序列中特定字符串的出现概率问题,关键在于递推关系的构建以及边界条件的处理。通过定义恰当的递推公式,可以逐步推导出所需概率。
解题技巧和信息
- 构建递推关系,考虑当前状态如何从前一个状态转移。
- 确定边界条件,并基于这些条件初始化递推公式。
- 注意概率的加总,确保所有可能的转移情况都被考虑在内。
重点词汇
- Probability: 概率
- Sequence: 序列
- Random: 随机的
- Independent: 独立的
- Recurrence relation: 递推关系
参考资料
- Introduction to Probability Models, Chapter 3
- Probability and Statistics for Engineers and Scientists, Chapter 5