DSR-044Research DSCODE
写代码生成一个 (X,Y) scatterplot 数据集(100 行 2 列),要求别人用 OLS 拟合后 slope 接近 2、R² 接近 0.8。你会怎么做
📋 题目详细背景与场景
另一轮,Write some code that would generate a new scatterplot (X,Y) dataset with 100 points. So 2 columns and 100 rows of brand new data. When you send this new dataset that you generated to me, I will fit an OLS linear regression on the data, and I want the slope to be close to 2 and the R^2 to be close to 0.8. Can you explain how you would accomplish this task? 之后又问了个case,youtube的creater 收入是来自广告的revenue,请问如果这个收入里面加上bonus会不会是个好主意。
📖 对应核心知识点手册:
想用苏格拉底式对话深入理解该考点的第一性原理?
进入破冰推演实验室,模拟考官互动并一步步拆解底层机制与直觉陷阱。
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.