10.6 LAB: Wilcoxon rank-sum test using mannwhitneyu() The file…

Question Answered step-by-step 10.6 LAB: Wilcoxon rank-sum test using mannwhitneyu() The file… 10.6 LAB: Wilcoxon rank-sum test using mannwhitneyu() The file cu_vs_pc.csv is a compilation of data from the Consumer Price Index and the Producer Price Index for several years.Read the file cu_vs_pc.csv into a data frame.Assign the columns cu_value and pc_value to the variables consumer and producer, respectively.Perform a two-sided Mann-Whitney U test on consumer and producer.Print the test statistic W and the p-value.Ex: If the parameter “alternative” is set to ‘greater’ rather than ‘two-sided’, the output is:W = 4.404000E+04p-value = 1.768100E-19 # import the necessaryprice = # read in pc_vs_cu.csvconsumer = # assign the column cu_valueproducer = # assign the column pc_valueW, p = # perform a two-sided Mann-Whitney U test on the variables consumer and producerprint(f’W = {W:.6E}’)print(f’p-value = {p:.6E}’) Computer Science Engineering & Technology Python Programming CIS 461 Share QuestionEmailCopy link Comments (0)