code: def get_beta(r, b):
      """Risk Analysis  beta
  
      Parameters
      ----------
      r : pandas.Series
          daily return series of strategy
      b : pandas.Series
          daily return series of baseline
      """
      cov_r_b = np.cov(r, b)
      var_b = np.var(b)
      return cov_r_b / var_b
  
imports: from __future__ import division
  from __future__ import print_function
  import numpy
  import pandas
  from scipy.stats import spearmanr, pearsonr
  from ..data import D
  from collections import OrderedDict
label_desc: Use image node_id 10 for calling a global function with example usage: get_beta(r, b) and returns: unknown