lib/more_math/linear_regression.rb
# Return true if the slope of the underlying data (not the sample data
# passed into the constructor of this LinearRegression instance) is likely
# (with alpha level _alpha_) to be zero.
Return true if the slope of the underlying data (not the sample data
passed into the constructor of this LinearRegression instance) is likely
(with alpha level _alpha_) to be zero.
Return true if the slope of the underlying data ( not the sample data passed into the constructor of this LinearRegression instance ) is likely ( with alpha level _alpha_ ) to be zero .
def slope_zero?(alpha = 0.05)
      df = @image.size - 2
      return true if df <= 0 
      t = tvalue(alpha)
      td = TDistribution.new df
      t.abs <= td.inverse_probability(1 - alpha.abs / 2.0).abs
    end
def slope_zero? ( alpha = 0.05 ) df = @image . size - 2 return true if df <= 0 t = tvalue ( alpha ) td = TDistribution . new df t . abs <= td . inverse_probability ( 1 - alpha . abs / 2.0 ) . abs end
Return true if the slope of the underlying data (not the sample data
passed into the constructor of this LinearRegression instance) is likely
(with alpha level _alpha_) to be zero.
Return true if the slope of the underlying data ( not the sample data passed into the constructor of this LinearRegression instance ) is likely ( with alpha level _alpha_ ) to be zero .
# not enough values to check
alpha
<not_specific>