Doubts about t.test results










-1














I have a vector with 385 numbers ranging from 2000 to 5200 and I am asked to test whether the mean is greater than 5500. I tried this:



t.test(tabla2$`Precio max`, y = NULL, alternative="g", mu=5500,paired = FALSE, conf.level=0.95)


and the result is:



One Sample t-test

data: tabla2$`Precio max`
t = -75.692, df = 384, p-value = 1
alternative hypothesis: true mean is greater than 5500
95 percent confidence interval:
3471.847 Inf
sample estimates:
mean of x
3515.086


I am not sure if I am doing this right or my understanding of the Hypothesis test is wrong. As far as I know, the p-value is greater than the significance level (0.05) therefore I should accept the Null Hypothesis, but the Null hypothesis states that the mean is equal to 5500 which cant be since the list never reaches that value. Can someone help me understand this?










share|improve this question























  • If your numbers range from 2000 to 5200 there is no point in testing whether the mean is great than 5500. It obviously isn't since your highest value is lower than 5500. Please reformulate this question.
    – Nakx
    Nov 11 '18 at 21:27











  • @Nakx thats my question, it's an assignment in my statistics class, the test should return with the Null Hypothesis being wrong, but it doesn't, why?
    – David Contreras
    Nov 11 '18 at 21:31






  • 1




    The null is not rejected and it shouldn't. I don't understand why do you expect to see a test with alternative true mean is greater than 5500 reject the null given the range of your data.
    – Rui Barradas
    Nov 11 '18 at 22:06






  • 1




    1) the Null is accepted No, never. What you can say is that the Null is not rejected. 2) You are testing H0: mu = 5500 versus H1: mu > 5500. Now, mu is not > 5500.
    – Rui Barradas
    Nov 11 '18 at 22:38






  • 1




    from what i've read so far, this question is about statistics (homeworks to be precise). Not programming.
    – LoneWanderer
    Nov 12 '18 at 0:56















-1














I have a vector with 385 numbers ranging from 2000 to 5200 and I am asked to test whether the mean is greater than 5500. I tried this:



t.test(tabla2$`Precio max`, y = NULL, alternative="g", mu=5500,paired = FALSE, conf.level=0.95)


and the result is:



One Sample t-test

data: tabla2$`Precio max`
t = -75.692, df = 384, p-value = 1
alternative hypothesis: true mean is greater than 5500
95 percent confidence interval:
3471.847 Inf
sample estimates:
mean of x
3515.086


I am not sure if I am doing this right or my understanding of the Hypothesis test is wrong. As far as I know, the p-value is greater than the significance level (0.05) therefore I should accept the Null Hypothesis, but the Null hypothesis states that the mean is equal to 5500 which cant be since the list never reaches that value. Can someone help me understand this?










share|improve this question























  • If your numbers range from 2000 to 5200 there is no point in testing whether the mean is great than 5500. It obviously isn't since your highest value is lower than 5500. Please reformulate this question.
    – Nakx
    Nov 11 '18 at 21:27











  • @Nakx thats my question, it's an assignment in my statistics class, the test should return with the Null Hypothesis being wrong, but it doesn't, why?
    – David Contreras
    Nov 11 '18 at 21:31






  • 1




    The null is not rejected and it shouldn't. I don't understand why do you expect to see a test with alternative true mean is greater than 5500 reject the null given the range of your data.
    – Rui Barradas
    Nov 11 '18 at 22:06






  • 1




    1) the Null is accepted No, never. What you can say is that the Null is not rejected. 2) You are testing H0: mu = 5500 versus H1: mu > 5500. Now, mu is not > 5500.
    – Rui Barradas
    Nov 11 '18 at 22:38






  • 1




    from what i've read so far, this question is about statistics (homeworks to be precise). Not programming.
    – LoneWanderer
    Nov 12 '18 at 0:56













-1












-1








-1


1





I have a vector with 385 numbers ranging from 2000 to 5200 and I am asked to test whether the mean is greater than 5500. I tried this:



