Skip to content

Instantly share code, notes, and snippets.

View KatsuyaITO's full-sized avatar

Katsuya ITO KatsuyaITO

View GitHub Profile
@KatsuyaITO
KatsuyaITO / VisualizePL.ipynb
Last active October 22, 2023 03:34
VisualizePL.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from sklearn.model_selection import train_test_split\n",
"from sklearn import preprocessing\n",
import pandas as pd
import numpy as np
from scipy import stats
from collections import namedtuple
BrunnerMunzelResult = namedtuple('BrunnerMunzelResult', ('statistic','pvalue'))
def brunner_munzel_test(x,y,alternative="two_sided",alpha=0.5):
"""