lecture 0: introduction and measure theory cs 7040 trustworthy system design, implementation, and...

65
Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Upload: bethanie-brown

Post on 22-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Lecture 0: Introduction and Measure Theory

CS 7040

Trustworthy System Design, Implementation, and Analysis

Spring 2015, Dr. Rozier

Page 2: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Introductions

Page 3: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Welcome to CS 7040!

Trustworthy System Design,

Implementation, and Analysis

Page 4: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

ROSE-E-AProfessor Eric Rozier

Page 5: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• BS in Computer Science from William and Mary

Page 6: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• BS in Computer Science from William and Mary

• Studied models of agricultural pests (flour beetles).

Page 7: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• BS in Computer Science from William and Mary

• Studied models of agricultural pests (flour beetles).

• And load balancing of super computers.

Page 8: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• First job – NASA Langley Research Center

Page 9: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• First job – NASA Langley Research Center

• Researched problems in aeroacoustics

Page 10: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• First job – NASA Langley Research Center

• Researched problems in aeroacoustics– Primarily on the XV-15

Page 11: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• First job – NASA Langley Research Center

• Researched problems in aeroacoustics– Primarily on the XV-15– Precursor to the better

known V-22

Page 12: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• PhD in CS/ECE from the University of Illinois

Page 13: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• PhD in CS/ECE from the University of Illinois

• Studied non-linear dynamics of transactivation networks in economically important species…

Page 14: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

Page 15: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• PhD in CS/ECE from the University of Illinois

• Worked with the NCSA on problems in super computing, reliability, and big data.

Page 16: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• PhD in CS/ECE from the University of Illinois

• Worked with the NCSA on problems in super computing, reliability, and big data.

• Research led to patented advances with IBM

Page 17: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• Served as a visiting scientist and IBM Fellow at the IBM Almaden Research Center in San Jose, CA

• Helped advance state of the art in fault-tolerance, and our understanding of why systems fail

Page 18: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• Postdoctoral work at the Information Trust Institute– Worked on Blue Waters

Super Computer, first sustained Petaflop machine

– Designed new fault-tolerant methods for data protection on large-scale systems

Page 19: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• Joined the University of Miami as an Assistant Professor of ECE in 2012– Founded the Fortinet

Cybersecurity Laboratory

Page 20: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• Served as a Summer Faculty Fellow at the University of Chicago during 2014.

Page 21: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• Served as a Summer Faculty Fellow at the University of Chicago during 2014.– Data Science for Social

Good Summer Fellowship

Page 22: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• Served as a Summer Faculty Fellow at the University of Chicago during 2014.– Data Science for Social

Good Summer Fellowship

– Fought corruption with the World Bank

Page 23: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• Served as a Summer Faculty Fellow at the University of Chicago during 2014.– Data Science for Social

Good Summer Fellowship

– Fought corruption with the World Bank

– and Lead Poisoning with CDPH

Page 24: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• 2014 – Joined EECS at UC

Page 25: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Who am I?

• Research in:– Big Data– Data Science and Engineering– Trustworthy Computing– Cybersecurity and Data Privacy– Cloud Computing

Page 26: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

How to get in touch with me?

• Office– Engineering Research Center– Fifth Floor, Room 501E

• Contact Information– Email: [email protected]– Phone: ????

• Currently looking for motivated students– Research projects and papers

Page 27: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Office Hours

• Office– ERC– Fifth Floor, Room 501E

Day Hours

Tuesday 3:30p – 5:00p

Thursday 3:30p – 5:00p

Or by appointment

Page 28: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

The syllabus…

Page 29: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Grades

Grade Component Percentage

Homeworks and MPs 15%

Project I 20%

Project II 20%

Midterm 20%

Final Examination 25%

Page 30: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Grades

• Guaranteed Grades

Page 31: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Projects

• The course will have two projects made to engage you in Trustworthy System Design and Evaluation.

• Project I will be common to the class. You will work in groups of 2.

• Project II will be a semester project you propose and conduct on a system or concept of your choice.

Page 32: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Mobius

Page 33: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Examinations

• Examinations– Midterm – March 3rd in class– Final Exam – Take home examination

Page 34: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Course PlanWeek Topic

1 Introduction, Measure Theory, Trustworthy Computing

2 Combinatorial Modeling

3 State-based Methods

4 Stochastic Activity Networks Project 1 Assigned

5 Simulation

6 Reward Variables, Rare Events

7 Performance Evaluation

8 MIDTERM I, Dependability

9 Fault Tolerance Project 1 Due, Project 2 Proposals Due

- Spring Break

10 Fault Tolerance

11 Security Project 2 Interim Report Due

12 Data Privacy

13 Verification and Validation

14 Course Synthesis Project 2 Presentations

Page 35: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Course Website

http://dataengineering.org/erozier2/courses/cs7040.html

Page 36: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Active Learning

• After 2 weeks we tend to remember:– Passive learning

• 10% of what we read• 20% of what we hear• 30% of what we see• 50% of what we hear and see

– Active learning• 70% of what we say• 90% of what we say and do

Page 37: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Bloom’s Taxonomy

EvaluationSynthesisAnalysis

ApplicationComprehension

Knowledge

Page 38: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Training Good Engineers

• Understanding processors isn’t our only goal– Critical Reading– Critical Reasoning

• Ask questions!• Think through problems!• Challenge assumptions!

Page 39: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Measurements

Page 40: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Making Things More Secure

++

Page 41: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Making Things More Secure

Page 42: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Measurements

• Measurements have inherent assumptions• Measurements are often stated very

informally

• If we want to build a trustworthy system we need to improve on this.– Formalize our measures!

