Math and Stats Flashcards
pseudo-random numbers
a number that’s almost random, but not really random
computer-generated random numbers that appears random, but they are really predetermined
can be re-created exactly
makes your code repeatable
deterministic
if you give a computer a certain input, it will precisely follow instructions to produce an output.
if the input is the same, then the output will be the same.
pseudo
not genuine
pseudo-random number generators
a set of algorithms for creating pseudo random numbers
np.random.randint( )
Return a random integer N such that a <= N <= b.
Parameters:
- low
- high
- size
np.random.seed
provides an input to the pseudo-random number generator
works in conjunction with other functions from np.random module
Random variable X
X = x
- A numerical quantity whose value depends on chance
- A function mapping the sample space to the real number
- The random variable X is realized with a specific value x.
Regression (n)
- A statistical method to determine the strength and character of the relationship between one dependent variable and a series of other independent variables
Simple linear regression
- one feature
- one outcome variable
Multiple linear regression
- two or more features
- one outcome variable
What is a harmonic mean?
- A type of numeric average.
2. Divide the number of observations by the reciprocal of each number in the series.
What is Type I error?
- False Positive
2. Reject null when it is true
What is Type II error?
- False Negative
2. Accept null when it is false
How to center the data?
- Redefine the zero point
- Subtract a constant from every value of a variable.
What is nominal variable?
No intrinsic ordering to its categories, e.g. gender