#NEWLINE# def expected_jk_variance( K ) : #NEWLINE# #INDENT# 'Compute the expected value of the jackknife variance estimate\n    over K windows below. This expected value formula is based on the\n    asymptotic expansion of the trigamma function derived in\n    [Thompson_1994]\n\n    Paramters\n    ---------\n\n    K : int\n      Number of tapers used in the multitaper method\n\n    Returns\n    -------\n\n    evar : float\n      Expected value of the jackknife variance estimator\n\n    ' #NEWLINE# kf = float ( K ) #NEWLINE# return ( ( ( ( ( ( 1 / kf ) * ( kf - 1 ) ) / ( K - 0.5 ) ) * ( ( ( kf - 1 ) / ( kf - 2 ) ) ** 2 ) ) * ( kf - 3 ) ) / ( kf - 2 ) )