Final Flashcards

(30 cards)

1
Q

Binomial Distribution

A
  • is a discrete function
  • includes dbinom,rbinom,pbinom,qbinom
  • must have a fixed number of trials
  • trials must be independent
  • must be able to define our outcomes as success/failure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

dbinom

A
  • dbinom(x,size,prob)
  • can be used to find probability
  • P(X=K)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

pbinom

A

pbinom( q,size,prob)
P(X<=K), will return the P

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

rbinom

A

rbinom(n,size,prob)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

qbinom

A

qbinom(q,size,prob)
P(X<=K), will return the K

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Normal Distribution

A
  • is continuous
  • centered at the mean with standard deviation on either side
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

pnorm

A
  • pnorm(value,mean,sd)
  • only computes the area to the left
  • pnorm finds the area/probability (we are given Zo)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

qnorm

A

-Finding Zo given a probability
- only works to the left similar to pnorm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

rnorm

A
  • rnorm(# of values, mean,sd)
  • randomly generates values within the set parameters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

dnorm

A

-creates PDF (probability density function)
- returns the height of any given value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Standard Deviation for Uniform Distribution

A

(b-a)/sqrt12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

dunif

A

dunif(c,min=a,max=b)
1/(b-a)
- will be 0 if c<a>b
- will be 1/(b-a) if a<c<b
dunif() != P(X=k)</a>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Join

A
  • joins are created using the foreign key
  • need to select the data columns then say on what you will be joining them on
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Super Key

A
  • is like a superset from which other keys can be derived
  • there can be null values
  • column names can be combined to create keys
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Candidate Key

A
  • Minimal super key
  • EX) [ID] would be a superkey and candidate key but [ID,Name] would not be because ID can be used alone and Name is not necessary
  • can have null values
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Primary Key

A
  • A primary key must also be a candidate key (chosen from the candidate key list)
  • A primary key can be comprised of multiple fields
  • A primary key must also be a super key
  • should rarely or never change
17
Q

Foreign Key

A
  • A foreign key can be null
  • A foreign key can be compromised of multiple fields
  • deals with 2 different tables
18
Q

Join Formula

A

SELECT (column, column),
FROM (table_name SPACE
create_variable)
JOIN (other_table_name
SPACE create_variable)
ON (variable.column)=.
(othervariable.column)

19
Q

Function to see the tables

A

dbListTables(insert database name)

20
Q

Function to see the columns in table

A

dbListFields(database_name, ‘table_name’)

21
Q

SQL

A

Structured Query Language

22
Q

Aliasing

A
  • when brackets [] are used in a query to change the apperance of a column name
23
Q

SQL Statement Order

A

Select, From, Where, Group By, Having, Order By, Limit

24
Q

Binomial Distribution: Variance Formula

25
Binomial Distribution: Mean/Expected Value
np
26
Binomial Distribution: Standard Deviation
sqrt(variance)
27
Uniform Distribution: Expected Value
(b+a)/2
28
Uniform Distribution: Variance Formula
(b-a)^2/12
29
Uniform Distribution: Standard Deviation
sqrt(variance)
30
Normal Distribution: Expected Value
mean