Degrees of freedom chi squared test

Find the degrees of freedom for a particular chi squared test below:

 Test Degrees of freedom Goodness of fit test $I - 1$.Here $I$ is the number of groups. Chi squared test for the relationship between two categorical variables $(I - 1) \times (J - 1)$.Here $I$ is the number of groups for the first variable and $J$ is the number of groups for the second variable. Kruskal-Wallis test $I - 1$.Here $I$ is the number of groups for the independent variable. McNemar's test 1. Cochran's Q test $k - 1$. Here $k$ is the number of related groups. Friedman test $k - 1$. Here $k$ is the number of related groups. Stuart-Maxwell test $J - 1$. Here $J$ is the number of groups for the dependent variable. Model chi squared test for the complete logistic regression model $K$.Here $K$ is the number of independent variables in the model. Chi squared test for a single logistic regression coefficient 1.
{"ft_lang_label":"__label__en","ft_lang_prob":0.7677485,"math_prob":0.9997552,"size":954,"snap":"2021-04-2021-17","text_gpt3_token_len":254,"char_repetition_ratio":0.19157895,"word_repetition_ratio":0.26060605,"special_character_ratio":0.2725367,"punctuation_ratio":0.09392265,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99999356,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-04-18T02:20:35Z\",\"WARC-Record-ID\":\"<urn:uuid:06251baf-4b3b-4ee9-9528-4e1d04ef8750>\",\"Content-Length\":\"10004\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:22af35e5-7e60-4051-b11c-c120b1ef8bde>\",\"WARC-Concurrent-To\":\"<urn:uuid:f79f3f8c-2234-4ae0-a983-50f3d2e49b9d>\",\"WARC-IP-Address\":\"141.138.168.125\",\"WARC-Target-URI\":\"http://statkat.org/degrees-of-freedom-chi-squared-test.php\",\"WARC-Payload-Digest\":\"sha1:HJMOZWSR7FWUW7GOJR2NIUTERRXT2OUZ\",\"WARC-Block-Digest\":\"sha1:7H4YR3VVSNM5FUXXIR3HH5GCEZZ7DIOV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-17/CC-MAIN-2021-17_segments_1618038464146.56_warc_CC-MAIN-20210418013444-20210418043444-00082.warc.gz\"}"}