Statistics and Linear Algebra 6

Posted 阿难的机器学习计划

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Statistics and Linear Algebra 6相关的知识,希望对你有一定的参考价值。

1. Two ways to get a column of another column with max/min values:

  a. most_bars_country = flags["name"][flags["bars"].idxmax()]

  b. bars_sorted = flags.sort_values("bars", ascending=[0])

    most_bars_country = bars_sorted["name"].iloc[0]

2. The way to get the probability of a certain value in a column:

  orange_probability = flags[flags["orange"]==1].shape[0]/flags.shape[0]

3. The way to calculate combination by using factorial 

  import math
  def find_outcome_combinations(N, k): # Calculate the numerator of our formula.
    numerator = math.factorial(N) # Calculate the denominator.
    denominator = math.factorial(k) * math.factorial(N - k) # Divide them to get the final value.
    return numerator / denominator

4. 

以上是关于Statistics and Linear Algebra 6的主要内容,如果未能解决你的问题,请参考以下文章

Statistics and Linear Algebra 5

Statistics and Linear Algebra 6

Statistics and Linear Algebra 2

Statistics and Linear Algebra 3

The implementation and experimental research on an S-curve acceleration and deceleration control alg

Statistics gathering and SQL Tuning Advisor