[Data Science from Scratch] Ch4. Linear Algebra
Linear algebra is the branch of mathematics that deals with vector spaces. 📌 Vectors 추상적으로, vector는 서로 더하고, scalar를 곱하고, 새로운 벡터를 생성할 수 있는 객체이다. 구체적으로는, vector는 어떤 유한한 차원의 공간에서의 점이다. 지금까지 보았던 data를 vector라고 생각하지 않겠지만, 그 data들은 numeric data를 대표할 수 있는 좋은 예가 된다. 예를 들어, 많은 사람들의 키, 몸무게, 나이 데이터를 가지고 있을 때, 그 데이터는 3차원의 vector로 다룰 수 있다. 혹은 학생들의 시험 성적 데이터를 4차원의 vector(exam1, exam2, exam3, exam4)로 다룰 수 있을 것..
[Data Science from Scratch] Ch3. Visualizing Data
데이터 시각화에는 두가지 목적이 있다. To explore data - 데이터 탐색 To communicate data - 데이터 전달 matplotlib from matplotlib import pyplot as plt years = [1950, 1960, 1970, 1980, 1990, 2000, 2010] gdp = [300.2, 543.3, 1075.9, 2862.5, 5979.5, 10289.7, 14958.3] #create a line chart, years on x-axis, gdp on y-asix plt.plot(years, gdp, color='green', marker='o', linestyle='solid') #add a title plt.title('Nominal GDP') #a..