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

Using Categorical Features for Segmentation Analysis

Often, we find datasets where there are a mix of continuous and categorical fields. In such cases, we can learn about our data and find patterns by segmenting the continuous variables with the categorical fields.

 As a specific example, imagine you are evaluating the return on investment from an ad campaign. The data you have access to contain measures of some calculated return on investment (ROI) metric. These values were calculated and recorded daily and you are analyzing data from the previous year. You have been tasked with finding data-driven insights on ways to improve the ad campaign. Looking at the ROI daily time series, you see a weekly oscillation in the data.

Segmenting by day of the week, you find the following ROI distributions (where 0 represents the first day of the week and 6 represents the last).

As a specific example, imagine you are evaluating the return on investment from an ad campaign. The data you have access to contain measures of some calculated return on investment (ROI) metric. These values were calculated and recorded daily and you are analyzing data from the previous year. You have been tasked with finding data-driven insights on ways to improve the ad campaign. Looking at the ROI daily time series, you see a weekly oscillation in the data. Segmenting by day of the week, you find the following ROI distributions (where 0 represents the first day of the week and 6 represents the last).

Since we don't have any categorical fields in the Boston housing dataset we are working with, we'll create one by effectively discretizing a continuous field. In our case, this will involve binning the data into "low", "medium", and "high" categories. It's important to note that we are not simply creating a categorical data field to illustrate the data analysis concepts in this section. As will be seen, doing this can reveal insights from the data that would otherwise be difficult to notice or altogether unavailable.

主站蜘蛛池模板: 万宁市| 铜梁县| 平陆县| 遵义市| 和硕县| 锡林浩特市| 沅江市| 金坛市| 灵寿县| 海淀区| 敖汉旗| 莱州市| 开原市| 民和| 文安县| 建昌县| 额尔古纳市| 静海县| 游戏| 平南县| 遂昌县| 乌鲁木齐县| 台中市| 甘德县| 双柏县| 福州市| 紫云| 徐闻县| 通河县| 麻栗坡县| 栾川县| 开远市| 桦川县| 理塘县| 达拉特旗| 古丈县| 勐海县| 五家渠市| 达孜县| 迁安市| 榆树市|