Page 43: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Measurements

Measure theory is a bit like grammar, many people communicate clearly without worrying about all the details, but the details do exist and for good reasons. - Maya Gupta, University of Washington

Page 44: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

The Problem of Measures

• Physical intuition of the measure of length, given a body E, the measure of this body, m(E) might be the sum of it’s components, or points.

• Let’s take two bodies on the real number line– Body A is the line A = [0, 1]– Body B is the line B = [0, 2]

Which is “longer”?

Page 45: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

The Problem of Measures

• Physical intuition of the measure of length, given a body E, the measure of this body, m(E) might be the sum of it’s components, or points.

• Let’s take two bodies on the natural number line– Body A is the line A = [0, 1]– Body B is the line B = [0, 2]

Which is “longer”?

Page 46: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Solving the Problem of Measures

• What does it mean for some body (or subset)

to be measurable?

• If a set E is measurable, how does one define its measure?

• What properties or axioms does measure (or the concept of measurability) obey?

Page 47: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Measure Theory

• Before we can measure anything we need something to measure!

• Let’s define a measurable space– A measurable space is a collection of events B, and

the set of all outcomes, Ω, also called the sample space.

Page 48: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Events and Sample Spaces

• Each event, F, is a set containing zero or more outcomes.– Each outcome can be viewed as a realization of an

event. The real world can be viewed as a player in a game that makes some move:

– All events in F that contain the selected outcome are said to “have occurred”.

Page 49: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Events and Sample Space

• Take a deck of 52 cards + 2 jokers

• Draw a single card from the deck.

• Sample space: 54 element set, each card is a possible outcome.

• An event is any subset of the sample space, including a singleton set, or the empty set.

Page 50: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Events and Sample Space

• Potential events:– “Red and black at the

same time without being a joker” – (0 elements)

– “The 5 of hearts” – (1 element)

– “A king” – (4 elements)– “A face card” – (12

elements)– “A card” – (54 elements)

Page 51: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Forming an Algebra on B and Ω

• In order to define measures on B, we need to make sure it has certain properties, those of aσ-algebra.

• A σ-algebra is a special kind of collection of subsets that is closed under countable-fold set operations (complement, union of countably many sets, and intersection of countably many sets).

• “Vanilla” algebras are closed only under finite set operations.

Page 52: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Countable Sets

• Countable sets are those with the same cardinality of natural numbers.

• Quick refresher: Prove the cardinality of integers and natural numbers are the same.

Page 53: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

σ-algebra

• If we have a σ-algebra on our sample space Ω, then:

Page 54: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Measures

• A measure µ takes a set A from a measureable collection of sets B and returns the measure of A, which is some positive real number.

Formally:

Page 55: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Example Measure• Let’s define a measure of “Volume”.

• The triple combines a measureable space and a measure, the triple is called a measure space. This space is defined by two properties:– Nonnegativity:– Countable additivity: are disjoint sets for i

= 1, 2, …, then the measure of the union of is equal to the sum of the measures of

Page 56: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Example Measure

• Does the ordinary concept of volume satisfy these two properties?

– Nonnegativity:– Countable additivity: are disjoint

sets for i = 1, 2, …, then the measure of the union of is equal to the sum of the measures of

Page 57: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Two Special Kinds of Measures

• Signed measure – can be negative• Probability measure – defined over a

probability space with a probability measure.– A probability measure, P, has the normal

properties of a measure, but it is also normalized such that:

Page 58: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Sets of Measure Zero

• A set of measure zero is some set

• For a probability measure, any set of measure zero can never occur as it has probability of zero. – It can thus be ignored when stating things about

the collection of sets B.

Page 59: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Borel Sets

• A common σ-algebra is the Borel σ-algebra. A Borel set is an element of a Borel σ-algebra.– Almost any set you can describe on the real line is

a Borel set, for example, the unit line segment [0,1]. Irrational numbers, etc.

– The Borel σ-algebra on the real line is a collection of sets that is the smallest σ-algebra that includes the open subsets of the real line.

Page 60: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Borel Sets

• For some space X, the collection of all Borel sets on X forms a σ-algebra known as the Borel algebra (or Borel σ-algebra) on X.

• Important!

• Why? Any measure defined on the open set of a space, or closed sets of a space, must also be defined on all Borel sets of that space.

Page 61: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Borel Sets

• Borel sets are powerful because if you know what a probability measure does on every interval, then you know what it does on all the Borel sets.

• Allows us to define equivalence of measures.

Page 62: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Borel Sets

• Let’s say we have two measures: • To show they are equivalent we just need to show

that:– They are equivalent on all intervals

• By definition they are then equivalent for all Borel sets, and hence over the measurable space.

• Example: Given probability distributions A, and B, with equivalent cumulative distribution functions, then the probability distributions must also be equal.

Page 63: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Measure Theory and CS 7040

• We will be working with a LOT of probability distributions!

• We will be measuring things like:– Performance– Availability– Reliability– Security– Privacy

Page 64: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

Measure Theory: Further Reading

• M. Capinski and E. Kopp, “Measure, Integral, and Probability”, Springer Undergraduate Mathematics Series, 2004

• S. I. Resnick, “A probability path”, Birkhauser, 1999.

• A. Gut, “Probability: A Graduate Course”, Springer, 2005.

• R. M. Gray, “Entropy and Information Theory”, Springer Verlag (available free online), 1990.

Page 65: Lecture 0: Introduction and Measure Theory CS 7040 Trustworthy System Design, Implementation, and Analysis Spring 2015, Dr. Rozier

For next time

• Homework 0!• Due next Tuesday