MulaiMulai sekarang secara gratis

Conducting an ANOVA test

The box plots made it look like the distribution of pack price was different for each of the three shipment modes. However, it didn't tell us whether the mean pack price was different in each category. To determine that, we can use an ANOVA test. The null and alternative hypotheses can be written as follows.

\(H_{0}\): Pack prices for every category of shipment mode are the same. \(H_{A}\): Pack prices for some categories of shipment mode are different.

We'll set a significance level of 0.1.

late_shipments is available.

Latihan ini adalah bagian dari kursus

Hypothesis Testing in R

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Run a linear regression of pack price vs. shipment mode 
mdl_pack_price_vs_shipment_mode <- ___

# See the results
summary(mdl_pack_price_vs_shipment_mode)
Edit dan Jalankan Kode