Docsity

Exploratory Data Analysis: Understanding Random Variables and Sampling in Research Methods, Study notes of Computer Science

Partial preview of the text

Download Exploratory Data Analysis: Understanding Random Variables and Sampling in Research Methods and more Study notes Computer Science in PDF only on Docsity!

CMPSCI 691DD

Research Methods 10 March 2008

Exploratory Data Analysis

Edwin Hubble

What did Hubble see?

Hubble’s Law

E. Hubble (1929). A relation between distance and radial velocity among extra-galactic nebulae. Proceedings of the National Academy of Sciences 15(3).

V = H

0

r

Where: V = recessional velocity H 0 = Hubble constant r = distance (mpc)

“The tool that is so dull that

you cannot cut yourself on it

is not likely to be sharp enough

to be either useful or helpful."

— John W. Tukey

Examples

  • Recall of an IR system, given query, corpus, and designated relevant documents
  • Size and speed of code produced by a compiler, given source and a target processor
  • Number of database rows returned, given an anytime query processor, query, database, and time
  • Lines of code written, given an assignment, language, development environment, and programmer

Notes

  • The objects of study are usually the

systems that enable random variables (e.g.,

IR systems), rather than the instances

that the measures are on (e.g., queries).

  • What we define as a random variable for a

particular experiment can change as we

discover deterministic and causal

relationships in a given system

Populations and samples

  • A population is a specified set of instances
    • An actual finite set of instances (e.g., the UCI data sets for machine learning research)
    • A generalization of an actual finite set (e.g., the set of all data sets that might be produced by a particular simulator in infinite time)
    • A purely hypothetical set which can be described mathematically (e.g., the set of all correct Java programs)
  • Samples are finite subsets of populations

Examples

A subset of the benchmarks The SPECjvm benchmarks Students taking CMPSCI 320 in Fall 2005 All Java programmers active in 2005 The SPECjvm benchmarks All possible programs written in Java The TREC 2005 HARD queries All possible IR queries Populations Actual data samples

Why is sampling important?

Sampling problems

  • Poorly specified population
  • Non-independent draws
  • Censoring

Types of scales

  • Categorical, discrete, or nominal — Values contain no ordering information (e.g., multiple-access protocols for underwater networking)
  • Ordinal — Values indicate order, but no arithmetic operations are meaningful (e.g., "novice", "experienced", and "expert" as designations of programmers participating in an experiment)
  • Interval — Distances between values are meaningful, but zero point is not meaningful. (e.g., degrees Fahrenheit)
  • Ratio — Distances are meaningful and a zero point is meaningful (e.g., degrees K)

Data transformations

  • Downgrading type (e.g., interval to ordinal)
  • Shifting intervals
    • Tukey's "ladder of powers”: trans = original^(1-b)
    • E.g.: -2 -> original^3, 0.5 -> sqrt(original), 2 -> 1/original
  • Combining several variables
    • Normalize measurements (e.g., Simsek & Jensen 2005, normalized to optimal)
    • Remove unwanted factors (e.g., remove file read times from total compile times)
    • Consider relation of two variables (e.g., Kirkpatrick & Selman, vertex/edge ratio)