Majority and Friendship Paradoxes

Similar documents
Paths, Circuits, and Connected Graphs

Planar graphs. Chapter 8

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

Adjacent: Two distinct vertices u, v are adjacent if there is an edge with ends u, v. In this case we let uv denote such an edge.

Lecture 20 : Trees DRAFT

Elements of Graph Theory

Basics of Graph Theory

Varying Applications (examples)

INTRODUCTION TO GRAPH THEORY. 1. Definitions

CS 311 Discrete Math for Computer Science Dr. William C. Bulko. Graphs

Basic Combinatorics. Math 40210, Section 01 Fall Homework 4 Solutions

Discrete mathematics

Discrete Wiskunde II. Lecture 6: Planar Graphs

1. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G))

Graph Theory S 1 I 2 I 1 S 2 I 1 I 2

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

Lecture 5: Graphs. Graphs! Euler Definitions: model. Fact! Euler Again!! Planar graphs. Euler Again!!!!

Graphs and trees come up everywhere. We can view the internet as a graph (in many ways) Web search views web pages as a graph

CS 2336 Discrete Mathematics

Math 443/543 Graph Theory Notes 5: Planar graphs and coloring

Discrete Mathematics (2009 Spring) Graphs (Chapter 9, 5 hours)

Week 8: The fundamentals of graph theory; Planar Graphs 25 and 27 October, 2017

Brief History. Graph Theory. What is a graph? Types of graphs Directed graph: a graph that has edges with specific directions

Introduction III. Graphs. Motivations I. Introduction IV

Artificial Intelligence

Grades 7 & 8, Math Circles 31 October/1/2 November, Graph Theory

