Ejemplo n.º 1
0
def zad9():
    kondensatory = read_csv_file("kondensatory.csv")
    pojemnosc = [float(x["pojemnosc"]) for x in kondensatory]
    # eval_KS_test(pojemnosc, "KS test")
    # eval_lilliefors(pojemnosc, "lilliefors test")
    eval_SW_test(pojemnosc, "SW test")
    qqplot(pojemnosc)
Ejemplo n.º 2
0
def zad8():
    zarowki = read_csv_file("zarowki.csv")
    times = [float(x["czas"]) for x in zarowki]
    # eval_KS_test(times, "KS test")
    # eval_lilliefors(times, "lilliefors test")
    eval_SW_test(times, "SW test")
    qqplot(times)
Ejemplo n.º 3
0
def zad7():
    pacjenci = read_csv_file("pacjenci.csv")
    sugar = [float(x["cukier"]) for x in pacjenci]
    # eval_KS_test(sugar, "KS test")
    # eval_lilliefors(sugar, "lilliefors test")
    eval_SW_test(sugar, "SW test")
    qqplot(sugar)
Ejemplo n.º 4
0
def zad6():
    pacjenci = read_csv_file("pacjenci.csv")
    men_heights = [int(x["wzrost"]) for x in pacjenci if x["plec"] == "M"]
    women_heights = [int(x["wzrost"]) for x in pacjenci if x["plec"] == "K"]

    eval_lilliefors(men_heights, "kstest men")
    eval_lilliefors(women_heights, "kstest women")

    qqplot(men_heights)
    qqplot(women_heights)
Ejemplo n.º 5
0
def zad4():
    filename = "pacjenci.csv"
    pacjenci = read_csv_file(filename)
    men_heights = [int(x["wzrost"]) for x in pacjenci if x["plec"] == "M"]
    women_heights = [int(x["wzrost"]) for x in pacjenci if x["plec"] == "K"]

    qqplot(men_heights)
    qqplot(women_heights)

    eval_KS_test(men_heights, "kstest men")
    eval_KS_test(women_heights, "kstest women")

    eval_KS2_test(men_heights, women_heights, "kstest2 men vs women")
Ejemplo n.º 6
0
def zad10():
    absolwenci = read_csv_file("absolwenci.csv", delimiter=';')
    rolnictwo = [
        int(x["SALARY"]) for x in absolwenci if x["COLLEGE"] == "Rolnictwo"
    ]
    pedagogika = [
        int(x["SALARY"]) for x in absolwenci if x["COLLEGE"] == "Pedagogika"
    ]

    qqplot(rolnictwo, title="Rolnictwo")
    qqplot(pedagogika, title="Pedagogika")

    eval_KS_test(rolnictwo, "Rolnictwo KS test")
    eval_lilliefors(rolnictwo, "Rolnictwo lilliefors test")
    eval_SW_test(rolnictwo, "Rolnictwo SW test")

    print("\n\n\n")
    eval_KS_test(pedagogika, "Pedagogika KS test")
    eval_lilliefors(pedagogika, "Pedagogika lilliefors test")
    eval_SW_test(pedagogika, "Pedagogika SW test")