t.test(tabla2$`Precio max`, y = NULL, alternative="g", mu=5500,paired = FALSE, conf.level=0.95)


and the result is:



One Sample t-test

data: tabla2$`Precio max`
t = -75.692, df = 384, p-value = 1
alternative hypothesis: true mean is greater than 5500
95 percent confidence interval:
3471.847 Inf
sample estimates:
mean of x
3515.086


I am not sure if I am doing this right or my understanding of the Hypothesis test is wrong. As far as I know, the p-value is greater than the significance level (0.05) therefore I should accept the Null Hypothesis, but the Null hypothesis states that the mean is equal to 5500 which cant be since the list never reaches that value. Can someone help me understand this?










share|improve this question















I have a vector with 385 numbers ranging from 2000 to 5200 and I am asked to test whether the mean is greater than 5500. I tried this:



t.test(tabla2$`Precio max`, y = NULL, alternative="g", mu=5500,paired = FALSE, conf.level=0.95)


and the result is:



One Sample t-test

data: tabla2$`Precio max`
t = -75.692, df = 384, p-value = 1
alternative hypothesis: true mean is greater than 5500
95 percent confidence interval:
3471.847 Inf
sample estimates:
mean of x
3515.086


I am not sure if I am doing this right or my understanding of the Hypothesis test is wrong. As far as I know, the p-value is greater than the significance level (0.05) therefore I should accept the Null Hypothesis, but the Null hypothesis states that the mean is equal to 5500 which cant be since the list never reaches that value. Can someone help me understand this?







r t-test hypothesis-test






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 11 '18 at 21:53









Nakx

12713




12713










asked Nov 11 '18 at 21:18









David Contreras

61




61











  • If your numbers range from 2000 to 5200 there is no point in testing whether the mean is great than 5500. It obviously isn't since your highest value is lower than 5500. Please reformulate this question.
    – Nakx
    Nov 11 '18 at 21:27











  • @Nakx thats my question, it's an assignment in my statistics class, the test should return with the Null Hypothesis being wrong, but it doesn't, why?
    – David Contreras
    Nov 11 '18 at 21:31






  • 1




    The null is not rejected and it shouldn't. I don't understand why do you expect to see a test with alternative true mean is greater than 5500 reject the null given the range of your data.
    – Rui Barradas
    Nov 11 '18 at 22:06






  • 1




    1) the Null is accepted No, never. What you can say is that the Null is not rejected. 2) You are testing H0: mu = 5500 versus H1: mu > 5500. Now, mu is not > 5500.
    – Rui Barradas
    Nov 11 '18 at 22:38






  • 1




    from what i've read so far, this question is about statistics (homeworks to be precise). Not programming.
    – LoneWanderer
    Nov 12 '18 at 0:56
















  • If your numbers range from 2000 to 5200 there is no point in testing whether the mean is great than 5500. It obviously isn't since your highest value is lower than 5500. Please reformulate this question.
    – Nakx
    Nov 11 '18 at 21:27











  • @Nakx thats my question, it's an assignment in my statistics class, the test should return with the Null Hypothesis being wrong, but it doesn't, why?
    – David Contreras
    Nov 11 '18 at 21:31






  • 1




    The null is not rejected and it shouldn't. I don't understand why do you expect to see a test with alternative true mean is greater than 5500 reject the null given the range of your data.
    – Rui Barradas
    Nov 11 '18 at 22:06






  • 1




    1) the Null is accepted No, never. What you can say is that the Null is not rejected. 2) You are testing H0: mu = 5500 versus H1: mu > 5500. Now, mu is not > 5500.
    – Rui Barradas
    Nov 11 '18 at 22:38






  • 1




    from what i've read so far, this question is about statistics (homeworks to be precise). Not programming.
    – LoneWanderer
    Nov 12 '18 at 0:56















If your numbers range from 2000 to 5200 there is no point in testing whether the mean is great than 5500. It obviously isn't since your highest value is lower than 5500. Please reformulate this question.
– Nakx
Nov 11 '18 at 21:27





