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

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.

主站蜘蛛池模板: 瑞昌市| 达孜县| 乳源| 旬邑县| 镇江市| 耒阳市| 定结县| 河北区| 盱眙县| 天长市| 古田县| 武穴市| 佛冈县| 咸丰县| 将乐县| 呼和浩特市| 定远县| 石家庄市| 宁武县| 道真| 黔西县| 金乡县| 洛阳市| 依兰县| 小金县| 南康市| 巴中市| 延寿县| 白玉县| 台山市| 图们市| 阿克苏市| 荆州市| 和静县| 河曲县| 介休市| 东阳市| 蓬溪县| 云龙县| 辛集市| 齐齐哈尔市|