Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Introduction to Series | Sets and Series
Mathematics for Data Science with Python

bookIntroduction to Series

メニューを表示するにはスワイプしてください

Note
Definition

A series is a mathematical expression formed by adding the terms of a sequence. The most common types are the arithmetic series and the geometric series, which differ in how their terms progress.

Arithmetic Series

An arithmetic series is formed when the difference between consecutive terms in a sequence is constant.

2,5,8,11,14,...;(common difference,d=3)2, 5, 8, 11, 14, ...; (\text{common difference}, d = 3)

The sum of the first nn terms of an arithmetic series is given by:

Sn=n2(a+l)S_n = \frac{n}{2} \cdot (a + l)

Where:

  • nn - number of terms;
  • aa - first term;
  • ll - last term.

Alternatively, if the last term ll is not known:

Sn=n2(2a+(n1)d)S_n = \frac{n}{2} \cdot \left( 2a + (n - 1) \cdot d \right)

Example

Find the sum of the first 10 terms of the series 2,5,8,...2,5,8,...

S10=102(2+(101)3)=5(2+27)=145S_{10} = \frac{10}{2} \cdot (2 + (10 - 1) \cdot 3) = 5 \cdot (2 + 27) = 145

Geometric Series

A geometric series is formed when each term in the sequence is multiplied by a fixed ratio to get the next term.

3,6,12,24,48,...;(common ratio,r=2)3,6,12,24,48,...;(\text{common ratio}, r=2)

The sum of the first nn terms of a geometric series is given by:

Sn=a1rn1r, r1S_n = a \cdot \frac{1 - r^n}{1 - r},\ r \neq 1

Where:

  • aa - first term;
  • rr - common ratio;
  • nn - number of terms.

If the series is infinite and r<1|r|<1:

S=a1rS = \frac{a}{1 - r}

Example:

Find the sum of the first 4 terms of the series 3,6,12,24,...3,6,12,24,...

S4=312412=31161=315=45S_4 = 3 \cdot \frac{1-2^4}{1-2} = 3 \cdot \frac{1-16}{-1}=3 \cdot 15 = 45

Real-World Applications

Arithmetic and geometric series appear in many data science contexts:

  • Population growth and resource modeling through geometric progressions;
  • Financial analysis using compound interest calculations;
  • Revenue forecasting across time periods;
  • Machine learning, where summations occur in algorithms like gradient descent.
question mark

a=1a=1, r=0.5r=0.5 and n=n=\infty, what is the sum of the infinite geometric series?

正しい答えを選んでください

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  4

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 2.  4
some-alt