- if A and B ARE mutually exclusive then the events cannot occur at the same time
- Then there is no intersection
- Since they cannot both occur so in that case it's just P(A) + P(B)
- For NON mutually exclusive events they can both occur at the same time
- so we have an intersection of the events A and B, so we still have P(A) + P(B) but now see if we add A and B we are also adding the intersected part, so really adding a part of A and a Part of B twice so to just get A or B we have to remove that part, so subtract off P(A and B)
Friday, March 31, 2017
Monday, March 20, 2017
hypothesis test for proportions, things to remember
Here's a few things to remember
Z scores for proportion
(p^ - p)/square root(p*(1-p)/n)
Z for difference of two proportion
(p1^ - p2^)/square root(p-bar(1-p-bar)/n1 + (p-bar(1-p-bar)/n2))
p-bar = (x1 +x2)/(n1 + n2)
Note that p-bar might also be noted at p-pooled
For hypotheses, remember that Ho always contains = and Ha contains <, > or "does not equal"
Confidence intervals for single proportion
p^ +/- Z*square root(p^(1-p^)/n)
For difference of two propotions
p1^ - p2^ +/- Z*square root(p1^(1-p1^)/n1 + p2^(1-p2^)/n2)
Z values for confidence intervals
90% = 1.645
95% = 1.96
98% = 2.33
99% = 2.575
You can also get these from Z chart
P-values are the value from the Z chart for corresponding Z score if Ha contains < and 1- value from the Z chart for corresponding Z score if Ha contains >. If Ha is "does not equal" you take 1 - value from the Z chart for corresponding Z score then multiply the result by 2.
You can also get p-values from Z scores using the link below.
http://www.socscistatistics.com/pvalues/normaldistribution.aspx
Z scores for proportion
(p^ - p)/square root(p*(1-p)/n)
Z for difference of two proportion
(p1^ - p2^)/square root(p-bar(1-p-bar)/n1 + (p-bar(1-p-bar)/n2))
p-bar = (x1 +x2)/(n1 + n2)
Note that p-bar might also be noted at p-pooled
For hypotheses, remember that Ho always contains = and Ha contains <, > or "does not equal"
Confidence intervals for single proportion
p^ +/- Z*square root(p^(1-p^)/n)
For difference of two propotions
p1^ - p2^ +/- Z*square root(p1^(1-p1^)/n1 + p2^(1-p2^)/n2)
Z values for confidence intervals
90% = 1.645
95% = 1.96
98% = 2.33
99% = 2.575
You can also get these from Z chart
P-values are the value from the Z chart for corresponding Z score if Ha contains < and 1- value from the Z chart for corresponding Z score if Ha contains >. If Ha is "does not equal" you take 1 - value from the Z chart for corresponding Z score then multiply the result by 2.
You can also get p-values from Z scores using the link below.
http://www.socscistatistics.com/pvalues/normaldistribution.aspx
Monday, March 6, 2017
Finding half life
Solving for the half life is easy.
Suppose A(t) = Ao*e^(-4t)
To find the half life, let A(t) = (1/2)Ao
(1/2)Ao = Ao*e^(-4t)
1/2 = e^(-4t)
ln (1/2) = ln(e^(-4t))
ln (1/2) = -4t
t = (-1/4)ln(1/2)
Suppose A(t) = Ao*e^(-4t)
To find the half life, let A(t) = (1/2)Ao
(1/2)Ao = Ao*e^(-4t)
1/2 = e^(-4t)
ln (1/2) = ln(e^(-4t))
ln (1/2) = -4t
t = (-1/4)ln(1/2)
Monday, February 27, 2017
Bayes Theorem
Bayes Theorem
P(B/A)=P(A and B)/P(A) but from Bayes Theorem we have
P(B/A) = P(A/B)*P(B)/P(A)
P(B/A) = P(A/B)*P(B)/P(A)
in our problem let A = identify correctly and B = cat person
therefore A' = identify incorrectly and B' = dog person
therefore A' = identify incorrectly and B' = dog person
P(A) = P(A/B)*P(B) + P(A/B')P(B')
Note the tree diagram in the written work.
The values used and obtained are as follows
P(B) = .33
P(B') = .67
P(A/B) = .96
P(A'/B) = .04
P(A/B') = .71
P(A'/B') = .29
P(A and B) = .33(.76) = .3168
P(A' and B) = .33(.04) = .0132
P(A and B') = .67(.71) = .4757
P(A' and B') = .67(.29) = .1943
P(B') = .67
P(A/B) = .96
P(A'/B) = .04
P(A/B') = .71
P(A'/B') = .29
P(A and B) = .33(.76) = .3168
P(A' and B) = .33(.04) = .0132
P(A and B') = .67(.71) = .4757
P(A' and B') = .67(.29) = .1943
Notice that all the joint probabilities add to 1
Now put those values into the formula and you'll get P(B/A) = .3997
Monday, February 20, 2017
Assumptions for hypothesis test with proportions
First we must see if np >10 and n(1-p)> 10
Also the sampling method must be a simple random sample, with only two possible outcomes, p (success) and 1-p (failure).
The sample must include at least 10 successes and 10 failures and the population size is at least 20 times larger than the sample size.
Wednesday, February 15, 2017
The sample data distribution tends to resemble the population distribution more closely than the sampling distribution. A random sample of data from a population should be representative of the population, and its distribution should be similar to the population distribution.
Suppose that we draw all possible samples of size n from a given population and then get the mean, standard deviation, proportion or other statistic for each sample. The probability distribution of this statistic is called a sample distribution.
Now suppose we take all possible samples of a certain size from a population. Once we obtain the samples, we get the mean for each sample. This is called the sampling distribution of the sample mean.
Thursday, February 9, 2017
The price ceiling which is the highest the price can be is lower than the price equilibrium, so when the price is $5, you see the supply is 10 and the demand is 30. This means there is a higher demand than what is in supply, therefore there is a shortage of 20.
The price floor is the lowest the price can be and since it's still $5, the supply and demand is the same as in the first part. But since the price floor can be increased, there is no surplus or shortage, it can be moved to create equilibrium or surplus. Basically it isn't fixed, whereas with the price ceiling at $5, there is no way to rectify the situation of the shortage.
Thursday, February 2, 2017
1.The distance that one professional golfer can drive a golf ball has a normal distribution with a mean of 258 yards and a standard deviation of 6 yards. What proportion of his drives exceed 280 yards in length? How many yards should this golfer drive a ball so that the distance is among his longest 25%
(X > 280) , we need to get the Z score, which is Z =(x -mean)/standard deviation
Z = (280 - 258)/6
Z = 3.67
1-Z(3.67) ,.... approximately 0, less then .0001
Z = 3.67
1-Z(3.67) ,.... approximately 0, less then .0001
Z for upper 25th percent is .67
Mean + Z*standard deviation
258 +.67(6) = 262.02
258 +.67(6) = 262.02
2.The average number of pounds of meat a person consumes a year is 212.3 pounds. Assume that the standard deviation is 20 pounds. If a sample of 50 individuals is selected, find the probability that the mean of the sample will be less than 210 pounds per year.
mean = 212.3, standard deviation is 20
n = 50
n = 50
P(x-bar < 210)
Z = (x-bar -mean)/(standard deviation/square root(n))
Z = (210 - 212.3)/(20/square root(50))
Z = -0.81
Z = (x-bar -mean)/(standard deviation/square root(n))
Z = (210 - 212.3)/(20/square root(50))
Z = -0.81
Z(-0.81) = .2090
answer is .2090
3. Suppose that a presidential candidate is favored by 51% of all eligible voters. What is the probability that in a random sample of 100 registered voters, less than 49% will favor that candidate?
p = .51
1-p = .49
1-p = .49
Z = (p^ - p)/(sqrt(p(1-p)/n))
Z = (.49 - .51)/(sqrt(.51*.49)/100)
Z = -0.4
Z = -0.4
Z(-0.4) = .3446
Tuesday, January 24, 2017
When solving an SSA triangle, you could possible have 0,1 or 2 triangles
Suppose in triangle ABC, you know side a = 10, b = 16 and angle A is 30 degrees
By the law of sines,
SinB/16 = Sin30/10
10*sinB = (1/2)!6
SinB = 0.8, therefore B = 53.1 degrees. But sine is also positive in the second quadrant, so there is a possible second triangle with B = 126.9 degrees. This can work because C would equal 23.1 degrees in this triangle and C = 96.9 in the first triangle
If angle A was 60 degrees and B came out to 53.1 or 126.9 then only 1 triangle exists since (126.9 + 60 = 186.9) angle C + angle A > 180.
If you try to solve for an angle an get Sin > 1 or < -1 then there are no solutions.
Friday, January 13, 2017
suppose we want a linear approximation for sin(0.3). Look at the function sinx, where x = 0.3 We want to pick a value for a to approximate x, a value for which we know the sin. We know sin0 = 0, so choose a = 0, which is close to x =0.3.
Now use the formula L(x) (linear approximation as function of x) = f(a) + f'(a)(x-a)
f(0) = 0
f'(x) = cosx, so f'(a) = f'(0) = 1
L(x) = 0 + 1(0.3 - 0)
= 0 + 0.3
=0.3
The value of sin(0.3) = .295. so the approximation is close. Note that the value of x = 0.3 is in radians
Now use the formula L(x) (linear approximation as function of x) = f(a) + f'(a)(x-a)
f(0) = 0
f'(x) = cosx, so f'(a) = f'(0) = 1
L(x) = 0 + 1(0.3 - 0)
= 0 + 0.3
=0.3
The value of sin(0.3) = .295. so the approximation is close. Note that the value of x = 0.3 is in radians
Sunday, January 1, 2017
Roger's statement isn't exactly correct, as it doesn't make sense that a movie would make 3.8735 million dollars without any money put into the production of the movie. A movie cannot even be produced with money budgeted.
Looking at the definition of a linear equation of the regression line, y = a + bx or sometimes written as y = b0 +b1(x). The y-intercept is b0, which is the value when x is 0.
In this case by definition x being the budget and y being the revenue, yes with 0 dollars for budget, the revenue is 3.8735.
But we have to look at practicality with our conclusion. Like I mentioned above, this makes no sense in the context of the problem. So, we cannot make this conclusion. The y-intercept in this case is something we shouldn't even consider because you will never have a budget of 0 dollars.
Monday, November 21, 2016
With the most recent US Presidential election in the books, let me examine a few numbers closely. The two most populous states, (California and New York) gave Hillary Clinton the advantage in the popular vote. Donald Trump had more votes in the other 48 states overall. The four states with the most population make up 1/3 of the total US population, while the other 46 states account for only 67% of the population. This is why the electoral college is in place, so a few states can't determine the election when the vast majority of the other states show support for the other candidate. Each state has a proportional amount of electoral votes depending on the population in the state. Each state has its fair stake in the outcome of the election. It's a process that has worked and will continue to work, even if sometimes (on a rare occasion) the popular vote is for the candidate that ultimately loses.
Thursday, September 29, 2016
For the hypothesis test, we need to find the test statistics
t = (x-bar - Mu)/standard error
standard error = sample standard deviation/square root of n
From here we compare the test statistic to the critical value t or you can compute the p-value and compare to alpha level of the test at .05
If the p-value < alpha, then reject Ho. Notice in the case of your problem, there is a rejection of the null hypothesis in both cases.
For the confidence interval it's mean +/- tcritical*standard error.
Friday, September 23, 2016
To calculate the Q1 (25th percentile) take n times .25 and that value is the data value that is Q1. If n(.25) does not come out even, round up to the next integer. Remember the data values must be sorted in order from lowest to highest for this. Q3 is found by taking n(.75) and round up if necessary and that is the value in order of Q3, IQR is interquartile range and is Q3-Q1. We use that to find out if there are any outliers. Any data value less than Q1 - 1.5(IQR) or greater than Q3 + 1.5(IQR) is an outlie
Wednesday, September 14, 2016
Mean (x + y) = Expected value (X + Y) = E(x) + E(y) which means the mean is meanx + meany, so is meanx = 75 and meany =70, then the mean (x +y) = 75 + 70 = 145
The Var(x + y) = Var(x) + Var(y) if x and y are independent.
Var(x) = 6^2 = 36
Var(y) = 8^2 + 64
Var(x+y) = 100. The standard deviation is the square root of the variance, so standard deviation = 10
Var(x) = 6^2 = 36
Var(y) = 8^2 + 64
Var(x+y) = 100. The standard deviation is the square root of the variance, so standard deviation = 10
The mean of the difference is the difference of the means E(X - Y) = mean (x - y) = meanx - meany
So the difference of the means is 75-70 = 5
The standard deviation of the difference is the square root of the Var(x-y)
Var(x - y) = Var(x) + Var(y) if x and y are independent, same as for Var(x +y) . Therefore the answer is 10
Tuesday, August 30, 2016
Just noticed a few sales on the books I wrote a few years ago. I had forgotten about them since sales were minimal. I was just pleased to put out my work on algebra. Now looking at completing a long standing project involving math for kids K through 5. Check out the link below for the books.
http://www.lulu.com/spotlight/KKauffman1969
http://www.lulu.com/spotlight/KKauffman1969
Saturday, August 20, 2016
Tuesday, August 9, 2016
Remember that the t distribution is more wide than the standard normal distribution, but at n gets larger and larger, the t distribution become approximately normal in nature.
The t-test is used when population standard deviation is not known. When we know that population is normally distributed, then we can use Z and also when population standard deviation is known, we can use Z
The t-test is used when population standard deviation is not known. When we know that population is normally distributed, then we can use Z and also when population standard deviation is known, we can use Z
Sunday, July 31, 2016
Note that if you want to figure out if a function has a slant asymptote, you have to realize that the equation of a slant asymptote is linear, so the exponent of the leading coefficient of the numerator of the function must be one greater than that of the denominator.
When doing long division (denominator into numerator), it might not divide evenly. Do not concern yourself with the remainder. That slant or oblique asymptote is just the linear portion.
When doing long division (denominator into numerator), it might not divide evenly. Do not concern yourself with the remainder. That slant or oblique asymptote is just the linear portion.
Sunday, July 10, 2016
Suppose you roll two 6 sides dice and we want to see the outcomes and probability distribution for the difference between the two dice. 3 on the first and 2 on the second would be 3-2=1 and 2 on the first and 3 on the second would be 2-3 = -1
To get a 0 when subtracting the numbers on the dice, the numbers must be the same. This happens 6 ways.
(1,1), (2,2), (3,3), (4,4), (5,5), (6,6).. since there are 36 possibilities, we have 6/36 = 1/6
For problem 6, to subtract numbers to get -2, the second number must be two larger than the first number.
(1,3), (2,4), (3,5), (4,6) . So we have 4 out of 36 outcomes that will subtract to -2. The probability is 4/36 = 1/9
For problem 7, It's basically the same as problem 6, except now the first number is two larger than the second number.
This gives us (3,1), (4,2), (5,3), (6,4). Again this is 4/36, simplified to 1/9
For the last problem, we want the possible outcomes with corresponding probabilities
We can get 0 if the numbers are the same, which I showed in problem 5, that is probability 1/6
We can get 1 when subtracting the numbers if we have (2,1), (3,2), (4,3), (5,4), (6,5) that is 5/36
We can get -1 when subtracting if we have (1,2), (2,3), (3,4), (4,5), (5,6), again with probability 5/36
We can get 2 as shown in problem 7 with probability of 1/9
We can get -2 as shown in problem 6 with probability of 1/9
We can get 3 with rolls of (4,1), (5,2), (6,3) with probability of 3/36 = 1/12
We can get -3 with rolls (1,4), (2,5), (3,6) with probability of 3/36 = 1/12
We can get 4 with rolls (5,1), (6,2) with probability of 2/36 = 1/18
We can get -4 with rolls (1,5), (2,6) with probability of 2/36 = 1/18
We can get 5 with a roll of (6,1) with probability 1/36
We can get -5 with a roll of (1,6) with probability of 1/36
We can get -2 as shown in problem 6 with probability of 1/9
We can get 3 with rolls of (4,1), (5,2), (6,3) with probability of 3/36 = 1/12
We can get -3 with rolls (1,4), (2,5), (3,6) with probability of 3/36 = 1/12
We can get 4 with rolls (5,1), (6,2) with probability of 2/36 = 1/18
We can get -4 with rolls (1,5), (2,6) with probability of 2/36 = 1/18
We can get 5 with a roll of (6,1) with probability 1/36
We can get -5 with a roll of (1,6) with probability of 1/36
Putting it all together we get this model
outcome Probability
5 1/36
4 1/18
3 1/12
2 1/9
1 5/36
0 1/6
-1 5/36
-2 1/9
-3 1/12
-4 1/18
-5 1/36
5 1/36
4 1/18
3 1/12
2 1/9
1 5/36
0 1/6
-1 5/36
-2 1/9
-3 1/12
-4 1/18
-5 1/36
Notice that the probabilities will add to 1. That must always be the case for a legitimate probability model and the probabilities for each event must be between 0 and 1 inclusive
Subscribe to:
Posts (Atom)