If your numbers range from 2000 to 5200 there is no point in testing whether the mean is great than 5500. It obviously isn't since your highest value is lower than 5500. Please reformulate this question.
– Nakx
Nov 11 '18 at 21:27













@Nakx thats my question, it's an assignment in my statistics class, the test should return with the Null Hypothesis being wrong, but it doesn't, why?
– David Contreras
Nov 11 '18 at 21:31




@Nakx thats my question, it's an assignment in my statistics class, the test should return with the Null Hypothesis being wrong, but it doesn't, why?
– David Contreras
Nov 11 '18 at 21:31




1




1




The null is not rejected and it shouldn't. I don't understand why do you expect to see a test with alternative true mean is greater than 5500 reject the null given the range of your data.
– Rui Barradas
Nov 11 '18 at 22:06




The null is not rejected and it shouldn't. I don't understand why do you expect to see a test with alternative true mean is greater than 5500 reject the null given the range of your data.
– Rui Barradas
Nov 11 '18 at 22:06




1




1




1) the Null is accepted No, never. What you can say is that the Null is not rejected. 2) You are testing H0: mu = 5500 versus H1: mu > 5500. Now, mu is not > 5500.
– Rui Barradas
Nov 11 '18 at 22:38




1) the Null is accepted No, never. What you can say is that the Null is not rejected. 2) You are testing H0: mu = 5500 versus H1: mu > 5500. Now, mu is not > 5500.
– Rui Barradas
Nov 11 '18 at 22:38




1




1




from what i've read so far, this question is about statistics (homeworks to be precise). Not programming.
– LoneWanderer
Nov 12 '18 at 0:56




from what i've read so far, this question is about statistics (homeworks to be precise). Not programming.
– LoneWanderer
Nov 12 '18 at 0:56












1 Answer
1






active

oldest

votes


















0














I understood my problem, I was taught that the Null Hypothesis in this scenario was that
mu = 5500, which made no sense for the results. Reality is that my Null Hypothesis was H0: mu <= 5500 and alternative Hypothesis H1: mu > 5500. Since p-value is greater than alpha = 0.05, this means that there isn't enough proof that H0 is false, I can't conclude anything else besides this which holds true in this scenario.






share|improve this answer




















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53253337%2fdoubts-about-t-test-results%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I understood my problem, I was taught that the Null Hypothesis in this scenario was that
    mu = 5500, which made no sense for the results. Reality is that my Null Hypothesis was H0: mu <= 5500 and alternative Hypothesis H1: mu > 5500. Since p-value is greater than alpha = 0.05, this means that there isn't enough proof that H0 is false, I can't conclude anything else besides this which holds true in this scenario.






    share|improve this answer

























      0














      I understood my problem, I was taught that the Null Hypothesis in this scenario was that
      mu = 5500, which made no sense for the results. Reality is that my Null Hypothesis was H0: mu <= 5500 and alternative Hypothesis H1: mu > 5500. Since p-value is greater than alpha = 0.05, this means that there isn't enough proof that H0 is false, I can't conclude anything else besides this which holds true in this scenario.






      share|improve this answer























        0












        0








        0






        I understood my problem, I was taught that the Null Hypothesis in this scenario was that
        mu = 5500, which made no sense for the results. Reality is that my Null Hypothesis was H0: mu <= 5500 and alternative Hypothesis H1: mu > 5500. Since p-value is greater than alpha = 0.05, this means that there isn't enough proof that H0 is false, I can't conclude anything else besides this which holds true in this scenario.






        share|improve this answer












        I understood my problem, I was taught that the Null Hypothesis in this scenario was that
        mu = 5500, which made no sense for the results. Reality is that my Null Hypothesis was H0: mu <= 5500 and alternative Hypothesis H1: mu > 5500. Since p-value is greater than alpha = 0.05, this means that there isn't enough proof that H0 is false, I can't conclude anything else besides this which holds true in this scenario.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 '18 at 1:18









        David Contreras

        61




        61



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53253337%2fdoubts-about-t-test-results%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Use pre created SQLite database for Android project in kotlin

            Darth Vader #20

            Ondo