def directional_variance_i(x_i, w):
 return (dot(x_i, direction(w)) ** 2)

def directional_variance_i ( x_i , w ) : return ( dot ( x_i , direction ( w ) ) ** 2 )
the variance of the row x_i in the direction w .