跳到主要内容

京都大学 情報学研究科 知能情報学専攻 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.