Top Banner
計計計計計 ( 計, 計計計計 ) 福福福福 福福福福 , 福福福福福福福福福 email: [email protected], ext. 65838
15

計算機語言 ( 大一 , 第二学期 )

Jan 01, 2016

Download

Documents

aubrey-cash

計算機語言 ( 大一 , 第二学期 ). 福島康裕 助理教授 , 環境系統工程研究室 email: [email protected], ext. 65838. Last Week’s Exercise. Why sort by GDP per capita? Why calculate GDP? What is cumulative income?. Lorenz curve for global economy. Objective: To show how uneven our global economy is. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 計算機語言  ( 大一 ,  第二学期 )

計算機語言 (大一 , 第二学期 )福島康裕 助理教授 , 環境系統工程研究室 email: [email protected], ext. 65838

Page 2: 計算機語言  ( 大一 ,  第二学期 )

Last Week’s Exercise Why sort by GDP per capita? Why calculate GDP? What is cumulative

income?

Page 3: 計算機語言  ( 大一 ,  第二学期 )

Lorenz curve for global economy

Objective: To show how uneven our global economy is.

Ideal data? Ask each 6.5 billion people how much income

they have every year impossible

Realistic data Look at GDP of the country, and assume that

everyone in a country has the same income.

Each person’s income = GDP of his or her country / Population of his or her country = GDP per capita

Page 4: 計算機語言  ( 大一 ,  第二学期 )

Procedures1. Sort by GDP per capita2. Calculate GDP and its accumulation

We don’t want to have every 6.5 billion data on our excel sheet We assumed everyone in a country has same income. Thanks to this assumpt

ion, we can add each person’s income (= GDP per capita) for each country by calculating GDP

3. Obtain accumulation of population 4. Normalize 2 and 35. Plot in a scattergram6. Calculate Gini’s coefficient

GDPcountryainpersonaofincome

countrytheinpopulationallfor

Page 5: 計算機語言  ( 大一 ,  第二学期 )

Gini’s coefficient How can we calculate Gini’s coefficien

t?

Hints: - OAB=0.5△ - There are two parts inside OAB. If we △ know one, we can calculate the other

O A

B

Whichpart? How?

Page 6: 計算機語言  ( 大一 ,  第二学期 )

Extracting data Get the data that matches to

our interest Using “Auto Filter” Using “Custom Auto Filter”

EXAMPLE) Which are the countries that are 1% < r < 2% (population growth rate) in America or Europe ?

Page 7: 計算機語言  ( 大一 ,  第二学期 )
Page 8: 計算機語言  ( 大一 ,  第二学期 )

Custom Auto Filter

Page 9: 計算機語言  ( 大一 ,  第二学期 )

Auto Filter(GDP per capita top ten)

If you choose Europe, you can get EU countries that are in Top 10 in GDP per capita.

Page 10: 計算機語言  ( 大一 ,  第二学期 )

More complex query using Auto Filter Benn’s Diagram : AND and OR

A BC●AND● = C● OR ● = A+B+C

10,000 < GDP per capita < 20,000

10,000 < GDP per capitaAND?

GDP per capita < 20,000OR?

Page 11: 計算機語言  ( 大一 ,  第二学期 )

Custom Auto Filter

Page 12: 計算機語言  ( 大一 ,  第二学期 )

Custom Auto Filter Dialog

= : equals< : is greater than> : is less than

≦ : is greater than or equals to≧ : is less than or equals to<> : does not equal

Page 13: 計算機語言  ( 大一 ,  第二学期 )

EXAMPLE) Which are the countries that are 1% < r < 2% (population growth rate) in America or Europe ?

Page 14: 計算機語言  ( 大一 ,  第二学期 )

EXAMPLE) Which are the countries that are 1% < r < 2% (population growth rate) in America or Europe ?

Page 15: 計算機語言  ( 大一 ,  第二学期 )

EXAMPLE) Which are the countries that are 1% < r < 2% (population growth rate) in America or Europe ?