1)首先,我要选择变量id的所有情况,其中第一次和最后一次都是存在的,然后它需要用'no_comment‘填充第一次和最后一次之间的所有情况,然后用"MVND“填写第一次和最后一次和最后一次之后的所有情况first and last #if 'first' isn't the first record add MVNDto all things before 'first
distribution function gives n x 1 vector (2000 x 1 vector) mvnd/2) * np.exp((-1/2) * np.dot(np.dot((x[:,i:i+1]-mu).T, np.linalg.inv(sigma)), (x[:,i:i+1]-mu))) return np.reshape(np.array(mvnd), (np.sha