When? Quantitative history Max Kemman University of Luxembourg - - PowerPoint PPT Presentation

when quantitative history
SMART_READER_LITE
LIVE PREVIEW

When? Quantitative history Max Kemman University of Luxembourg - - PowerPoint PPT Presentation

When? Quantitative history Max Kemman University of Luxembourg November 23, 2015 Online slides optimised for Full-HD screens in full-screen mode Download PDF here Doing Digital History: Introduction to Tools and Technology Today CSS


slide-1
SLIDE 1

When? Quantitative history

Max Kemman

University of Luxembourg November 23, 2015 Online slides optimised for Full-HD screens in full-screen mode Download PDF here

Doing Digital History: Introduction to Tools and Technology

slide-2
SLIDE 2

Today

CSS

  • Quantitative data
  • Quantitative history
  • Next time
  • Assignment
slide-3
SLIDE 3

CSS

Last week we changed the background Let's look a bit more at what CSS does

slide-4
SLIDE 4

Remember: what is a web page?

Many web pages consist of: Moreover, there is PHP which generates web pages on request

HTML - the content

  • CSS - the styling
  • Javascript - additional functionality
slide-5
SLIDE 5

HTML elements

Remember we added all kinds of HTML elements to the body, such as These elements are key for styling with CSS

Headers: <h1>

  • Paragraphs: <p>
  • Some text-transformations: <b> and <i>
  • Links: <a>
slide-6
SLIDE 6

Selecting HTML elements to style

(Source)

  • 1. The CSS begins by selecting the HTML element
  • 2. Then a property of the element is selected
  • 3. Finally, the property is given a value
slide-7
SLIDE 7

Last week

We selected the element <body> and the property background-color

body background-color #425e5f

The largest header, useful for chapter titles

A paragraph where you can write all you want, in italic or bold.

A subsection's header

Another paragraph where you can write This is the text people click to a new tab

The largest header, useful for chapter titles

A paragraph where you can write all you want, in italic or bold.

A subsection's header

Another paragraph where you can write This is the text people click to a new tab

slide-8
SLIDE 8

Other elements

We can add more elements to the CSS file, such as the headers

body background-color #425e5f h1 font-size 45px h2 font-size 30px h3 font-size 30px

The largest header, useful for chapter titles

A paragraph where you can write all you want, in italic or bold.

A subsection's header

Another paragraph where you can write This is the text people click to a new tab

The largest header, useful for chapter titles

A paragraph where you can write all you want, in italic or bold.

A subsection's header

Another paragraph where you can write This is the text people click to a new tab

slide-9
SLIDE 9

Combining elements

When two elements' properties get the same values, these can be combined

h2 font-size 30px h3 font-size 30px

Can be written as:

h2, h3 font-size 30px

slide-10
SLIDE 10

Overruling

We can change the colour for all text as property of the <body> element

body background-color #425e5f color #ffffff

We can overrule with more specific text-elements such as <h1>

body background-color #425e5f color #ffffff h1 color #FF0000

slide-11
SLIDE 11

The two files HTML

<!doctype html> html head title This document now has a title title link rel stylesheet type text/css href css overruling.css head body h1 The largest header, useful for chapter titles h1 p A paragraph where you can write all you want, in i italicAnother paragraph where you can write br a href http://isitfridayyet.net/ target _blank This is the text people click to a new tab a p body html

CSS

body background-color #425e5f color #ffffff h1 color #FF0000

slide-12
SLIDE 12

Result

body background-color #425e5f color #ffffff h1 color #FF0000

The largest header, useful for chapter titles

A paragraph where you can write all you want, in italic or bold.

A subsection's header

Another paragraph where you can write This is the text people click to a new tab

The largest header, useful for chapter titles

A paragraph where you can write all you want, in italic or bold.

A subsection's header

Another paragraph where you can write This is the text people click to a new tab

slide-13
SLIDE 13

One more thing on HTML: special characters

http://www.ascii.cl/htmlcodes.htm Find the symbol and the HTML number é & ü -> & &#233; & &#252; -> é & ü In your HTML, write longue dur&#233;e to write longue durée

slide-14
SLIDE 14

Quantitative data

For your next assignment you will download quantitative data to analyze http://data.worldbank.org We will browse the data by country, let's look up Luxembourg

slide-15
SLIDE 15

Data formats

There are three data formats: We will be using the CSV file lux_Country_en_csv_v2.csv But also download the Excel file just in case

  • 1. Excel
  • 2. XML
  • 3. CSV
slide-16
SLIDE 16

CSV

Comma Separated Values, is an open standard Last week we represented data in a table

1960 1970 1980 Luxembourg property 1.2 1.4 2.0

In CSV: "","1960","1970","1980" "Luxembourg property","1.2","1.4","2.0"

slide-17
SLIDE 17

Why make it so difficult?

Because CSV is a standard:

Many programs can read it

  • Not dependent on any one commercial program
  • It will still be readable in many years
slide-18
SLIDE 18

Entering the data into Google Drive

Go to http://drive.google.com, log in, and click the big red "NEW" button and select "File upload"

slide-19
SLIDE 19

Find the file on your hard drive, select, and click "Open" to upload it to Google Drive When your Google Drive is in English you can select the CSV, otherwise the Excel-file will work better

