官术网_书友最值得收藏!

Understanding the advertising data

This problem falls into the supervised learning type, in which we have explanatory features (input variables) and the response (output variable).

What are the features/input variables?

  • TV: Advertising dollars spent on TV for a single product in a given market (in thousands of dollars)
  • Radio: Advertising dollars spent on radio
  • Newspaper: Advertising dollars spent on newspapers

What is the response/outcome/output variable?

  • Sales: The sales of a single product in a given market (in thousands of widgets)

We can also use the DataFrame method shape to know the number of samples/observations in our data:

# print the shape of the DataFrame
advertising_data.shape
Output:
(200, 4)

So, there are 200 observations in the advertising data.

主站蜘蛛池模板: 镇雄县| 武夷山市| 马鞍山市| 正定县| 威海市| 巧家县| 阿拉善盟| 抚远县| 贡嘎县| 朝阳区| 克拉玛依市| 横峰县| 长顺县| 克什克腾旗| 曲松县| 宜良县| 志丹县| 荣昌县| 城步| 郎溪县| 绥芬河市| 福泉市| 兰西县| 新龙县| 太谷县| 西峡县| 贵阳市| 红安县| 南川市| 大理市| 北流市| 绥德县| 崇文区| 兰州市| 布拖县| 鄯善县| 宣武区| 射洪县| 韶山市| 阿图什市| 南安市|