Skip to main content

Stretch the dynamic range of the given 8-bit grayscale image using MATL...

How do I apply the T-Test correctly?

 Hi everyone,

 
I am not sure if I apply the T-Test correctly to my data. In the description it says "H = TTEST(X) performs a t-test of the hypothesis that the data in the vector X come from a distribution with mean zero, and returns the result of the test in H." That is my code:
 
 
load stockreturns
x = stocks(:,3);
x1=x-mean(x);
x2=x+10;
[h,p,ci,stats] = ttest(x,0,'Alpha',0.01);
[h1,p1,ci1,stats1] = ttest(x1,0,'Alpha',0.01);
[h2,p2,ci2,stats2] = ttest(x2,0,'Alpha',0.01);
The way I understand it, the T-Test checks if your data is t-distributed with a mean of 0. If I know that my data has a mean of e.g. 10, the T-Test gives really bad results, because the mean is not 0. If I still want to find out if there is a t-distribution, can I substract 10 from my data and apply the T-Test without making any serious error?
]
If I substract the mean of my data (line 3) the P value becomes 1 in every case. Why is that?
 
I assume that when I substract the mean, the criterion of 0 mean is met. But that doesn't necessarily mean that I have a T-distribution, right? So if I substract the mean of my values and p becomes 1, I have a T-distribution?
 
 
I'm sorry for my confusing words. I hope you understand what I mean.

NOTE:-


Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

The ttest function is correct. Remember to look at the p-value — the second output — to get the calculated probability. The first output is a flag indicating that the null hypothesis that the mean is equal to zero is accepted (0) or rejected (1).
 
The ttest function returns the probability (the second output) that the mean of the data is zero, so when you subtract the mean (as you did in ‘x1’), that probability is exactly 1 (within floating-point precision), because it is as certain as it is possible to express that the mean is not different from zero, and the null hypothesis is accepted.
 
Note that for ‘x2’, ‘h2’ is 1 and the p-value is vanishingly small, indicating that there is an infinitesimal probability (on the order of 1/10^79) that the mean of your data is equal to zero, and the null hypothesis is rejected.
 
‘But that doesn't necessarily mean that I have a T-distribution, right?’

Comments

Popular posts from this blog

https://journals.worldnomads.com/scholarships/story/70330/Worldwide/Dat-shares-his-photos-from-Bhutan https://www.blogger.com/comment.g?blogID=441349916452722960&postID=9118208214656837886&page=2&token=1554200958385 https://todaysinspiration.blogspot.com/2016/08/lp-have-look-at-this-this-is-from.html?showComment=1554201056566#c578424769512920148 https://behaviorpsych.blogspot.com/p/goal-bank.html?showComment=1554201200695 https://billlumaye.blogspot.com/2012/10/tagg-romney-drops-by-bill-show.html?showComment=1550657710334#c7928008051819098612 http://blog.phdays.com/2014/07/review-of-waf-bypass-tasks.html?showComment=1554201301305#c6351671948289526101 http://www.readyshelby.org/blog/gifts-of-preparedness/#comment_form http://www.hanabilkova.svet-stranek.cz/nakup/ http://www.23hq.com/shailendrasingh/photo/21681053 http://blogs.stlawu.edu/jbpcultureandmedia/2013/11/18/blog-entry-10-guns-as-free-speech/comment-page-1443/#comment-198345 https://journals.worldnomads.com

USING MACHINE LEARNING CLASSIFICATION ALGORITHMS FOR DETECTING SPAM AND NON-SPAM EMAILS

    ABSTRACT We know the increasing volume of unwanted volume of emails as spam. As per statistical analysis 40% of all messages are spam which about 15.4 billion email for every day and that cost web clients about $355 million every year. Spammers to use a few dubious techniques to defeat the filtering strategies like utilizing irregular sender addresses or potentially add irregular characters to the start or the finish of the message subject line. A particular calculation is at that point used to take in the order rules from these email messages. Machine learning has been contemplated and there are loads of calculations can be used in email filtering. To classify these mails as spam and non-spam mails implementation of machine learning algorithm  such as KNN, SVM, Bayesian classification  and ANN  to develop better filtering tool.   Contents ABSTRACT 2 1. INTRODUCTION 4 1.1 Objective : 5 2. Literature Review 5 2.1. Existing Machine learning technique. 6 2.2 Existing

Why are Fourier series important? Are there any real life applications of Fourier series?

A  Fourier series  is a way of representing a periodic function as a (possibly infinite) sum of sine and cosine functions. It is analogous to a Taylor series, which represents functions as possibly infinite sums of monomial terms. A sawtooth wave represented by a successively larger sum of trigonometric terms. For functions that are not periodic, the Fourier series is replaced by the Fourier transform. For functions of two variables that are periodic in both variables, the trigonometric basis in the Fourier series is replaced by the spherical harmonics. The Fourier series, as well as its generalizations, are essential throughout the physical sciences since the trigonometric functions are eigenfunctions of the Laplacian, which appears in many physical equations. Real-life applications: Signal Processing . It may be the best application of Fourier analysis. Approximation Theory . We use Fourier series to write a function as a trigonometric polynomial. Control Theory . The F