เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Visualizing productivity within blocks by incentive

Continuing with the worker productivity example, you'll explore if the productivity scores are distributed throughout the data as one would expect with random assignment of treatment. Note that this is a precautionary step, and the treatment and follow-up results on the impact of the three treatments is not done yet!

seaborn and matplotlib.pyplot as sns and plt respectively are loaded.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Experimental Design in Python

ดูคอร์ส

คำแนะนำการฝึกหัด

  • Visualize the productivity scores within blocks by treatment using a boxplot with 'block' for x, 'productivity_score' for y, and 'Treatment' for hue.

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Make a plot showing how productivity_score varies within blocks
sns.____(x='____', 
            y='____', 
            hue='____', 
            data=prod_df)

plt.show()
แก้ไขและรันโค้ด