How to do paired t test with mean and sd? - MATLAB Answers

文章推薦指數: 80 %
投票人數:10人

I would like to do paired t-test with mean and standard deviation and the number of sampling. Theme. Skiptocontent MATLABAnswers ToggleSubNavigation SearchAnswers ClearFilters Answers Support MathWorks SearchSupport ClearFilters Support Answers MathWorks SearchMathWorks.com ClearFilters MathWorks Answers Support CloseMobileSearch CloseMobileSearch MATLABCentral CommunityHome MATLABAnswers FileExchange Cody Blogs Communities TreasureHunt Highlights Contests Advisors VirtualBadges About HomeAskAnswerBrowseMoreMATLABFAQsContributorsRecentActivityFlaggedContentManageSpamHelp MATLABCentral CommunityHome MATLABAnswers FileExchange Cody Blogs Communities TreasureHunt Highlights Contests Advisors VirtualBadges About HomeAskAnswerBrowseMoreMATLABFAQsContributorsRecentActivityFlaggedContentManageSpamHelp Trialsoftware Youarenowfollowingthisquestion Youwillseeupdatesinyourfollowedcontentfeed. Youmayreceiveemails,dependingonyourcommunicationpreferences. Howtodopairedttestwithmeanandsd? Follow 78views(last30days) Showoldercomments Rita on29Aug2016 Vote1 Link × Directlinktothisquestion https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd Cancel CopytoClipboard  ⋮  Vote1 Link × Directlinktothisquestion https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd Cancel CopytoClipboard Commented:AviramShemen on15Aug2020 AcceptedAnswer:StarStrider Iwouldliketodopairedt-testwithmeanandstandarddeviationandthenumberofsampling.forA:mean=8.37sd=0.53B:mean=8.18sd=0.16numberofsamplesforbothA=B=44Thanks.   0Comments ShowHide&nbsp-1oldercomments Signintocomment. Signintoanswerthisquestion. Ihavethesamequestion(1) Ihavethesamequestion(1) AcceptedAnswer StarStrider on30Aug2016 Vote2 Link × Directlinktothisanswer https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#answer_233149 Cancel CopytoClipboard  ⋮  Vote2 Link × Directlinktothisanswer https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#answer_233149 Cancel CopytoClipboard Helpful(2) Helpful(2) Todoitwithonlythemeansandstandarddeviations,youwouldhavetowriteyourownfunctionstocalculatetheone-andtwo-tailedt-probabilities,butfortunatelywithMATLABthatisnotdifficult:Amean=8.37;Asd=0.53;Bmean=8.18;Bsd=0.16;N=44;v=2*N-2;tval=(Amean-Bmean)/sqrt((Asd^2+Bsd^2)/N);%CalculateT-Statistictdist2T=@(t,v)(1-betainc(v/(v+t^2),v/2,0.5));%2-tailedt-distributiontdist1T=@(t,v)1-(1-tdist2T(t,v))/2;%1-tailedt-distributiontprob=1-[tdist2T(tval,v)tdist1T(tval,v)]tprob=0.02530.01265Soyourgroupsaresignificantlydifferentatalpha=0.05.Thefunctionsarecorrect,butyoumaywanttocheckmy‘v’and‘tval’calculationstobecertainittheyarecorrecttoyourexperimentaldesign.Iftheyarenot,changethemappropriately.   5Comments ShowHide&nbsp4oldercomments Rita on30Aug2016 × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_387906 Cancel CopytoClipboard  ⋮  Link × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_387906 Cancel CopytoClipboard Youareamazing!Thanks StarStrider on30Aug2016 × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_387907 Cancel CopytoClipboard  ⋮  Link × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_387907 Cancel CopytoClipboard Thankyou!Mypleasure! AviramShemen on9Aug2020 × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_966181 Cancel CopytoClipboard  ⋮  Link × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_966181 Cancel CopytoClipboard Edited:AviramShemen on9Aug2020 Hi,Isthereawaytodothepairedt-testifIdon'thavethesamplessizes?(I'mtryingtocomparetworesultsofaCoxregressionmodelusingcoxphfit.SoIhavetwomeans-exp(b1)andexp(b2)andtwoSE-se1andse2)Thanksinadvance JeffMiller on10Aug2020 × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_966208 Cancel CopytoClipboard  ⋮  Link × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_966208 Cancel CopytoClipboard Thisoldanswerisnotcorrectforapairedt-test.InthatcasethetvalcomputationdependsonthestandarddeviationofthedifferencescoresA-B.YoucancomputetherequiredvaluefromAsdandBsdifyoualsohavethecorrelationofAwithB. AviramShemen on15Aug2020 × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_974052 Cancel CopytoClipboard  ⋮  Link × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_974052 Cancel CopytoClipboard Thankyou! Signintocomment. MoreAnswers(1) Thorsten on30Aug2016 Vote0 Link × Directlinktothisanswer https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#answer_233139 Cancel CopytoClipboard  ⋮  Vote0 Link × Directlinktothisanswer https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#answer_233139 Cancel CopytoClipboard Edited:Thorsten on30Aug2016 Helpful(0) Helpful(0) IfyouhavetheStatisticsToolbox,youcanusettest(A-B)   2Comments ShowHide&nbsp1oldercomment Rita on30Aug2016 × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_387881 Cancel CopytoClipboard  ⋮  Link × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_387881 Cancel CopytoClipboard Thanksalot.Ihavethistoolboxbutcanttestfunctionworkwithmeanandsdwithoutsamples?Thanksagain Thorsten on30Aug2016 × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_387883 Cancel CopytoClipboard  ⋮  Link × Directlinktothiscomment https://www.mathworks.com/matlabcentral/answers/301296-how-to-do-paired-t-test-with-mean-and-sd#comment_387883 Cancel CopytoClipboard No,youneedthesamples. Signintocomment. Signintoanswerthisquestion. SeeAlso Categories AI,DataScience,andStatistics StatisticsandMachineLearningToolbox IndustrialStatistics DesignofExperiments(DOE) Tags ttestmeanstandarddeviation CommunityTreasureHunt FindthetreasuresinMATLABCentralanddiscoverhowthecommunitycanhelpyou! StartHunting! AnErrorOccurred Unabletocompletetheactionbecauseofchangesmadetothepage.Reloadthepagetoseeitsupdatedstate. Close × SelectaWeb Site Chooseawebsitetogettranslatedcontentwhereavailableandseelocaleventsand offers.Basedon yourlocation,werecommendthatyouselect:. Switzerland(English) Switzerland(Deutsch) Switzerland(Français) 中国(简体中文) 中国(English) Youcanalsoselectawebsitefromthefollowinglist: HowtoGetBestSitePerformance SelecttheChinasite(inChineseorEnglish)forbestsiteperformance.OtherMathWorkscountry sitesarenotoptimizedforvisitsfromyourlocation. Americas AméricaLatina(Español) Canada(English) UnitedStates(English) Europe Belgium(English) Denmark(English) Deutschland(Deutsch) España(Español) Finland(English) France(Français) Ireland(English) Italia(Italiano) Luxembourg(English) Netherlands(English) Norway(English) Österreich(Deutsch) Portugal(English) Sweden(English) Switzerland Deutsch English Français UnitedKingdom (English) AsiaPacific Australia(English) India(English) NewZealand(English) 中国 简体中文Chinese English 日本Japanese(日本語) 한국Korean(한국어) Contactyourlocaloffice Trialsoftware



請為這篇文章評分?