slide-20
SLIDE 20

Find the file in your Google Drive, right-click, select "Open with" and select Google Sheets

slide-21
SLIDE 21

Google Sheets should now open a nicely ordered sheet as shown

  • here. To clean it up, select the

first 4 rows, right-click, and select delete

slide-22
SLIDE 22

Select the first 2 columns, right- click, and select delete

slide-23
SLIDE 23

Select the 2nd column with Indicator Codes, right-click, and select delete

slide-24
SLIDE 24

Select the 1st row with the years and copy using ctrl+c (Windows)

  • r cmd+c (Apple)
slide-25
SLIDE 25

Click the + in the lower-left corner (encircled) to create a new sheet, and paste the row here using ctrl+v (Windows) or cmd+v (Apple)

slide-26
SLIDE 26

To search in the first sheet, select it at the bottom, and use ctrl+f (Windows) or cmd+f (Apple) to search for gdp (current US$). Select and copy it

slide-27
SLIDE 27

After copying the row with gdp (current US$), go to your new sheet and paste

slide-28
SLIDE 28

Creating a timeline in Google Sheets

Select the two rows by dragging your mouse from the 1 in row 1 to the 2 in row 2

slide-29
SLIDE 29

Select "Insert" in the menu bar and select "Chart..."

slide-30
SLIDE 30

Google Sheets will suggest several charts. Choose the second line-chart and select "Insert" When your chart looks completely different even though you use the same property, and you have tried with the CSV, go back and upload the Excel file instead

slide-31
SLIDE 31

Go back to your first sheet and search for "electric power" to find the row electric power consumption (kWh per capita). Select this row and copy

slide-32
SLIDE 32

Paste the row in the new sheet under the rows you have. The chart should be updated automatically

slide-33
SLIDE 33

The 2 properties have very different values. Hold mouse on the second line until you see "Edit series", and select the _l symbol (encircled) to create a second y- axis

slide-34
SLIDE 34

You should now see 2 lines that you can compare. Change the x- axis title by clicking it and enter "Year"

slide-35
SLIDE 35

Press enter to apply

slide-36
SLIDE 36

To edit the chart further, select the chart and click the triangle in the upper-right corner and select "Advanced edit..."

slide-37
SLIDE 37

In this window you can further customize the chart

slide-38
SLIDE 38

One interesting visual change is to select "Smooth". Click "Update"

  • nce you're done
slide-39
SLIDE 39

Sharing the Google Sheet

To share the Google Sheet, click the big blue "Share" button in the top-right corner and click "Get shareable link"

slide-40
SLIDE 40

The sharing window will now show a URL you can copy-paste into your report.

slide-41
SLIDE 41

When you click the dropdown "Anyone with the link can view" you are provided other options

slide-42
SLIDE 42

To share only the chart, you can click the triangle in the upper- right corner and select "Save image"

slide-43
SLIDE 43

Quantitative history

Why would we want to analyse history by the numbers?

slide-44
SLIDE 44

Longue Durée

Last week you analysed a period of 4 years What if you want to analyse: Cannot focus on all the stories, need for something else

40 years?

  • 400 years?
  • 4,000 years?
  • 40,000 years?
slide-45
SLIDE 45

Cliometrics

[T]he study of History through the history of things that can be quantitatively measured – wealth, goods, and services that were taxed and recorded, and population.

Guldi & Armitage, p97

slide-46
SLIDE 46

Historical variables

Patrick Manning in "Big Data in History"

slide-47
SLIDE 47

The story of a long period

Represent a long period by its numbers [F]ew have used the two together, applying tools designed to analyse large troves of resources to questions about our long-term past and long-term future.

Guldi & Armitage, p95

slide-48
SLIDE 48

Causality?

Big data enhance our ability to grapple with historical information. They may help us to decide the hierarchy of causality – which events mark watershed moments in their history, and which are merely part

  • f a larger pattern.

Guldi & Armitage, p89

But from our discussion of Big Data, we focused on correlation

slide-49
SLIDE 49

Comparisons and correlations

It could be interesting to see:

How two properties evolve over time: are they correlated?

  • Compare between two or more different countries for the same property
slide-50
SLIDE 50

Quantitative vs Qualitative

Time on the Cross tried this approach [T]he authors argued that each slave was only whipped something like 7.2 times per year and so slavery wasn’t as brutal as its conventional image. As if one severe whipping in an entire lifetime wouldn’t be bad enough.

(Source)

slide-51
SLIDE 51

For next time

30 November

Who? Investigating the social entities in a corpus

slide-52
SLIDE 52

Assignment

Show when Luxembourg became rich, and show at least 2 other properties that correlate with this (3 properties in total) Compare these values with another country Discuss in your report whether these 2 other properties can be thought of as causes or consequences of Lux's wealth, and how the other country compares

slide-53
SLIDE 53

Assignment

Work in pairs of two or three Link to the original data and include your own CSV (not the original complete one) Hand in the assignment in HTML, include your name and a decent profile photo

slide-54
SLIDE 54

Assignment

500-1000 words, in English Grading Email to max.kemman@uni.lu before the start of the lecture on 7 December

1pt for free

  • 1pts for HTML
  • 3pts for discussing Lux's wealth
  • 2pts for documentation of your process
  • 3pts for critical reflection on your charts