DaSchool Study: Power Usage Prediction Winner Code Review

Study | DaSchool | Competition | Winner Code |

 

[24년 5월12일 1주차 머신러닝 정규반 주말]

2024.05.12 23:05 741 Views language

import scipy.stats as stats

# data에 대한 Shapiro-Wilk 검정
w_statistic1, p_value1 = stats.shapiro(df['Close'])
print('Method1 Shapiro-Wilk Test:')
print(f'W-Statistic={w_statistic1}, P-Value={p_value1}')
print()
from scipy.stats import kurtosis

# 첨도 계산
data_kurtosis = kurtosis(df['Close'], fisher=True)
# 첨도 출력
print(f"Method1 Data Kurtosis: {data_kurtosis}")

Code