MGSC 291 Walters Exam 1

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/79

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:04 PM on 9/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

80 Terms

1
New cards

Defining an Object

2
New cards

Stored objects

ls() or objects()

3
New cards

Check the class

class()

4
New cards

What does the class function return

numeric, integer, character, logical

5
New cards

How does R store categorical data

As a factor

6
New cards

How to assign data as a factor

_______

7
New cards

Combine function

c().... ex: >(vec1

8
New cards

How to check the data type

is.numeric() or is.atomic() or is.vector()

9
New cards

Defining vectors

is.character(c()) or is.vector(c())

10
New cards

Average

mean()

11
New cards

Equal to

==

12
New cards

not equal to

!=

13
New cards

less than

<

14
New cards

less than or equal to

15
New cards

greater than

>

16
New cards

Greater than or equal to

>=

17
New cards

Or

|

18
New cards

And

&

19
New cards

Standard Deviation

sd()

20
New cards

Sum function

sum(),The SUM Function adds all the numbers in a range of cells.

21
New cards

summary function

summary(), returns 5 # summary and mean for numerical data

22
New cards

Rounding function

round((variable),# of places)

23
New cards

If else function

(ifelse"variable"

24
New cards

Data structure and type

str()

25
New cards

Number of elements in a vector

length()

26
New cards

reading in the data

"name"

27
New cards

Finding working directory

getwd()

28
New cards

setting working directory

stewed()

29
New cards

what is strings=TRUE

If you want your character data to be read in as a factor (which is what we will almost always want), use strings=T in the read.csv call.

30
New cards

How to make data numeric

as.numeric()

31
New cards

subsetting

use brackets to specify which row or column you want to apply a function to

ex: variable(". "[subsetted variable])

32
New cards

what does na.rm=TRUE mean

Ignores the NAs in the data to give results for some functions

33
New cards

What is a parameter

number used to describe/summerize the population

34
New cards

Statistic

number calculated from a sample (used to estimate the parameter)

35
New cards

Observational Unit

the unit upon which an observation is made (rows of the dataset)

36
New cards

Variable

a characteristic of an individual or item in the population (columns in the dataset)

37
New cards

Quantitative

numbers that have magnitude (have a unit of measure)

38
New cards

Discrete

counted

39
New cards

Continuos

measured

40
New cards

Qualitive (categorical)

Non-numeric values, No magnitude (ex: zip code, area code, social security number)

41
New cards

nominal

variables that have value that can not be ordered (ex: undergraduate majors)

42
New cards

Ordinal

values can be ordered (ex: length of time employed,

43
New cards

Indentifier variable

a unique indetifier assigned to each individual or item in a group (don't have units, special kind of categorical data, not variables to be analyzed)

44
New cards

Time Series

Variable that is measured at regular intervals over time (sequence of data, equally spaced intervals[daily, weekely, monthly, etc...])

45
New cards

Cross sectional data

when a variable is measured on many subjects at the SAME point in time (or same time frame)

46
New cards

Panel Data

Multiple observational units measured over time (multiple time series overtime in a single dataset)

47
New cards

Data Lake

collection of structured, semi-structured, and unstructured data stored in a single location

Used by data engineers, data architects, and data scientists

48
New cards

data warehouse

stores structured data that is ready for data analytics

Used by business professionals that need ready data

49
New cards

Boxplot

displays the 5-number summary as a central box with whiskers that extend to the non-outlying data values

Code: >boxplot(Yvaraible~Xvariable)

50
New cards

Histogram

Displays the distribution of a quantitative variable. The horizontal axis is marked in the units of measurement for the variable. The vertical axis contains the scale of counts or percents. Each bar in the graph represents an equal-width class.

Code: >hist()

51
New cards

Scatterplot

a graphical depiction of the relationship between two variables

Code: > plot()

52
New cards

xlab

The X axis label

53
New cards

ylab

The y axis label

54
New cards

main

title

55
New cards

sub

subtitle

56
New cards

cex.lab

Font size for label annotation

57
New cards

cex.main

font size for title

58
New cards

line graph

Visualization of one of more time series

59
New cards

bar graph

Displaying categorical data ( a single number for each category, can display parts of a whole or sperate values, gaps between bars)

60
New cards

Pie Chart

categorical data, represents part of a whole

61
New cards

Sample mean

Balanncing point

code: >mean()

62
New cards

Sample median

the middle value in a series of measurements or observations, chosen so that there are equal numbers of measurements in the series that are larger than the median and smaller than the median

code: >median()

63
New cards

Skewed left

mean < median

-tail to the left

64
New cards

symmetric

mean = median

65
New cards

skewed right

mean > median

tail to the right

66
New cards

Mode

most frequently occurring score

67
New cards

Range

Distance between highest and lowest scores in a set of data.

code: >range()

68
New cards

IQR

Q3-Q1

code: >IQR()

69
New cards

variance

standard deviation squared

code: >var()

70
New cards

standard deviation

a measure of variability that describes an average distance of every score from the mean

code: sd()

71
New cards

For symmetric data, report the....

Mean and SD

72
New cards

For skewed distributions, report the....

Median and Quartiles

73
New cards

coefficient of variation

(standard deviation/ mean) X 100

code: >cv()

74
New cards

z-score

the number of standard deviations a particular score is from the mean

Z= (obs. - mean)/SD

75
New cards

Chebyshev's Theorem

for any data set, the proportion of observations that lie within k standard deviations from the mean is at least 1-1/k^2, where k is any number greater than 1 (at least)

2 75%

3 88.9%

4 93.8%

5 96%

76
New cards

Empirical Rule (68-95-99.7)

for datasets that are relatively symmetric/bell shaped

1 sd 68% of data

2 sd 95% of data

3 sd 99.7% of data

77
New cards

skewness

A measure of the shape of a data distribution. Data skewed to the left result in negative skewness; a symmetric data distribution results in zero skewness; and data skewed to the right result in positive skewness

Code: >skewness()

78
New cards

Kurtosis

Measure of the fatness of the tails of a probability distribution relative to that of a normal distribution. Indicates likelihood of extreme outcomes.

Excel uses 0 as a basline instead of 3

code: >kurtosis()

79
New cards

Risk to return

CV, sd/mean

higher the # more riskey

80
New cards

Return to risk

1/CV, mean/SD

Lower number more risky