Sie sind auf Seite 1von 3

Fatih Sunor

Part-I (N)ominal
Qua(L)itative

HW1

STAT 202

(D)iscrete (O)rdinal

Quan(T)itative

(I)nterval (R)atio

(C)ontinuous

(D)iscrete

(a) Time in terms of AM or PM -> L, N, D (b) Brightness as measured by a light meter. -> T, R, C (Brightness measured with lux) (c) Brightness as measured by peoples judgments. ->L, O, D (A person may not identify the scalar change in power flux but can indicate, dark, medium dark, light, etc There is a degree between these measures, so its ordinal, but please not that this classification is valid given judgment of a single person and not the entire humanity. (d) Angles as measured in degrees between 0 and 360. -> T, R, C (e) Bronze, Silver, and Gold medals as awarded at the Olympics. ->L, O, D (f) Height above sea level. -> T, R, C (g) Number of patients in a hospital. -> T, R, D (h) ISBN numbers for books. (Look up the format on the Web.) -> L, N, D (i) Ability to pass light in terms of the following values: opaque, translucent, transparent. -> L, O, D. This one is strange however either you ask a person to classify or use flux metrics to classify still there are three conclusions, though flux metrics are continuous, so its qualitative, ordinal, as there are degrees, and discrete. (j) Military rank. -> L, O, D (k) Distance from the center of campus. -> T, R, C (l) Density of a substance in grams per cubic centimeter. -> T, R, C (m) Coat check number. (When you attend an event, you can often give your coat to someone who, in turn, gives you a number that you can use to claim your coat when you leave.) -> L, N, D (1st interpretation) check number is used only to match a ticket with a coat. L,O, D (2nd interpretation) if it identifies, location with respect to the check-in window for example because in that case number indicates relative location. This one is similar to the zip code, one can speculate either way, but definitely coat numbers are not meant to add or multiply so definitely in the L domain.

Fatih Sunor

HW1

STAT 202

Part II (My solution is also hosted in below link) https://code.google.com/p/stat202/source/browse/#svn%2Ftrunk%2F%20stat202%2FSTAT202


# STAT 202 Homework 1 Part 2 # # Author: Fatih Sunor ############################################################################# # Set working directory setwd("C:/R/STAT202"); # Read data data <- read.csv("myfirstdata.csv",header=FALSE); # R recognizes categorical (factor) and quantitative (numeric) data # You can kindly ask R as below # Data type numeric vs factor is.numeric(data[,1]); # [1] TRUE is.numeric(data[,2]); # [1] TRUE is.factor(data[,1]); # [1] FALSE is.factor(data[,2]); # [1] FALSE # First column is a discrete data set, you can visually identify data levels. # Data looks denser around 0, 1 and 2 levels, there is a general diminishing # data density as the value increases. See plot in the next section. plot(data[,1]); # Second column is a discrete data set as well, except has an outlier, 51, # which seems to violate the general diminishing data density as the value increases. See plot in the next section. plot(data[,2]); # Statistics mean(data[,1]); # [1] 1.593 max(data[,1]); # [1] 27 var(data[,1]); # [1] 4.526614 quantile(data[,1],.25); # 25% 0

Fatih Sunor

HW1

STAT 202

Das könnte Ihnen auch gefallen