Created
April 28, 2024 20:50
-
-
Save otuva/e7f06c3b0c8b274f0d962bd21727e0ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy.stats import ttest_ind | |
# Verilen veriler | |
sample_1 = np.array([500.0, 550.0, 556.4, 600.0, 450.0, 425.0, 300.0, 725.0, 315.0, 621.1]) | |
sample_2 = np.array([70.00, 72.00, 72.56, 77.00, 66.40, 65.10, 41.20, 82.10, 43.00, 80.00]) | |
# İki bağımsız örneklemin t-testi | |
t_stat, p_value = ttest_ind(sample_1, sample_2, equal_var=False) # Varyansların eşit olmadığını varsayarak | |
t_stat, p_value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment