# Should I use the t-test or the Wilcoxon rank sum test given these qqplots and Shapiro-Wilk stats [duplicate]

I have 4 groups and I want to test if the pairwise difference in means are significantly different. There are 6 pairwise differences. The QQnorm plots of the 4 groups look like this: The Shapiro-Wilk p value looks like this:

> round(shapiro.test(G)$p.value,16)  4.784327e-06 > round(shapiro.test(B)$p.value,16)
 1.421101e-10
> round(shapiro.test(D)$p.value,16)  2.436e-13 > round(shapiro.test(R)$p.value,16) #HO is normal
 0.004189489


Given the qqplots and p-values I think the data is not normal so I was not going to use a t-test to test the pairwise difference in means. Instead I was going to use a Wilcoxon rank sum test?

Is this the correct approach?

JUST FYI when I run the t-test I get these p-values

> round(t.test(B,G)$p.value,6)  0.060317 > round(t.test(B,R)$p.value,6)
 0.005074
> round(t.test(B,D)$p.value,6)  0.266044 > round(t.test(G,R)$p.value,6)
 0.077648
> round(t.test(G,D)$p.value,6)  0.422073 > round(t.test(R,D)$p.value,6)
 0.038625


With wilcox.test I get these p-values

> wilcox.test(B, G, mu=0)$p.value  3.363941e-05 > wilcox.test(B, R,mu=0)$p.value
 1.010833e-06
> wilcox.test(B, D,mu=0)$p.value  0.02616785 > wilcox.test(G,R ,mu=0)$p.value
 0.06497015
> wilcox.test(G, D,mu=0)$p.value  0.05084219 > wilcox.test(R, D,mu=0)$p.value
 0.001667653
>


So should I use the t-test or the Wilcoxon rank sum test?

Note this articel here:
{"ft_lang_label":"__label__en","ft_lang_prob":0.7361899,"math_prob":0.9119753,"size":1658,"snap":"2023-40-2023-50","text_gpt3_token_len":598,"char_repetition_ratio":0.19770254,"word_repetition_ratio":0.008810572,"special_character_ratio":0.38781664,"punctuation_ratio":0.20620842,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99942684,"pos_list":[0,1,2],"im_url_duplicate_count":[null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-07T05:14:55Z\",\"WARC-Record-ID\":\"<urn:uuid:b712b08b-b4d6-470f-9225-cfb815f40f7c>\",\"Content-Length\":\"150313\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:640b883c-d1d1-45c8-959a-2a93f983107f>\",\"WARC-Concurrent-To\":\"<urn:uuid:76db4983-2dc8-446f-8a26-7d2b8b09218a>\",\"WARC-IP-Address\":\"104.18.43.226\",\"WARC-Target-URI\":\"https://stats.stackexchange.com/questions/144160/should-i-use-the-t-test-or-the-wilcoxon-rank-sum-test-given-these-qqplots-and-sh\",\"WARC-Payload-Digest\":\"sha1:RVIGVLHT5PXV3F2F2CFMAOSSEOX6H2HA\",\"WARC-Block-Digest\":\"sha1:4O5FWUGWZ4BRKV2H5ODRBMQKPLD47RUJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100632.0_warc_CC-MAIN-20231207022257-20231207052257-00799.warc.gz\"}"}