1/43
Looks like no tags are added yet.
mean - average value of data set
mode - most frequently occurring value in data set
median - middle value in data set
histogram - plots frequency of occurrence of data values vs the values themselves
bin - grouping of data into a subrange necessary to generate a histogram. The choice of the bin width and bin center can drastically change the shape of the histogram. If the number of data values is relatively small, the bin width cannot be small because some of the bins will contain no data and the resulting histogram might not usefully illustrate the distribution of the data.
bar syntax - bar(x,y,'w') (w is the color of the rectangle)
histogram syntax - histogram(y,n) Aggregates the data in the vector y into n bins of uniform width between the minimum and maximum values in y. If you do not put n, it will choose for you
histogram syntax, using white rectangles - histogram(y, 'FaceColor', 'w') or histogram(y, 'FaceColor', 'none') this creates transparent bars
what is a scaled frequency histogram - it is the absolute frequency histogram divided by the total area of that histogram
normal or gaussian function - It is based on the same concept as the scaled histogram; the total area under the curve is 1, and the fractional area gives the probability of occurrence of a specific range of outcomes.
what do you call outcomes that can be described by a normal/bell-shaped curve? - normally distributed
normal probability function - The normal probability function is a two-parameter function; one parameter, mu, is the mean of the outcomes, and the other parameter, sigma, is the standard deviation.
what is the width, or spread, of the curve described by? - the parameter sigma
what is variance? - sigma^2. It is used to describe the spread of the curve. The variance is the square of the standard deviation sigma
P(x<=b) - The probability that the random variable x is less than or equal to b is written as P(x<=b) if the outcomes are normally distributed.
P(a<=x<=b) - The probability that the random variable x is no less than a and no greater than b is written as P(a<=x<=b).
what is the mean of the sum (or difference) of two independent normally distributed random variables equal to? - the sum (or difference) of their means
what is the variance of two independent normally distributed random variables - always the sum of the two variances
how do you obtain a single random number in the open interval (0,1) - rand
how do you keep a result obtained at startup - rng('default')
how do you avoid getting the same random number - rng('shuffle')
how do you make an nxn matrix containing uniformly distributed random numbers between 0 and 1 - rand(n)
how do you generate an mxn matrix containing uniformly distributed random numbers between 0 and 1? - rand(m,n)
how do you generate a single normally distributed random number having a mean of 0 and standard deviation of 1 - randn
how do you generate an nxn matrix of normally distributed random number having a mean of 0 and standard deviation of 1 - randn(n)
how do you generate an mxn matrix of normally distributed random number having a mean of 0 and standard deviation of 1 - randn(m,n)
generate a vector y containing 2000 random numbers normally distributed with a mean of 5 and standard deviation of 3 - 3*randn(1,2000)+5
create a row vector containing a random permutation of integers from 1 to n inclusive - randperm(n)
generate a row vector containing k unique integers selected randomly from 1 to n inclusive - randperm(n,k)
create a mxn matrix containing random integer values between a and b - randi([a,b],[m,n])
create a scalar between 1 and 6 - randi(6)
what is the difference between randperm and randi - randperm returns unique integers, randi integer values may be repeated
generate a row vector containing 9 unique integers selected randomly from 1 to 12 inclusive - randperm(12,9)
return a scalar between 1 and 5 - randi(5)
generate 6 numbers from 1 to 6, but allow it so that the same number may be repeated - randi(6,[1,6])
what is a random walk - a random process that describes a path produced by successive random steps
what is the seemingly random motion of particles in a fluid caused by collisions? - Brownian motion
what is drift - when a walk is more likely to move in a positive or negative direction, it has drift
will randi([-1,2],[1,100]) create a walk with drift? - yes, because it can stay still, move back one space, move forward one space, or move forward two spaces. These are all equal probabilities, but since there are more options for moving forward than backwards, it will walk with drift
x=[7,9,11,12], y=[49,57,71,75] interpolate the value of y when x=8 - interp1(x,y,8) ans=53
x=[0,1], y=[0,2], z=[49,54,53,57] estimate the z value at (0.6, 1.5) - interp2(x,y,z,0.6,1.5) ans=54.55
linear interpolation syntax - interp1(x,y,x_int)
two-dimensional interpolation syntax - interp2(x, y, z, x_i, y_i) estimate value of z at x=x_i and y=y_i
using cubic spline for interpolation - y_int=spline(x,y,x_int) y_int is a vector the same size as x_int containing the interpolated values of y that correspond to x_int