跳到主要内容

東京大学 新領域創成科学研究科 メディカル情報生命専攻 2022年8月実施 問題12

Author

zephyr

Description

We would like to know the probability that the string FRED\mathbf{FRED} appears in a random protein sequence. Assume the sequence has random independent letters from the protein alphabet AA, and letter aAa \in A has probability p(a)p(a). Define Q(i,X)Q(i, X) to be the probability that FRED\mathbf{FRED} appears in a random sequence of length ii, given that the sequence ends with XX, where XX is a length-4 string.

(1) What is Q(4,X)Q(4, X) when XFREDX \neq \mathbf{FRED}?

(2) What is Q(4,X)Q(4, X) when X=FREDX = \mathbf{FRED}?

Define XX' to be XX without its final letter. Define aXa \cdot X to be XX with letter aa prepended to it. These definitions may be useful to answer the following questions.

(3) What is Q(i+1,X)Q(i + 1, X), in terms of Q(i,Y)Q(i, Y), where YY is any length-4 string, when XFREDX \neq \mathbf{FRED}?

(4) What is Q(i+1,X)Q(i + 1, X) when X=FREDX = \mathbf{FRED}?

Define P(X)P(X) to be the product of the probabilities of the letters in XX. Define A4A^4 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 FRED\mathbf{FRED} appears in a random sequence of length nn, in terms of Q(n,X)Q(n, X)?

Kai

(1)

Q(4,X)Q(4, X) when XFREDX \neq \mathbf{FRED}:

If XFREDX \neq \mathbf{FRED}, then FRED\mathbf{FRED} has not appeared by the time the sequence reaches length 4 with ending XX. Therefore, the probability Q(4,X)=0Q(4, X) = 0.

Q(4,X)=0forXFREDQ(4, X) = 0 \quad \text{for} \quad X \neq \mathbf{FRED}

(2)

Q(4,X)Q(4, X) when X=FREDX = \mathbf{FRED}:

If X=FREDX = \mathbf{FRED}, then the sequence exactly matches FRED\mathbf{FRED}, meaning FRED\mathbf{FRED} has appeared. Therefore, the probability Q(4,FRED)=1Q(4, \mathbf{FRED}) = 1.

Q(4,FRED)=1Q(4, \mathbf{FRED}) = 1

(3)

Q(i+1,X)Q(i + 1, X) in terms of Q(i,Y)Q(i, Y) when XFREDX \neq \mathbf{FRED}:

To find Q(i+1,X)Q(i + 1, X), we need to consider all possible sequences of length ii that could lead to a sequence ending with XX when an additional letter is appended. Specifically, Q(i+1,X)Q(i + 1, X) depends on Q(i,aX)Q(i, a \cdot X') for all possible letters aAa \in A.

Since XFREDX \neq \mathbf{FRED}, we have:

Q(i+1,X)=aAp(a)Q(i,aX)Q(i + 1, X) = \sum_{a \in A} p(a) Q(i, a \cdot X')

(4)

Q(i+1,X)Q(i + 1, X) when X=FREDX = \mathbf{FRED}:

If the sequence ends in FRED\mathbf{FRED} at length i+1i+1, then FRED\mathbf{FRED} has appeared, so Q(i+1,FRED)=1Q(i + 1, \mathbf{FRED}) = 1.

Q(i+1,FRED)=1Q(i + 1, \mathbf{FRED}) = 1

(5)

The probability that FRED\mathbf{FRED} appears in a random sequence of length nn:

To find the total probability that FRED\mathbf{FRED} appears in a sequence of length nn, we will consider 3 cases:

  1. n<4n < 4: In this case, FRED\mathbf{FRED} cannot appear, so the probability is 0.

  2. n=4n = 4: The probability that FRED\mathbf{FRED} appears in a sequence of length 4 is given by Q(4,FRED)=P(FRED)=p(F)p(R)p(E)p(D)Q(4, \mathbf{FRED}) = P(\mathbf{FRED}) = p(F) \cdot p(R) \cdot p(E) \cdot p(D).

  3. n>4n > 4: The probability that FRED\mathbf{FRED} appears in a sequence of length nn is given by:

P(FRED)=XA4Q(n,X)P(\mathbf{FRED}) = \sum_{X \in A^4} Q(n, X)

where P(X)P(X) is the product of the probabilities of the letters in XX.

Therefore, the probability that FRED\mathbf{FRED} appears in a random sequence of length nn can be concluded as follows:

P(FRED)={0ifn<4p(F)p(R)p(E)p(D)ifn=4XA4Q(n,X)ifn>4P(\mathbf{FRED}) = \begin{cases} 0 & \text{if} \quad n < 4 \\ p(F) \cdot p(R) \cdot p(E) \cdot p(D) & \text{if} \quad n = 4 \\ \sum_{X \in A^4} Q(n, X) & \text{if} \quad n > 4 \end{cases}

Knowledge

概率论 随机序列 字符串出现概率

难点解题思路

对于随机序列中特定字符串的出现概率问题,关键在于递推关系的构建以及边界条件的处理。通过定义恰当的递推公式,可以逐步推导出所需概率。

解题技巧和信息

  1. 构建递推关系,考虑当前状态如何从前一个状态转移。
  2. 确定边界条件,并基于这些条件初始化递推公式。
  3. 注意概率的加总,确保所有可能的转移情况都被考虑在内。

重点词汇

  • Probability: 概率
  • Sequence: 序列
  • Random: 随机的
  • Independent: 独立的
  • Recurrence relation: 递推关系

参考资料

  1. Introduction to Probability Models, Chapter 3
  2. Probability and Statistics for Engineers and Scientists, Chapter 5