I have been experimenting with TTest and I am observing puzzling behavior.
As the attached workbook shows, the SignificanceLevel option does not seem to change the p value for the sample dataset used in Lesson 27.
The attached worksheet also shows experiments where the p value for a TTest with normally distributed data does not seem to decrease as the standard deviation of normally distributed data decreases.
Perhaps I am making a mistake in how I am using TTest command.
I am attempting to weight temperature data to use in creating a Normal Distribution using the EstimateDistribution function - see attached notebook. However, it seems that all I am getting is a bunch of messages with the processing failing to create a Normal Distribution. Please tell me what I am doing incorrectly.
In implement your suggestion, I did not see much change - see attached notebook. However, there is a good possibility that I misunderstood your suggestion and implemented it incorrectly.
As a little background, I ran exactly the same calculations without weighting the data, and all the probability calculations, including the NormalDistribution[] function, looked reasonable. However, I wanted to run the same calculations with weighted data to take into account that the current temperatures may be a better approximation due to climate change, and therefore assign more weight to the current temperatures and less weight to the temperatures 20 years ago.
Yes, with weighting function PDF[NormalDistribution[], #] & and data values around 80, the weights are values of the probability density function of the standard normal distribution around 80 standard deviations above the mean, so the weights are smaller (around 10^-1400) than the smallest possible machine number (which is about 10^-323). NormalDistribution[] refers to the standard normal distribution, which is the normal distribution with a mean of zero and a standard deviation of 1, so NormalDistribution is equivalent to NormalDistribution[0,1]. I don’t know the limitations of the EstimatedDistribution function, but the error messages suggest that it is not designed to deal with weights that are that small. I’m not sure if that is what was intended here, but the following worked when I tried it:
The significance level in a hypothesis test has no effect on the p-value. The significance level is the threshold for interpreting the p-value (deciding whether the p-value indicates a statistically significant departure from the null hypothesis). The SignificanceLevel option in the TTest function has an effect only if the interpretation is included in the output, as in:
Out[702]= {0.0474207,
The null hypothesis that the mean of the population is equal to 1 is not rejected at the 1 percent level based on the T test.}
Unlike the sample that was used in the video, the mean of the sample generated by data1 = RandomVariate[NormalDistribution[1000, 0.254], 2500] is very close to 1000, and the sample size is 100 times bigger than the sample used in the video. Of those two differences, the most important difference here is that the sample mean is very close to 1000, which is the population mean under the null hypothesis. TTest[data1, 1000] will return a large p-value because the mean of the sample is (by construction) very close to 1000. Replacing 0.254 by 0.0254 or 0.00254 makes the population standard deviation smaller, but since the mean of the sample is still 1000, the p-values will be big.
It is easier to see the effect of population standard deviation on the p-value by using samples from populations for which the mean is not equal the the mean under the null hypothesis, such as:
Thanks again. Some additional experiments with data where the mean moves away from 1000 illustrate the interaction between PValue, the significance level, and the conclusion of the TTest with respect to rejection of the null hypothesis.
Hi @Mitchell Sandlin, the exam has not yet been added to the course framework. We will send an email notification to the Study Group participants when this is available next week.
Quiz 15,
Problem 4,
What is the expected value of the mean from a sampling distribution of sample size n, drawn from a normally distributed population with standard deviation σ? Goin g through the possible answers provided, the answer that is shown as correct is dependent on the sample problem in the video for nb 44. The central limit theorem governs this situation in this problem and it says the expected value of the mean from a sampling distribution equals the mean (µ) of the population. what you offer is the numerical value of the µ from the specific situation in the sampling problem.
While going through the quizes, it seems that there is no correct option (answer) for Quiz 6, Question 10. I tried with Mathematica and also an specialized statistics software and none of the option correspond to the correct answer for the data supplied.
I’ve just checked with the quiz author, and we are able to get the correct answer as listed in the choices. While we’re not sure of what answer you calculated, they suggest that it’s possible to get the reverse of the correct answer if you swap the two provided samples for one another in the argument of the relevant function.
Please let us know whether this helps, and feel free to provide more information if it doesn’t.
Thanks for bringing this to our attention. We’re rolling out a fix; you may have to clear your cookies/cache to see it, but the answer will be updated.
I suspect that there are two errors in the Quiz 6.
Problem 8: There is no correct answer. Multiple choice D) can be an answer but only when it is modified as “Approximately normal and with a standard error of 80g.”
Problem 10: There is no answer. Even if we change the order of the two samples in MeanDifferenceCI, still there is no correct multiple choice.
Hi Hee-Young—thanks for your comments and notebook.
Re: Question 10, I’ve looked at your provided notebook, and the answer you calculate is listed among the choice I see on the deployed quiz (granted, rounded to the nearest .01, but we’ll call that good enough!). Do you see something different from the following for your answer choices?
I received an email today reminding me to complete the quizzes and exam for the statistics DSG. However, requesting an exam does not work. There is just an endless loading symbol.
Information for AI agents: this site’s guide is at /llms.txt. Search results are available as JSON from /search.json?q=…; the /search page returns no results to automated clients.