document.write( "Question 1201601: 5. The distribution of survival time of guinea pigs with cancer after treatment is typically strongly right-skewed. Assume that the mean of the guinea pig survival time for a population of guinea pigs with cancer is 100 days with a standard deviation of 10 days. Suppose we take a sample of size n=49 guinea pigs from the population of guinea pigs with cancer.\r
\n" ); document.write( "\n" ); document.write( "(a) Explain why even though the population in this case is known to be skewed right we can model the sample mean using a Normal distribution.\r
\n" ); document.write( "\n" ); document.write( "(b) What is the approximate probability that the sample mean survival time will be less than 95 days?\r
\n" ); document.write( "\n" ); document.write( "(c) Determine the required sample size such that the probability that the sample mean will be within 2 days of the population mean survival time is 95%.
\n" ); document.write( "

Algebra.Com's Answer #836072 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Answers:
\n" ); document.write( "(a) See explanation below.
\n" ); document.write( "(b) 0.00023 (approximate)
\n" ); document.write( "(c) n = 96 (approximate)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "====================================================================================\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Explanation:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Part(a)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Right-skewed means the main cluster of individuals are to the left while there are a few large outliers to the right (thereby forming a long stretched tail to the right).
\n" ); document.write( "In this context, it means that the vast majority of guinea pigs with cancer unfortunately do not survive too long after treatment. A few lucky individuals that are large outliers do survive for quite a while longer.
\n" ); document.write( "Another term for \"right-skewed\" is \"positively skewed\".\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "n = 49 = sample size
\n" ); document.write( "Because n > 30 is the case, the xbar distribution of sample means will be approximately normally distributed even if the population distribution isn't symmetric.
\n" ); document.write( "For more information, check out the Central Limit Theorem.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "See this article for more detail
\n" ); document.write( "https://www.statology.org/central-limit-theorem/
\n" ); document.write( "Quote from the page:
\n" ); document.write( "
\"If the population distribution is skewed, generally a sample size of at least 30 is needed.\r\n" );
document.write( "If the population distribution is extremely skewed, then a sample size of 40 or higher may be necessary\"
\r
\n" ); document.write( "\n" ); document.write( "This article
\n" ); document.write( "https://www.whatissixsigma.net/confidence-intervals-why-n30-is-acceptable-as-population-representative/
\n" ); document.write( "talks about why the number 30 is so special when it comes to the n > 30 criteria.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Part(b)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "mu = 100 = population mean survival time
\n" ); document.write( "sigma = 10 = population standard deviation of the survival times (tells us how spread out the population is)
\n" ); document.write( "n = 49 = sample size
\n" ); document.write( "xbar = sample mean survival time
\n" ); document.write( "Each survival time is measured in days.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We wish to compute
\n" ); document.write( "P(xbar < 95)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's find the standard error
\n" ); document.write( "SE = Standard error
\n" ); document.write( "SE = sigma/sqrt(n)
\n" ); document.write( "SE = 10/sqrt(49)
\n" ); document.write( "SE = 1.428571 which is approximate\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now determine the z score when xbar = 95
\n" ); document.write( "z = (xbar - mu)/SE
\n" ); document.write( "z = (95 - 100)/1.428571
\n" ); document.write( "z = -3.50000105000031
\n" ); document.write( "z = -3.50
\n" ); document.write( "The task of finding P(xbar < 95) is equivalent to P(Z < -3.50)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "I'm rounding to two decimal places so I can then use a table such as this one
\n" ); document.write( "https://www.ztable.net/
\n" ); document.write( "A similar table can be found in the back of your stats textbook.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Use a table to find that:
\n" ); document.write( "P(Z < -3.50) = 0.00023
\n" ); document.write( "this leads back to
\n" ); document.write( "P(xbar < 95) = 0.00023\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "There is roughly a 0.023% chance of getting a sample mean survival time of less than 95 days.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Part(c)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "mu = 100 = population mean survival time
\n" ); document.write( "Add and subtract off 2 from the population mean
\n" ); document.write( "mu-2 = 100-2 = 98
\n" ); document.write( "mu+2 = 100+2 = 102\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The goal is to find a sample size n that will lead to this statement
\n" ); document.write( "P(98 < xbar < 102) = 0.95\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's find the standard error
\n" ); document.write( "SE = Standard error
\n" ); document.write( "SE = sigma/sqrt(n)
\n" ); document.write( "SE = 10/sqrt(n)
\n" ); document.write( "Right now we don't know what n is, so we leave the SE as shown above.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now determine the z score when xbar = 98
\n" ); document.write( "z = (xbar - mu)/SE
\n" ); document.write( "z = (98 - 100)/(10/sqrt(n))
\n" ); document.write( "z = -2/(10/sqrt(n))
\n" ); document.write( "z = -2*sqrt(n)/10
\n" ); document.write( "z = -sqrt(n)/5
\n" ); document.write( "Repeat for xbar = 102 and you should get: z = sqrt(n)/5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "P(98 < xbar < 102)
\n" ); document.write( "is the same as
\n" ); document.write( "P(-sqrt(n)/5 < Z < sqrt(n)/5)
\n" ); document.write( "which is in the format
\n" ); document.write( "P(-k < Z < k)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We need to find a value of k such that
\n" ); document.write( "P(-k < Z < k) = 0.95\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "You could use the table in reverse but it would take a lot of trial and error.
\n" ); document.write( "A better approach is to use a calculator such as this one
\n" ); document.write( "https://davidmlane.com/normal.html
\n" ); document.write( "or you could use a TI84 (or similar).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "You should find that k = 1.96 approximately
\n" ); document.write( "P(-1.96 < Z < 1.96) = 0.95 approximately\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We can now determine n.
\n" ); document.write( "k = 1.96
\n" ); document.write( "sqrt(n)/5 = 1.96
\n" ); document.write( "sqrt(n) = 5*1.96
\n" ); document.write( "sqrt(n) = 9.8
\n" ); document.write( "n = (9.8)^2
\n" ); document.write( "n = 96.04
\n" ); document.write( "n = 96\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If n = 96, then the SE is
\n" ); document.write( "SE = Standard error
\n" ); document.write( "SE = sigma/sqrt(n)
\n" ); document.write( "SE = 10/sqrt(96)
\n" ); document.write( "SE = 1.020621 which is approximate\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now determine the z score when xbar = 98
\n" ); document.write( "z = (xbar - mu)/SE
\n" ); document.write( "z = (98 - 100)/1.020621
\n" ); document.write( "z = -1.95959126845322
\n" ); document.write( "z = -1.96\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Repeat for xbar = 102
\n" ); document.write( "z = (xbar - mu)/SE
\n" ); document.write( "z = (102 - 100)/1.020621
\n" ); document.write( "z = 1.95959126845322
\n" ); document.write( "z = 1.96\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Then you should find that P(-1.96 < z < 1.96) = 0.95 approximately.
\n" ); document.write( "Use the table or a calculator.
\n" ); document.write( "This helps confirm we have the correct value of n.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Conclusion:
\n" ); document.write( "Having a sample size of n = 96 will lead to P(98 < xbar < 102) = 0.95 approximately.
\n" ); document.write( "Sampling 96 guinea pigs will have their sample mean survival time between 98 and 102 days with 95% probability.
\n" ); document.write( "
\n" ); document.write( "
\n" );