Ejemplo n.º 1
0
def plotPvals(df, lowIsBetter=True):
    errs = extractErrRates(df)
    zvals, pvals = computeRankSumZvalsPvals(errs, lowIsBetter=lowIsBetter)

    # make a colormap that's red for p < 5%
    minVal = pvals.min().min()
    maxVal = pvals.max().max()
    cutoff = (np.log10(1.96) - minVal) / (maxVal - minVal)
    cmap = remappedColorMap(plt.cm.RdBu, midpoint=cutoff)

    plotDf(np.log10(pvals), title="Log10 Rank-Sum Test P Values", cmap=cmap)
Ejemplo n.º 2
0
def plotPvals(df, lowIsBetter=True):
	errs = extractErrRates(df)
	zvals, pvals = computeRankSumZvalsPvals(errs, lowIsBetter=lowIsBetter)

	# make a colormap that's red for p < 5%
	minVal = pvals.min().min()
	maxVal = pvals.max().max()
	cutoff = (np.log10(1.96) - minVal) / (maxVal - minVal)
	cmap = remappedColorMap(plt.cm.RdBu, midpoint=cutoff)

	plotDf(np.log10(pvals), title="Log10 Rank-Sum Test P Values", cmap=cmap)
Ejemplo n.º 3
0
def plotZvals(df, lowIsBetter=True):
    errs = extractErrRates(df)
    zvals, pvals = computeRankSumZvalsPvals(errs, lowIsBetter=lowIsBetter)
    plotDf(zvals, title="Rank-Sum Test Z Values", symmetricAboutMean=True)
Ejemplo n.º 4
0
def plotZvals(df, lowIsBetter=True):
	errs = extractErrRates(df)
	zvals, pvals = computeRankSumZvalsPvals(errs, lowIsBetter=lowIsBetter)
	plotDf(zvals, title="Rank-Sum Test Z Values", symmetricAboutMean=True)