One-Sample t Test & Confidence Interval in R with Example | R Tutorial 4.1| MarinStatsLectures

preview_player
Показать описание


One sample t test in statistics is also know as single sample t test. The one sample t test and confidence interval are parametric methods appropriate for examining a single numeric variable.

■Table of Content:

0:00:11 when do we use one sample t-test and confidence interval?
0:00:35 how to conduct the one-sample t-test and the confidence interval in R
0:00:41 how to access the Help menu in R for the one sample t-test
0:01:05 how to test a null and one-sided alternative hypothesis for the mean with a one-sided confidence interval in R using
0:02:40 how to produce a two-sided hypothesis test and confidence interval in R
0:03:16 how to create a 99 percent confidence interval in R using the "conf" argument
0:03:46 how to see different attributes of an object in R using
0:03:59 how to extract specific attributes of an object in R

► ► Watch More:

Follow MarinStatsLectures

Our Team:
Content Creator: Mike Marin (B.Sc., MSc.) Senior Instructor at UBC.
Producer and Creative Manager: Ladan Hamadani (B.Sc., BA., MPH)

These videos are created by #marinstatslectures to support some statistics courses at the University of British Columbia (UBC) (#IntroductoryStatistics and #RVideoTutorials ), although we make all videos available to the everyone everywhere for free.

Thanks for watching! Have fun and remember that statistics is almost as beautiful as a unicorn!

#statistics #rprogramming
Рекомендации по теме
Комментарии
Автор

this was so helpful i have a midterm for this tomorrow and you were the only straight-forward resource on the internet that explained how to change the confidence interval in t-tests

noacaspi
Автор

I started my PhD two months ago. I didn't "play" with statistics for nearly 12 years. Totally lost, I am (still) finding my way through your videos. Thank you so much for sharing the knowledge!

areslusitanii
Автор

I will recommend your tutorials to all people that wanna begin their adventure with R :)

motylanoga
Автор

in the example, the alternative hypothesis is (mu>8), If I am not mistaken then the code has to be corrected as alt="greater" instead of "less
"

pasinduranasinghe
Автор

Mike, thanks for making these videos. They are so helpful to a novice like myself!

lB
Автор

why are these videos so good? thank you so much!

soha
Автор

If you specified Ho as mu<8 then why did you set 'alternative' parameter in t.test to 'less'?  Wouldn't alternative be mu=>8 ?

shairozsohail
Автор

Thank you very much for the good content.

joseluisbeltramone
Автор

HI Marin thanks for all these videos these are very helpful, i would like to do a thorough practice for R. I would like to know if you could put and recommendation material for R and any book?

Thanks

shubhamgupta
Автор

can we calculate varience from p value and xi2 and no of dof ?

nilakshidas
Автор

Thank you for the videos, they are great.

Can you help me how to do t-test in R if sample mean and sample variance is known but not the individual samples itself.

In you example, sample mean and variance are calculated from the values in the table. However, I am required to do a test when data is not known, only the mean & variance.

ugyennorbu
Автор

Hello ! Can I use the same command for hypothesis test : mean <= 20 vs mean >20???

wissalms
Автор

May I know if R can also perform SQL by itself?

kengking
Автор

Your videos are so helpful. Thank you.How would you perform a test where you test if the variance of one sample is  greater than a specified number?

tiisetsomashele
Автор

Hi Mike, what i learnt for one sample t test, as null hypothesis we always took mu =110( 110 as a example) and alternative is mu> 110....
1... My question is, is R always consider the Ho and H1 as you took??
2... I tried to solve the question which i did in my school with R..But the answers are totally different??
Data( 156, 123, 92, 56, 73, 101, 101, 174, 100, 125, 64, 165, 110, 83, 109, 182), mu=110, Conf=5%
3...Do we use t distribution for small sample size??? like n<30 ???

nalichandi
Автор

how do you know you know to define mu as less than 8? do you just make it up? Like, How did you know to use that specific number

emmanuel_dean
Автор

Hi, this is probably a silly question, but what exactly is "mu". I know it is a null hypothesis, but a how is it significant? Do I need a value of "mu" to make my t-test mean something? Cause "R" will perform the test either way.
For one sample I got a t-test value of "0.2" and for the other "0.6". Something tells me that "0.2" one is more accurate but i am not sure.
Sorry, I am new to this type of data/error analysis but I want to learn it as I study physics (second year).
Thanks!

phyzicsall
Автор

Do you also have One-Sample Z Test in R radio available? Thank you!

bettys
Автор

Hi, how can I actually change my level of significance using R ?

andredevera
Автор

What packages do I need to have downloaded to do this? I just downloaded R, and tried and even the box plot step couldn't get done. I assume I need a suite of packages. Frustrating when I can even get past the first step.

ryanthoni