跳到主要内容

京都大学 情報学研究科 知能情報学専攻 2025年8月実施 専門科目 S-1

Author

itsuitsuki

Description

Q.1

Let θ\theta be the probability of getting heads in a coin toss. Assuming that θ\theta is a random variable, we want to estimate the probability distribution of θ\theta from observed data DD of independent coin tosses (Bernoulli trials). Here, we introduce a prior distribution of θ\theta (p(θ)p(\theta)) that follows a beta distribution Beta(θ;α,β)\text{Beta}(\theta; \alpha, \beta), where α\alpha and β\beta are the parameters. The probability density function of the beta distribution is given by

f(θ;α,β)=1B(α,β)θα1(1θ)β1,(α>0, β>0, 0θ1)f(\theta; \alpha, \beta) = \frac{1}{B(\alpha, \beta)} \theta^{\alpha-1} (1 - \theta)^{\beta-1}, \quad (\alpha > 0, \ \beta > 0, \ 0 \leq \theta \leq 1)

where B(α,β)=01θα1(1θ)β1dθB(\alpha, \beta) = \int_{0}^{1} \theta^{\alpha-1}(1 - \theta)^{\beta-1} d\theta is the beta function.

(1) Describe briefly what kind of distribution Beta(θ;1,1)\text{Beta}(\theta; 1, 1) is.

(2) Given that heads appeared kk times in nn trials, determine the likelihood function p(Dθ)p(D \mid \theta) for this observation DD.

(3) According to Bayes' theorem, the posterior distribution of θ\theta after observing DD can be calculated as p(θD)=p(θ)p(Dθ)/p(D)p(\theta \mid D) = p(\theta) \, p(D \mid \theta) / p(D). Here, p(D)p(D) is a normalization constant that adjusts the integral of the posterior distribution to be 1. Given a prior distribution Beta(θ;α,β)\text{Beta}(\theta; \alpha, \beta) and observed data consisting of kk heads in nn trials, derive the posterior distribution of θ\theta.

Q.2

Let MM and WW be random variables representing scores in math and English, respectively. Assume MM and WW are independent and both normally distributed with mean 50 and standard deviation 10.

(1) Let SS be the total score (M+W)(M + W) and DD be the difference in scores (MW)(M - W). Calculate the variances of SS and DD: Var(S)\text{Var}(S) and Var(D)\text{Var}(D).

(2) Show that SS and DD are uncorrelated.

(3) If two random variables follow a bivariate normal distribution and are uncorrelated, they are independent. Using this property, calculate the covariance of MM and WW given that SS is fixed at ss (where ss is a constant) : Cov(M,WS=s)\text{Cov}(M, W \mid S = s).

(4) Calculate the correlation coefficient of MM and WW given S=sS = s:

ρ=Cov(M,WS=s)Var(MS=s) Var(WS=s).\rho = \frac{\text{Cov}(M, W \mid S = s)}{\sqrt{\text{Var}(M \mid S = s) \ \text{Var}(W \mid S = s)}}.

(5) Even when math and English scores are independent, a negative correlation emerges when selecting only examinees with high total scores. Briefly explain why, based on the results above.

Q.3

When reporting experimental results, it is recommended to include effect sizes alongside pp-values and statistical significance. Cohen's dd (the difference between group means divided by within-group standard deviation) is a common effect size.

(1) Both the tt-statistic and Cohen's dd are standardized measures of mean differences between two groups, yet they provide different types of information. Explain the difference using the term 'sample size.'

(2) When is it particularly important to report effect sizes? Describe the circumstances and explain why.

题目描述

  1. θ\theta 为一次抛硬币出现正面的概率,并把 θ\theta 本身视为随机变量。希望根据相互独立的抛硬币观测数据 DD(Bernoulli 试验)估计 θ\theta 的概率分布。令 θ\theta 的先验分布为参数为 α,β\alpha,\beta 的 Beta 分布,其密度为

    f(θ;α,β)=1B(α,β)θα1(1θ)β1,α>0, β>0, 0θ1,f(\theta;\alpha,\beta) =\frac{1}{B(\alpha,\beta)} \theta^{\alpha-1}(1-\theta)^{\beta-1}, \qquad \alpha>0,\ \beta>0,\ 0\leq\theta\leq1,

    其中

    B(α,β)=01θα1(1θ)β1dθB(\alpha,\beta) =\int_0^1\theta^{\alpha-1}(1-\theta)^{\beta-1}\,d\theta

    为 Beta 函数。

    (1)简要说明 Beta(θ;1,1)\operatorname{Beta}(\theta;1,1) 是怎样的分布。

    (2)若 nn 次试验中出现 kk 次正面,求该观测数据 DD 的似然函数 p(Dθ)p(D\mid\theta)

    (3)根据 Bayes 定理,

    p(θD)=p(θ)p(Dθ)p(D),p(\theta\mid D) =\frac{p(\theta)p(D\mid\theta)}{p(D)},

    其中 p(D)p(D) 是使后验密度积分为 1 的归一化常数。给定先验 Beta(θ;α,β)\operatorname{Beta}(\theta;\alpha,\beta)nn 次试验中 kk 次正面的数据,推导 θ\theta 的后验分布。

  2. 令随机变量 M,WM,W 分别表示数学与英语成绩。假设二者相互独立,且都服从均值 50、标准差 10 的正态分布。

    (1)令总分 S=M+WS=M+W,分差 D=MWD=M-W,计算 Var(S)\operatorname{Var}(S)Var(D)\operatorname{Var}(D)

    (2)证明 SSDD 不相关。

    (3)可使用性质:服从二元正态分布的两个随机变量若不相关,则相互独立。给定总分固定为常数 ss,计算

    Cov(M,WS=s).\operatorname{Cov}(M,W\mid S=s).

    (4)计算给定 S=sS=sM,WM,W 的相关系数

    ρ=Cov(M,WS=s)Var(MS=s)Var(WS=s).\rho= \frac{\operatorname{Cov}(M,W\mid S=s)} {\sqrt{\operatorname{Var}(M\mid S=s)\operatorname{Var}(W\mid S=s)}}.

    (5)即使数学和英语成绩原本独立,只选择总分高的考生后也会出现负相关。根据上述结果简要解释原因。

  3. 报告实验结果时,建议在 pp 值和统计显著性之外同时报告效应量。Cohen's dd(两组均值之差除以组内标准差)是一种常用效应量。

    (1)tt 统计量与 Cohen's dd 都是两组均值差的标准化度量,但二者提供的信息不同。使用“样本量”这一概念解释区别。

    (2)在哪些情况下报告效应量尤其重要?说明具体情形及其原因。