scipy.stats

    One sample t-test : The Moon Illusion

    Kaufman and Rock (1962)의 실험 데이터 일부임. 달을 볼 때, 천공(zeneith or highest point)에 있는 달이 지평선에 가깝게 위치한 달에 비해 훨씬 작게 보이는 현상에 대한 실험임. (실제로 지평선의 달이 3배 가량 되는 것으로 알려짐) import numpy as np import pandas as pd import scipy.stats as stats obtained_ratio = [1.73, 1.06, 2.03, 1.40, 0.95, 1.13, 1.41, 1.73, 1.63, 1.56] df = pd.DataFrame(data=obtained_ratio, columns=['obtained_ratio']) print('sample size:',df.count()[0..