# how to apply correction for ties in Conover squared Ranks Test

I am writing code for Conover Squared rank test in Python but I am unable to find right formula to make corrections for ties in order to calculate the p value. I understand the average of the tied ranks must be used, but what I don't know is how is the formula for p-value calculate is modified.

I have found the most detailed discussion for handling ties in Conover's squared rank in following sources: Practical Nonparametric Statistics by Conover page 302, https://ccrg.rit.edu/~whelan/courses/2018_3fa_STAT_345/notes05.pdf\

Yet I unable to find clear approach to manage tied ranks, such as available for Mann-Whitney U test on its Wiki page.

I have inserted the screen shots of the key parts of the formula On the same note, how important it is to correct for ties in Conover test.

• The details all seem to be on p26-27 – Glen_b Nov 26 '19 at 0:07
• Hi Glen, I need to calculate the Z score in order to calculate the p-value. This is present in the image I shared from the book by Conover, but same is missing in p26-27. Perhaps T1 on page 27 is what I need. Is T1 the Z-score after adjusting for ties? – Vineet Nov 26 '19 at 14:56
{"ft_lang_label":"__label__en","ft_lang_prob":0.9061371,"math_prob":0.56887925,"size":785,"snap":"2021-04-2021-17","text_gpt3_token_len":182,"char_repetition_ratio":0.117797695,"word_repetition_ratio":0.0,"special_character_ratio":0.21910828,"punctuation_ratio":0.08387097,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9533531,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-26T08:44:49Z\",\"WARC-Record-ID\":\"<urn:uuid:b7a0a443-0f85-4a5a-bd7a-d48d33b0b78e>\",\"Content-Length\":\"140270\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5fdc79ec-181d-426b-9178-c9669c001fd2>\",\"WARC-Concurrent-To\":\"<urn:uuid:db9a94d4-cc73-4195-abdd-90c1b90a1789>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://stats.stackexchange.com/questions/437856/how-to-apply-correction-for-ties-in-conover-squared-ranks-test\",\"WARC-Payload-Digest\":\"sha1:BUN2PJMPFOTUIYS23QKWQLRAXPYO427X\",\"WARC-Block-Digest\":\"sha1:AUQZL3JKLORXXSKSN62IBF6ZDXXM52QF\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610704799711.94_warc_CC-MAIN-20210126073722-20210126103722-00302.warc.gz\"}"}