Graphs (MTAT , 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402

Algorithms. Graphs. Algorithms

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G.

Graph Theory Day Four

Section 8.2 Graph Terminology. Undirected Graphs. Definition: Two vertices u, v in V are adjacent or neighbors if there is an edge e between u and v.

8 Colouring Planar Graphs

An Introduction to Graph Theory

Graph theory. Po-Shen Loh. June We begin by collecting some basic facts which can be proved via bare-hands techniques.

Lecture 6: Graph Properties

Graph Theory Questions from Past Papers

Algorithms: Graphs. Amotz Bar-Noy. Spring 2012 CUNY. Amotz Bar-Noy (CUNY) Graphs Spring / 95

Grades 7 & 8, Math Circles 31 October/1/2 November, Graph Theory

Discrete Mathematics for CS Spring 2008 David Wagner Note 13. An Introduction to Graphs

Discrete mathematics II. - Graphs

List Coloring Graphs

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Part II. Graph Theory. Year

Graph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC January 26, 2011

5 Graphs

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

Combinatorics Summary Sheet for Exam 1 Material 2019

Two Characterizations of Hypercubes

The Konigsberg Bridge Problem

How many colors are needed to color a map?

CHAPTER 2. Graphs. 1. Introduction to Graphs and Graph Isomorphism

IMO Training 2008: Graph Theory

Graphs. Pseudograph: multiple edges and loops allowed

v V Question: How many edges are there in a graph with 10 vertices each of degree 6?

Assignment 1 Introduction to Graph Theory CO342

Discrete Mathematics Course Review 3

Crossing bridges. Crossing bridges Great Ideas in Theoretical Computer Science. Lecture 12: Graphs I: The Basics. Königsberg (Prussia)

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 8

Assignments are handed in on Tuesdays in even weeks. Deadlines are:

How can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities?

Network flows and Menger s theorem

Planar Graphs. 1 Graphs and maps. 1.1 Planarity and duality

WUCT121. Discrete Mathematics. Graphs

Discrete Mathematics I So Practice Sheet Solutions 1

Matching Algorithms. Proof. If a bipartite graph has a perfect matching, then it is easy to see that the right hand side is a necessary condition.

Planar Graph (7A) Young Won Lim 6/20/18

Definition 1.1. A matching M in a graph G is called maximal if there is no matching M in G so that M M.

1 Some Solution of Homework

HOMEWORK 4 SOLUTIONS. Solution: The Petersen graph contains a cycle of odd length as a subgraph. Hence,

DEFINITION OF GRAPH GRAPH THEORY GRAPHS ACCORDING TO THEIR VERTICES AND EDGES EXAMPLE GRAPHS ACCORDING TO THEIR VERTICES AND EDGES

Computer Science 280 Fall 2002 Homework 10 Solutions

Chapter 11: Graphs and Trees. March 23, 2008

Chapter 1 Graph Theory

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006

EECS 203 Lecture 20. More Graphs

Graph Theory. Connectivity, Coloring, Matching. Arjun Suresh 1. 1 GATE Overflow

Simple Graph. General Graph

Graph Theory CS/Math231 Discrete Mathematics Spring2015

Discrete mathematics , Fall Instructor: prof. János Pach

CS70 - Lecture 6. Graphs: Coloring; Special Graphs. 1. Review of L5 2. Planar Five Color Theorem 3. Special Graphs:

Worksheet for the Final Exam - Part I. Graphs

CHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ - artale/z

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

CSE 417: Algorithms and Computational Complexity. 3.1 Basic Definitions and Applications. Goals. Chapter 3. Winter 2012 Graphs and Graph Algorithms

CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS

Topic 10 Part 2 [474 marks]

BIL694-Lecture 1: Introduction to Graphs

MATH 350 GRAPH THEORY & COMBINATORICS. Contents

Discrete mathematics

STUDENT NUMBER: MATH Final Exam. Lakehead University. April 13, Dr. Adam Van Tuyl

Jordan Curves. A curve is a subset of IR 2 of the form

Intro to Contemporary Math

Jordan Curves. A curve is a subset of IR 2 of the form

Fundamental Properties of Graphs

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. An Introduction to Graph Theory

How many colors are needed to color a map?

Instructor: Paul Zeitz, University of San Francisco

List of Theorems. Mat 416, Introduction to Graph Theory. Theorem 1 The numbers R(p, q) exist and for p, q 2,

Problem Set 3. MATH 776, Fall 2009, Mohr. November 30, 2009

Transcription:

Majority and Friendship Paradoxes

Majority Paradox Example: Small town is considering a bond initiative in an upcoming election. Some residents are in favor, some are against. Consider a poll asking the following two questions: Are you for or against the initiative? Do you think the initiative will pass? Note that Answer to the first question depends on the opinion of the resident only. Answer to the second question depends on the opinion of the residents friends (and social/mainstream media they follow) Upshot: Answers to the second question may be misleading/inaccurate

Social Network (from Wash. Post): Blue = For, Orange = Against In this case, most residents are opposed to the initiative, but the majority of residents think the initiative will pass.

Friendship Paradox Informal: On average, individuals in a social network have fewer friends than their friends do. Formal: Let G = (V, E) be an undirected graph. Define A 1(G) = average degree of vertices in G A 2(G) = average degree of the neighbors of vertices in G Then A 1(G) A 2(G). If G is a social network, then A 1(G) = average number of friends of individuals in network A 2(G) = average number of friends of friends in network

Proof of Friendship Paradox Recall: N(u) = neighbors of u in G, and d(u) = N(u) = degree of u in G. Let V = n. Then we can write A 1(G) = 1 d(u) and A 2(G) = n u V u V ( v N(u) d(v) ) u V N(u) Fact: The average A 2(G) = u V d2 (u) / u V d(u) Rearranging, we find that A 1(G) A 2(G) ( ) 2 1 d(u) 1 d 2 (u) n n u V u V

Basic Lemma To complete the proof, we appeal to a simple inequality. Lemma: If a 1,..., a n are real numbers then Proof: Homework. ( 1 n ) 2 n a i 1 n i=1 n i=1 a 2 i In statistical terms this is a special case of the inequality (EX) 2 EX 2 for a random variable X

Euler Paths

Euler Paths and Circuits Definition: Let G = (V, E) be a simple graph. An Euler path in G is a simple path that contains every edge in E. An Euler circuit in G is a simple circuit that contains every edge in E. Example: Let G represent the map of a small town vertices = intersections edges = streets Can postal worker deliver mail to residents of the town without walking any street twice?

Euler Paths and Circuits, cont. Goal: Necessary and sufficient conditions for Euler paths in G Euler circuits in G Punch line: There are simple conditions involving only the degree of the vertices in G

Euler Circuits and Even Degree Theorem: Let G = (V, E) be a connected multigraph with V 2. Then G has an Euler circuit iff every vertex has even degree. Proof sketch ( ): Let k = 0 and let all edges in E be unmarked. Fix a vertex u 0 V and proceed as follows. (A) If all edges e E containing u k are marked, then stop. Otherwise Select and mark an edge e k = {u k, v} E. Let u k+1 = v be the other endpoint of e k. Increase k by one and return to (A) Let e r = {u r, u r+1} be the last edge selected. Define the path p = u 0, u 1,..., u r+1

Proof, cont. Claim: Path p is a circuit from u 0 to u 0, that is, u r+1 = u 0. Let v u 0 be a vertex in p. Note: If # unmarked edges at v is 2, then when p enters v on one edge it can leave on another, reducing the number of unmarked edges by 2. As deg(v) is even, the number of unmarked edges at v is always 2, in which case p will return to v and leave v = 0, in which case p will not return to v Upshot: Path p cannot end at v, so it must terminate where it began, at u 0.

Proof, cont. Next Steps: If the path p contains every edge in E, then it is the desired Euler circuit. Otherwise, Find a circuit p in the subgraph G 1 of G generated by the edges E 1 = E \ {edges in p}. Splice p and p together into a single circuit. Continue until all edges in E are used.

Euler Paths Theorem: A connected graph G = (V, E) has an Euler path, but not an Euler circuit, iff G has exactly two vertices of odd degree.

Hamilton Paths and Circuits

Hamilton Paths and Circuits Definition: Let G = (V, E) be a simple graph. A Hamilton path in G is a simple path that passes through every vertex exactly once. A Hamilton circuit in G is a Hamilton path that begins and ends at the same vertex. Example: Let G represent the airline network for a region of the U.S. A Hamilton path in G represents the flight itinerary of a salesperson who wishes to each city in the network once on a business trip. Example: If n 3 the complete graph K n and the n-cycle C n have Hamilton circuits.

Conditions for Hamilton Circuits Theorem: Let G = (V, E) be simple with n 3 vertices. Then G has a Hamilton circuit if for every u, v V {u, v} E deg(u) + deg(v) n Note: Theorem gives sufficient conditions for a Hamilton circuit. Simple necessary conditions are not known.

Planar Graphs

Planar Graphs Definition: A graph G = (V, E) is planar if it can be drawn in the plane in such a way that no two edges intersect (except at vertices). Any such drawing is called a planar representation of G. Note A planar graph G can have many representations. Every planar representation divides the plane into a finite number of disjoint regions, one of which is unbounded. Fact: If e = {u, v} is not a cut edge of a graph G then there is a circuit c from u to u beginning with e.

Euler s Formula Theorem: Let G = (V, E) be a simple connected planar graph with E = m and V = n. Then the number of regions r in any planar representation of G is r = m n + 2. Proof of Theorem: By strong induction on m = number of edges in G. Basis: If m = 0 then G is a single isolated vertex. In particular, G is connected, n = 1, and r = 1 = m n + 2. Induction: Let m 1. Assume formula holds for graphs with at most m 1 edges. Consider graph G with E = m and V = n. Select and remove one edge e = {u, v} from G

Proof of Euler s Formula Case 1: Edge e is a cut edge of G. Idea: G \ e has connected components G 1 and G 2. G 1, G 2 are simple and connected. m = m 1 + m 2 + 1 and n = n 1 + n 2 G planar implies G 1, G 2 planar The unbounded regions of G 1, G 2 overlap, but the other regions don t. Thus r = r 1 + r 2 1.

Proof of Euler s Formula Case 2: Edge e is a not cut edge of G. Idea: Using Fact, let c = u, v,..., u be the shortest simple cycle in G from u to u beginning with edge e. As c is simple and no two edges in G intersect, c encloses one or more regions of G. As c is a shortest cycle, it encloses a single region R. Removing e merges R with the region on the opposite side of e, reducing r by 1.

Examples Example: A planar graph with r = 1 has no cycles. Example: A connected planar graph G has 10 vertices and 15 edges. How many regions are there in a planar representation of G? Example: The planar representation of a graph G has 4 regions. If G has 11 vertices, how many edges does it have?

Degree of a Region Definition: Let R be a region of a connected simple planar graph. The degree of R is the number of edges traversed while walking along the boundary of R, with the interior to your left. Note In the definition, edges can be traversed more than once The sum of deg(r) over the regions R of G counts every edge twice, so r deg(r j) = 2m j=1

Degree of a Region, cont. Fact: If G = (V, E) is connected, planar, and simple with V = n 3 then E = m 3n 6. Corollary: The graph K 5 is not planar. Corollary: If G is connected, planar, and simple, then there is a vertex v V with deg(v) 5.

Graph Coloring

Graph Coloring Definition: A coloring of a simple graph G is an assignment of colors to each vertex with the property that no adjacent vertices have the same color. Definition: The chromatic number of a graph G, denoted by χ(g), is the minimum number of colors needed for a coloring of the graph. Example: Graph G with wedding guests as vertices, and edges between guests who do not get along. Then χ(g) = minimal number of tables at the reception needed to guarantee that everyone seated at a table gets along.

Graph Coloring, cont. Example: Graph G with classes as vertices, and edges between two classes if they have one or more students in common. Then χ(g) = minimal number of final exam time slots needed to avoid scheduling conflicts. Example: If G is bipartite then χ(g) = 2, and conversely. Example: If K n is the complete graph on n vertices, then χ(k n) = n. Example: If C n is an n-cycle with n even then χ(c n) = 2.

Famous Result The Four Color Theorem: If G is planar then χ(g) 4.

Looking Backwards and Forwards

STOR 215: Introduction to Mathematical Reasoning I. Logic: language of mathematical reasoning and higher mathematics compound propositions, logical operations, quantifiers II. Basic objects of mathematical analysis sets, summations, functions III. First look at specific subject areas number theory, combinatorics, graphs/networks

STOR 215 Where are these ideas used? linear algebra advanced calculus discrete mathematics econometrics probability optimization analysis of algorithms machine learning stochastic modeling

The End