Docsity

Graph-Theoretic Concepts - Bioinformatics: Network Analysis | COMP 572, Study notes of Computer Science

Partial preview of the text

Download Graph-Theoretic Concepts - Bioinformatics: Network Analysis | COMP 572 and more Study notes Computer Science in PDF only on Docsity!

Computational Techniques: A brief review

COMP572, Spring 2008

Outline

Graph-theoretic concepts

Basics of Probability: random variables and

distributions

Basics of Statistics: Hypothesis testing

Graphs

A graph G is a pair (V,E), where V is the set of

vertices, or nodes, and E is the set of edges (each

edge in E connects a pair of nodes in V)

There are directed (edges have direction) and

undirected (edges have no direction) graphs (aka

digraphs)

The degree of a node is the number of edges incident

with it

In directed graphs, we also define the in-degree and

out-degree of a node

Graphs

Paths and Connectivity

  • A path from node i to node j is a sequence of nodes (i,x 1 ,x 2 ,...,xp,j) such that (i,x 1 ), (x 1 ,x 2 ),...,(xp,j) are all edges in the graph
  • In a directed graph, the path must follow the direction of the edges
  • A circuit is a path that starts and ends with the same node
  • A graph is connected if there is a path between every two nodes; otherwise, it is disconnected
  • A digraph is strongly connected if there is a path from each node to every other node
  • A strongly connected component (SCC): subgraphs that are strongly connected

Graphs

Common Subgraphs

A subgraph of graph G is a subset of G’s nodes along

with the edges that connect them

Tree: connected, and contains no circuits (n nodes and

n-1 edges)

Cycle: a circuit in which no node is revisited (n nodes

and n edges)

Clique: there is an edge between every two nodes

Graphs

Special directed subgraphs

Bi-fan:

Feed-forward loop: two non-intersecting directed

paths from a start to an endpoint

Bi-parallel: two non-intersecting paths of identical

length from a start to an endpoint

Feed-back loop: a directed cycle

Random Variables

  • A discrete random variable is a numerical quantity that, in some experiment that involves some degree of randomness, takes one value from some discrete set of possible values.
  • Example 1: the experiment is the rolling of two six-sided dice, and the random variable is the sum of the two numbers showing on the dice.
  • In this case, the possible values of the random variable are 2, 3, ..., 12.

Random Variables

  • Example 2: X is the random variable that denotes the number of tosses of a coin until the first head appears
  • Question: what are the possible values that X can take?

Probability Distribution

  • The set of values that the discrete random variable Y can take with positive probability is called the range of that random variable (we denote it by Range(Y)).
  • We write PY( y ) to denote the probability that random variable Y takes the value y.

Cumulative Distribution Function

  • The cumulative distribution function FY( y ) of the discrete random variable Y is the probability that Y takes a value y or less.
  • In other words

F Y (y) =

y ′ ≤y

PY (y

′

Independence

  • Example 2: Suppose two fair dice are rolled, and let S and D be two random variables where

S: the sum of the two numbers showing on the dice (range: 2,3, ...,12)

D: the difference of the two numbers showing on the dice (range: -5, -4, ..., 5)

  • If it is known that the observed value s of S equals 3, then it must be that the observed value d of D is ±1, each with probability 1/2.
  • Therefore, S and D are not independent.

Some Important Discrete Probability Distributions

  • The uniform distribution
  • The binomial distribution
  • The geometric distribution
  • The hypergeometric distribution
  • The Poisson distribution

The Binomial Distribution

  • A random variable Y has a binomial distribution if the probability distribution function of Y is of the form

This distribution arises when we have a sequence of n independent Bernoulli trials, where “success” has probability p and “failure” has probability (1-p), and Y is the number of successes.

P

Y

(y) =

n

y

p

y

(1 − p)

n−y

, ∀y ∈ Range(Y )

  • Notice that the binomial distribution is in fact a family of distributions indexed by n and p.

The Geometric Distribution

  • A random variable Y has a geometric distribution if the probability distribution function of Y is of the form

This distribution arises when we have a sequence of independent Bernoulli trials, where “success” has probability p and “failure” has probability (1-p), and Y is the number of successes before, but not including, the first failure.

PY (y) = (1 − p)p

y

F Y (y) = Prob(Y ≤ y) = 1 − p

y+

, ∀y ∈ Range(Y )