# Welcome to HEARTCOUNT

HEARTCOUNT Public is a free, cloud-based data analytics tool that enables you to perform rapid, easy, code-free and in-depth exploratory data analysis(EDA) on your own data.

{% hint style="info" %}
To get free access to HEARTCOUNT Public, [Click Here](https://www.heartcount.io/en?utm_source=gitbook\&utm_medium=manual\&utm_campaign=main)
{% endhint %}

##

## Explore Millions of Data Points at the Speed of Thought

The core design principle of HEARTCOUNT is to let the users describe, explore, and summarize the given dataset at the speed of thought, not at the speed constrained by data architecture of the tool. Therefore, the user can completely forget about the underlying technology and mechanics, and solely focus on asking relevant questions to the data and interpreting what’s revealed in front of their eyes.

{% embed url="<https://www.loom.com/share/41dda6aaa0bb49eba8cafd977c5c753e>" %}

### **- How Does It Work** <a href="#a113" id="a113"></a>

HEARTCOUNT prepares and stores the complete dataset and and associated meta data in the browser’s memory so that the user can keep asking new questions(i.e., mapping new variables to the visual elements; sales variable to Y-axis, product\_category variable to X-axis, and other variables to color, size, etc.) without any noticeable delay.&#x20;

To further elaborate, our proprietary visualization engine interprets user’s question(i.e., data\_values to visual\_elements mapping) and renders the corresponding and context-aware visualization on the fly: **HEARTCOUNT is the only tool in the world that can interactively visualize over 10,000,000 individual records (instead of showing only the aggregated or randomly clipped data).**

### - See Both the Forest and Trees

Understand the big picture then zoom into the relationship you want to dig deeper. You don't have to limit yourself to an aggregated representation of your data. As you freely explore the data at individual record level, you will encounter uncertainty inherent in your data and discover more pragmatic and non-obvious patterns.

{% embed url="<https://www.loom.com/share/662d0c3b8ddf4223bb9a081ad4eb5072>" %}

## What You Can Do with HEARTCOUNT

HEARTCOUNT provides you a variety of easy and powerful data visualization technologies. Take a quick look at what HEARTCOUNT can do for you in this section.

### - Just Ask Your Data

![](https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fk07nZwpjQT6J8ukY2Bjg%2Fmain_justask_v1%20\(1\).gif?alt=media\&token=bd4fe30e-73d4-49f4-a1d8-540c77a494d7)

You don't need to look far to determine which of HEARTCOUNT's potent features is ideal for your analytical queries. By using the "Ask Data" feature, HEARTCOUNT will instantly present the best visualization to address your questions.

{% hint style="info" %}
If you're interested in checking out the full features of premium HEARTCOUNT, please contact <support@idk2.co.kr> and get a free trial.
{% endhint %}


# HEARTCOUNT's data community, DDMA

DDMA, short for DON'T DATA ME ALONE 😝, aims to dispel the existential loneliness often accompanying solitary data analysis.

The **"**[**DON'T DATA ME ALONE (a.k.a DDMA)**](https://community.heartcount.io/en/)**"** community is a vibrant space designed to foster collaboration among data enthusiasts. Hosted under the umbrella of HEARTCOUNT, this community is geared towards unlocking the potential of data through collective efforts​.

The phrase "DON'T DATA ME ALONE" is a playful spin on words, here, 'Data' is utilized as a verb, leaning more towards being commanded to analyze data rather than actively choosing to do so. This phrase encapsulates the existential loneliness professionals often feel when left alone to analyze data. It's inspired by a comic titled "Don't Leave Me Alone," reflecting a narrative where a young girl from an immigrant family, facing unjust discrimination, yearns not to be left alone in a harsh reality, mirroring the longing for community and collaboration in the data analysis realm.

![](https://community.heartcount.io/en/content/images/2023/10/-----------2023-09-05-------10.35.43.png)

I would suggest diving into the specific sections, webinars, and blog posts available on the community platform to provide readers with a comprehensive understanding of the resources and knowledge-sharing occurring in this thriving community.

{% hint style="info" %}
Join our brand new data community: [DON'T DATA ME ALONE](https://community.heartcount.io/en/) !
{% endhint %}


# How to start

Are you curious about what sets HEARTCOUNT Premium apart from the free version? If so, you can find out all the details on this page.

## HEARTCOUNT Premium enables you to save campaigns for ongoing analysis.

* Easily **save your work with a click and manage campaigns at your convenience.** The number of saves you get depends on your plan, ranging from 15 to unlimited with Premium Plus.
* For enhanced security, enable data obfuscation during campaign creation.
* Bookmark valuable analysis results within campaigns for easy retrieval, even export visualizations as HTML files.

## Not just visualizations, but also get automated analytic functions.

* **Register KPIs for unique automatic analysis and pattern discovery,** with the capacity to manage up to 5 or 10 KPIs based on your account type.
* Understand KPI relationships with other variables in simple terms, strategize on maximizing/minimizing KPIs, and define distinct groups to compare data.

## Discover more with HEARTCOUNT Premium

Start your 1-month free trial and unlock more value from your data with HEARTCOUNT Premium. Upgrade after experiencing the full suite of tools. Note that the free trial is limited to one per account.


# Campaigns

In order to use HEARTCOUNT's Advanced Analytics Service, you have to upload your "Campaign" first. 😊

## 1. **Saving Campaigns**

You can save campaigns when you have at least one campaign credit (while using a **Premium** Plan of HEARTCOUNT). The number of credits you have determines the number of campaigns you can save (for the **Premium Plus+** plan, there's no limit on the numbers of storable campaigns).&#x20;

Click on the blue '`Upload this Campaign`' button below to save your campaign on the HEARTCOUNT server. If you don't save your campaign, all the analysis will disappear once you close your browser.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F2XCt54brsMXhXtJ2CN3B%2Fimage.png?alt=media&amp;token=8cf97205-5127-4e93-bf25-ca6dd007c6f3" alt=""><figcaption></figcaption></figure>

Saved campaigns can be viewed and deleted from the 'Campaign Management' tab, and you can also switch between different campaigns. Each account can store up to 15 campaigns.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FQTaZKp4hmKv3AeG7wpRd%2Fimage.png?alt=media&amp;token=9c997190-4152-4e3c-a580-22e9c3215504" alt=""><figcaption></figcaption></figure>

## **2. Advanced Settings**

When saving a campaign, you can set the following advanced options:

* **Data Obfuscation**: Choose whether to obfuscate (anonymize) the dataset before uploading it to the server.

> **What is data obfuscation?**&#x20;
>
> This feature automatically obfuscates sensitive data before it's uploaded to the cloud server, ensuring only the obfuscated data is stored. This allows users to analyze data with HEARTCOUNT confidently from anywhere.&#x20;

* **Upload Filtered Dataset**: If filtering is applied, you can choose to upload only the filtered records/variables or remove all filters and then upload.
* **Recreate Derived Variables**: If the above option is ON, you can choose whether to recreate derived variables like bin/percentile, which are automatically generated by HEARTCOUNT, based on the filtered dataset.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FuqZHYceUu5Mf3gt5AH56%2Fimage.png?alt=media&amp;token=347c217e-5825-47ca-94b0-79cf23fb9a8d" alt=""><figcaption></figcaption></figure>

## **3. Campaign Management**

Think of campaign management as a folder on your computer used for organizing files, but in HEARTCOUNT, these files are campaigns. Register multiple files as campaigns, and then, whenever you wish, move between different campaigns, delete them, or organize the ones you've registered. This is the ideal tab for such tasks.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fr49K2t9XLeuzZpW7al03%2Fmanage.gif?alt=media&amp;token=b83f7cd1-4ab9-47fd-8d45-eed36fdf1951" alt=""><figcaption></figcaption></figure>

You can view the campaigns you've registered through the second tab on the left, **'Manage Campaign'**.

1. **Delete Campaign**: If too many campaigns are registered, it might overload the server. It's advisable to delete unnecessary campaigns. HEARTCOUNT recommends having no more than 15 campaigns per account.
2. **Activate Campaign**: When you select a campaign you want to analyze, you'll notice the active campaign name next to the user ID on the right changes. After that, you can start your desired analysis from the left menu.

<br>


# Managing KPIs

## **KPI Registration & Management**

In HEARTCOUNT, think of a KPI as "the main business metric variable in our current analysis." For instance, if a campaign's goal is "finding rules for optimizing sales and profit," then the KPIs for that campaign would be sales and profit.&#x20;

While you can analyze most metrics in HEARTCOUNT even if they aren't set as KPIs,&#x20;

* SMART DISCOVERY Dashboard feature, which automatically identifies patterns in individual KPIs and recommends significant analysis results, is only available for metrics set as KPIs.

  👉 Learn more about [SMART DISCOVERY](https://public.heartcount.io/advanced-analysis/dashboard)
* Driver analysis and the Explainer function analyze the relationship between numerical KPIs and other variables. Therefore, a numerical KPI must be registered to utilize these features.&#x20;

{% hint style="info" %}
HEARTCOUNT recommends registering no more than 10 KPIs per campaign.&#x20;
{% endhint %}

You can view all columns (rows) of the previously uploaded data. From these columns, you can set the ones you want to focus on as KPIs and manually set the variables.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FcE0sYUnEKtE9gSyRpGwb%2Fmanage-kpis.gif?alt=media&amp;token=ea5f5323-5ea7-4c67-9f12-387025eab270" alt=""><figcaption></figcaption></figure>

## **1. KPI Registration**

### **(1) Numerical Variables**&#x20;

Let's first look at how to set a numerical variable as a KPI.&#x20;

> * Numerical variables refer to data made up of continuous numbers. ex) Age, height, income, etc.
> * Categorical variables refer to non-continuous data that can be divided into several categories or ranges of similar characteristics. ex) Gender, blood type, etc.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FksdcwNvNdPxJtMkzsB4k%2F%5BKPI%5D%20numerical.gif?alt=media&amp;token=c27d1adf-a52c-4d55-9b34-14486049c088" alt=""><figcaption></figcaption></figure>

Numerical variables are automatically marked with a number (#) in the system. Choose one from the \[KPI Types] (score, money, time, others). Then, select one or both of the calculation methods: average or total.&#x20;

Note that the \[KPI Type] is only a classification standard and does not affect the analysis results.

**1-1. Setting Derived Variables**&#x20;

As mentioned in campaign creation, HEARTCOUNT offers automatic features like categorizing numerical variables and **binning** them into ranges, as well as processing them into **percentiles**. Thus, you can create two derived variables.&#x20;

👉 Learn more about the binning feature (link)

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FecMVvYJi0fhMCLZtawLy%2F%5BKPI%5D%20derived-variables.gif.sb-fa191158-3QZkIF.gif?alt=media&amp;token=88ff5f86-92f0-4616-881d-f485037365ee" alt=""><figcaption></figcaption></figure>

You can set up to 4 of these derived variables as KPIs.

### **(2) Categorical Variables**&#x20;

Categorical variables are those defined by non-numerical values for creating KPIs (YES/NO, Male/Female, etc.). You can select **up to 4 KPIs** per variable.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FUSZ1D9CmepRn1O56HEk0%2F%5BKPI%5D%20categorical-variables.gif?alt=media&amp;token=7f89a72c-ff97-4ae7-92b8-f1fe32064644" alt=""><figcaption></figcaption></figure>

Once you've set up your KPIs, it's time to start your analysis in earnest.&#x20;

* By clicking on the dashboard icon right below the KPIs management icon on the left menu, you can directly view and proceed to the analysis function for the KPIs you've set. \
  👉 Go to the [Dashboard manual](https://public.heartcount.io/advanced-analysis/dashboard)&#x20;
* You can freely add, delete, or modify KPIs during the analysis.


# Data Obfuscation

{% hint style="info" %}
Please note! \
Important Notice: The data obfuscation feature is exclusive to the **Premium (paid) version of HEARTCOUNT**. In the free version, datasets uploaded are not stored on our servers and will be automatically removed upon closing the browser.
{% endhint %}

## **1. What is Data Obfuscation?**&#x20;

Many hesitate to adopt cloud services due to concerns about leaks of *sensitive/personal information (security issues)*. HEARTCOUNT offers a data obfuscation feature to ensure users can confidently analyze data online from anywhere.

## **2. Uploading Data to the Server after Obfuscation**

When saving a campaign, you can click on advanced settings to turn the obfuscation feature on/off. If set to obfuscation, only the obfuscated file, not the original one, is stored on the server.&#x20;

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FaaJEs0NohBrfgWycFnnz%2F%5BObfuscation%5D%20Upload.gif?alt=media&amp;token=8afac98d-9c96-4dd2-8b15-3d96d97b799b" alt=""><figcaption></figcaption></figure>

Let's try saving the campaign after checking the obfuscation option.&#x20;

* A message will pop up suggesting you download the modified data, which has been obfuscated, not the original data. Please click on "`download`".

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FhdgBnaiCrPIc18WGMEM0%2Fimage.png?alt=media&amp;token=601ce64d-af14-4005-85d4-7975fee3d562" alt=""><figcaption></figcaption></figure>

* Upon successful execution, click "OK".

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F57ezIYGMdBnm4945PrSS%2F%5BObfuscation%5D%20Download.gif?alt=media&amp;token=2e7cba61-9bc5-4fe5-b394-2762ffd975a9" alt=""><figcaption></figcaption></figure>

Now, instead of uploading your original data that might raise security concerns, you can upload the obfuscated data and utilize HeartCount. You have the option to decide whether to store the obfuscated data in the current browser memory.

Curious about HeartCount's unique data obfuscation feature? (Click)


# Smart Plot

## :question:What It Can Do for You

&#x20; Smart Plot is the key feature of HEARTCOUNT where typical code-heavy visualization tasks can be executed easily and come in handy. To visualize data in a way you want to examine it, all you have to do is to simply select which variable goes x-axis and which goes to y-axis and choose the type of visualizations you wish to use.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FOKyLUlShvaan5QnzFieZ%2Fsmartplot_main.gif?alt=media&amp;token=caa82add-0b3d-4aca-b314-edd5306e6cdc" alt=""><figcaption></figcaption></figure>

&#x20; Smart Plot provides a variety of visualizations of your data, which include such below.

<table><thead><tr><th width="333">Data Type</th><th>Available Visualization</th></tr></thead><tbody><tr><td>Between numeric and other numeric</td><td>Scatterplot</td></tr><tr><td></td><td>Trend Line(regression line)</td></tr><tr><td></td><td>Heat Scatter</td></tr><tr><td>Between categorical and numeric</td><td>Bar (average or sum)</td></tr><tr><td></td><td>Stacked Bar</td></tr><tr><td></td><td>Stacked Area</td></tr><tr><td></td><td>95% confidence interval</td></tr><tr><td></td><td>Boxplot</td></tr><tr><td>Between categorical and categorical</td><td>Ratio Bar Chart</td></tr><tr><td></td><td>Stacked Count Bar</td></tr><tr><td>Between time series and numeric</td><td>Time Series Line Chart</td></tr><tr><td></td><td>Stacked Area</td></tr><tr><td></td><td>Trend Line</td></tr><tr><td></td><td>Forecast</td></tr></tbody></table>

## :page\_with\_curl:How to Use

### - Basics&#x20;

&#x20; Smart Plot consists of four key sections. You can easily create a suitable visualization of your dataset using these sections without writing a single line of code.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F4yATq4uHR9Q2fMivO2gk%2Fimage.png?alt=media&amp;token=fc5f87bf-d329-4b38-9dec-9e41920e6396" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="215">Area</th><th>What's It For</th></tr></thead><tbody><tr><td>1. Main Area</td><td>This is where a plot will be displayed. You will be able to interact with plot elements such as data points in a scatterplot to further investigate the dataset to find an answer to your analytic inquiries.</td></tr><tr><td>2. Side Menu</td><td>This is where you may configure Smart Plot's parameters, such as which variables to use to change the colors or sizes of data points, or to filter the data. Also, you could choose </td></tr><tr><td>3. Variable Selection</td><td>This is where you can choose which variable to create a plot suitable for your analytic purpose. As with creating a data visualization in a code-heavy setting(R/Python), you must choose which variables you would place in the x and y axes and which to use for subgrouping or faceting.</td></tr><tr><td>4. Visualization Type</td><td>This is where you can choose which type of visualization you would use to plot the data. Given the variables for the x and y axes, the Visualization Type tab will provide you several options you could choose from to correctly visualize your data.</td></tr></tbody></table>

### - Types of Visualizations

&#x20; This section will discuss the many sorts of visualizations possible in relation to the specified x and y axes variables.

{% tabs %}
{% tab title="Two Numeric Variables" %}
&#x20; When you put numeric variables on both axes, a simple scatterplot will be displayed on Smart Plot. Also, a Pearson correlation coefficient will be given as a basic information on these two variables.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fxg6k3l9bdddtiJE5BkB3%2Fimage.png?alt=media&amp;token=4df08894-a2a9-4e4d-bec7-bb5767ec404b" alt=""><figcaption></figcaption></figure>

<details>

<summary>See in Detail</summary>

* There are two available types of additional visualizations for the scatterplot.&#x20;

  * You may choose to display a **trend line** <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FGwblzKKFM5XIpUjjNvLw%2Fimage.png?alt=media&amp;token=955cc8b5-3848-4de9-b33b-1312a0bf7811" alt="" data-size="line">, which is basically a regression line. It displays how the x and y variables are linearly correlated.

    <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fr4Ykp2jgWdlglKR5zAIU%2Fsmartplot_scatter_trendline.gif?alt=media&amp;token=26d9ce19-22e4-431f-9a53-67da22fb27d0" alt=""><figcaption></figcaption></figure>

    * On the left of the trend line icon lies a number. It is a Pearson correlation coefficient that  shows how much those variables are linearly correlated.&#x20;
      * Pearson correlation coefficients are on or between −1 and +1.
        * If it equals to zero, it means they are not linearly correlated at all.
        * If it equals to plus one, it means they are strongly positively correlated.
        * If it equals to minus one, it means they are strongly negatively correlated.
    * If you drag to select some data points of interest, it will show you the linear relationship of only **the selected data**.

    <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FX2H1KqJNUOecn2hhjL8Z%2Fsmartplot_scatter_trendline_2.gif?alt=media&amp;token=b1dd6e00-e1c4-415e-a4d1-fbffc61e16cd" alt=""><figcaption></figcaption></figure>

  * The other available option is **heatmap**<img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FhEXVXNOxPnxrlLccrMV1%2Fimage.png?alt=media&amp;token=b1a07cf3-73dc-4740-bbd8-2011cb43e934" alt="" data-size="line"> (often known as heatscatter).

    * This visualizes around which area data points cluster together the most.

    <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FcF8v64AelZLnW7yIjhhd%2Fsmartplot_heatscatter.gif?alt=media&amp;token=c2271e4b-5ca0-42d0-808a-63e257057aa3" alt=""><figcaption></figcaption></figure>

    * The gradient color scale will change in accordance with the color settings on right top of HEARTCOUNT.\ <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fe1EsvtVmikwDol23en5K%2Fimage.png?alt=media&amp;token=245b641d-ce6b-4fdb-a334-1125db1515b0" alt="" data-size="original">

</details>
{% endtab %}

{% tab title="Category on X & Numeric on Y" %}
&#x20; There are two major ways to visualize the data when you put a categorical variable on x-axis and a numeric variable on y-axis. One is to visualize individual data points and the other is to create subgroups based on the categorical variable on the x-axis.<br>

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F0CACEEeu3EkZpPHhbc5U%2Fsmartplot_2_gr_bar_subg.gif?alt=media&amp;token=6eea5310-818a-42a5-b1dc-98795493d7a0" alt=""><figcaption></figcaption></figure>

<details>

<summary>Individual Data Point Visualization</summary>

* **Scatterplot**\
  : This is equivalent to a scatterplot for the scatterplot with two numeric variables, but data points are aligned in accordance with the given x-axis.<br>

  <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FQgfxLgBXh7l0Hcamchwf%2Fsmartplot_2_ind_scatter.gif?alt=media&amp;token=58f820ed-df09-4539-ad06-b6a55b39df7c" alt=""><figcaption></figcaption></figure>

* <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FGIGz4pzPgeTX3mi7kwhj%2Fimage.png?alt=media&amp;token=95a62860-ecd1-42d2-bd5c-023b57181ba6" alt="" data-size="line">**95% Confidence Interval**\
  : This shows 95% confidence interval for each group of a category variable on x-axis. A box placed upon the data points of a group represents the confidence interval of a sample mean for the group. When you click the box, you will be shown another box that is long and horizontal that you can use to compare with other groups' confidence interval boxes. You can imagine conducting an eye-level two-sample t-test.

  <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FoRzfL6mbCosuqzPmw237%2Fsmartplot_2_ind_95conf.gif?alt=media&amp;token=a6fdf0c1-4eaa-4f10-9b2b-8647de27abc0" alt=""><figcaption></figcaption></figure>

* <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F6wUca1SVM9FOiQZ5SlpJ%2Fimage.png?alt=media&amp;token=c44d6c73-4ce5-4f65-88a3-7325732b0beb" alt="" data-size="line">**Distribution**\
  : This is one of the two ways to visualize how data points are distributed across y-axis by each group of a categorical variable on x-axis. Length of a line represents the number of data points lying upon the line.

  <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fa4E7Kvqn8eKXsUS1d8RO%2Fsmartplot_2_ind_dist.gif?alt=media&amp;token=b276e26b-f16c-4e48-8f99-9e98726f9fc4" alt=""><figcaption></figcaption></figure>

* <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FfJ7pJzauHFuNlrqjLzZN%2Fimage.png?alt=media&amp;token=ab976358-1392-40c2-bd54-7ffafc9cc27e" alt="" data-size="line">**Heatmap**\
  : Heatmap, just as <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F6wUca1SVM9FOiQZ5SlpJ%2Fimage.png?alt=media&amp;token=c44d6c73-4ce5-4f65-88a3-7325732b0beb" alt="" data-size="line">Distribution does, represents the distribution of data points but with gradient colors. Note that you can change the color scale with the color scale icon <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FF4hIDZ9jBpxV8SJPpUnV%2Fimage.png?alt=media&amp;token=8ac228e4-f4f2-40a1-8b25-84d3ce8bf24d" alt="" data-size="line"> on top right of HEARTCOUNT.

  <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FeK5kBu3yZ9LqGYM5cHFv%2Fsmartplot_2_ind_heatmap.gif?alt=media&amp;token=23ab7180-bd82-481b-ae22-280f9337b4cf" alt=""><figcaption></figcaption></figure>

<br>

</details>

<details>

<summary>Grouped Data Point Visualization</summary>

* You may create subgroups based on the categorical variable on the x-axis by using subgroup tab. After so, Smart Plot will provide a set of available options for grouped data point visualization.

  <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FrzC1fsxRNR7yeAUZlWMm%2Fsmartplot_2_gr_basic.gif?alt=media&amp;token=c54e81a0-5fe3-408d-97cf-c2e7060d9ffe" alt=""><figcaption></figcaption></figure>

* There are five metrics you may choose to put on a y-axis.
  * Average of a numeric variable
  * Sum of a numeric variable
  * Record count: how many records are in each group
  * Global ratio: how much proportion each group takes within the given dataset
  * Local ratio: how much proportion each subgroup takes within the each group. This is useful when you divide each group into another subgroup.

* Here are the list of available visualization options.<br>
  * <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FjOYNl9iCxfQCt6jy5AhE%2Fimage.png?alt=media&amp;token=9c4d881f-fc7d-477b-923e-df812846b8d7" alt="" data-size="line">**Bar chart**\
    : This is a simple bar chart where heights are proportional to the given metric on a Y-axis.<br>

    <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FOJgMjgu9fSO4fGUsleQr%2Fsmartplot_2_gr_bar.gif?alt=media&amp;token=d3d7c27c-884e-4533-8fe9-f174c6f8f247" alt=""><figcaption></figcaption></figure>

    * You may use other variable to create subgroups within each group instead of grouping the entire group. Each bar on the x-axis will be divided into multiple subgroup bars.<br>

      <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F0CACEEeu3EkZpPHhbc5U%2Fsmartplot_2_gr_bar_subg.gif?alt=media&amp;token=6eea5310-818a-42a5-b1dc-98795493d7a0" alt=""><figcaption></figcaption></figure>

      <br>
  * <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FNptLuqJ0WkA0SVvtgY9N%2Fimage.png?alt=media&amp;token=4ca548f2-5332-4ffa-b71c-f76291a606b7" alt="" data-size="line">**Stacked Bar Chart**\
    : Another way to use the subgroup feature is with a stacked bar chart. Each bar on the x-axis will be divided into multiple subgroup bars, and the subgroup bars will be stacked so that the original bar can be better understood.

    <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FeIl401pSk9oiPqS3HcTb%2Fsmartplot_2_gr_bar_stacked.gif?alt=media&amp;token=717d90fb-9053-4531-984e-cbc785e97eff" alt=""><figcaption></figcaption></figure>

    <br>
  * <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FDS450YzwBZ42DY5vNDpR%2Fimage.png?alt=media&amp;token=0827cfea-10c8-4961-b6f4-ff33a2db8a66" alt="" data-size="line">**Stacked Area Chart**\
    : A stacked area chart is similar to the stacked bar chart, except that subgroup bars are connected together so that the levels/values of each subgroup vary over the given x-axis variable can be better understood. Below is displayed how easily local ratio of subgroups within each category can be calculated.

    <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FPb9xx5cD3SAhyJKDH5yS%2Fsmartplot_2_gr_area.gif?alt=media&amp;token=8bb6b23e-9bbe-4d7c-ac9a-147f4dd3c0d3" alt=""><figcaption></figcaption></figure>

    <br>
  * <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FsCNwLZGRzHNlnNrxmMtv%2Fimage.png?alt=media&amp;token=5389696f-e86e-468b-ab42-919cbe1c2094" alt="" data-size="line">**Line Chart**\
    **:** This is a traditional line chart where seasonal patterns and trends can be explored if your dataset contains a temporal(time, date, etc) variable.

    <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FZmjZgA74BnVQLkPlLd1i%2Fsmartplot_2_gr_line.gif?alt=media&amp;token=726002d7-7055-46f1-a5db-d3edf2b92531" alt=""><figcaption></figcaption></figure>

</details>
{% endtab %}

{% tab title="Time Series on X & Numeric on Y" %}
&#x20; You also can put a time-series variable on x-axis. <br>

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FE5zgbRCATW3emCOrSxoi%2Fsmartplot_ts_2.gif?alt=media&amp;token=1d9642c3-8c83-43c8-b2cd-fe92f3ead9f6" alt=""><figcaption></figcaption></figure>

<details>

<summary>See in Detail</summary>

* If your dataset contains a time series variable, you can map it on the x-axis. Smart Plot will then display a line chart.<br>

  <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FWbgIKAUPQeptuoq5iuaN%2Fsmartplot_ts_1.gif?alt=media&amp;token=3d756d39-d42f-41e6-9f2b-ac5743198b78" alt=""><figcaption></figcaption></figure>

* Smart Plot will generate a monthly time interval for you. To switch to a different time interval, such as weekly or yearly, use the small clock-like icon<img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FPzj4OslD4HL2ZHOpZXim%2Fimage.png?alt=media&amp;token=bb722b08-f888-4523-ae5d-c3bd761d25e7" alt="" data-size="line">next to the x-axis tab.<br>

  <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FE5zgbRCATW3emCOrSxoi%2Fsmartplot_ts_2.gif?alt=media&amp;token=1d9642c3-8c83-43c8-b2cd-fe92f3ead9f6" alt=""><figcaption></figcaption></figure>

* You can use automatically derived time series variables such as days of week, day type(weekdays or weekend), or so to create a plot. This will enhance your understanding of the relationship between the time series variable and others.

  <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FxfFRz8walsrqIBiLkGyY%2Fsmartplot_ts_4.gif?alt=media&amp;token=8020ca6a-0152-4014-b13b-68e548f25a2b" alt=""><figcaption></figcaption></figure>

* You can check how the variable on the y-axis has evolved over the x-axis by using the trend line feature<img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FfomIt22ffpF950q3FTje%2Fimage.png?alt=media&amp;token=099d0bf0-80d8-4d70-805a-172e371f7d8a" alt="" data-size="line">.<br>

  <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FJCtIKbqVMmzup6dksIBW%2Fsmartplot_ts_5.gif?alt=media&amp;token=7d8727fe-a170-407c-b28c-fd0b6864cde8" alt=""><figcaption></figcaption></figure>

* Smart Plot also supports two simple forecasting models<img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F6uYLcB0fFYhm1uUkGeQL%2Fimage.png?alt=media&amp;token=0ad2b27f-a387-43c1-9f44-b6fd5f1cf08b" alt="" data-size="line">, namely the max entropy model and the least square method.

  <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FUXNF4yAUEXnF0g3rHQp8%2Fsmartplot_ts_forecast.gif?alt=media&amp;token=cfd84ca8-271f-4432-8080-72359f259293" alt=""><figcaption></figcaption></figure>

</details>
{% endtab %}
{% endtabs %}

### - Additional Features

#### **Facetting**

&#x20; Smart Plot offers a facet feature. It allows you to divide a single plot into multiple charts based on a facet variable in order to better understand the relationship between the x and y variables. You can also use every other feature in Smart Plot within each facet plot.&#x20;

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fak6zM7YVQHrZ1ZKMEeIi%2Fsmartplot_facet.gif?alt=media&amp;token=4ad1e38e-b8f4-4544-ac98-a2a3821d4475" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Categorical variables with fewer than 11 groups can currently be used as a facet variable.
{% endhint %}

{% hint style="info" %}
To get free access to HEARTCOUNT Public, [Click Here](https://www.heartcount.io/login?lang=en)
{% endhint %}


# Drill-Down

## :question:What It Can Do for You

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fk7nAXnCdLBOlO7bTtPKH%2Fdrilldown_main_aggre.gif?alt=media&amp;token=274761ed-d201-4f05-9ef3-3ecb3ff83636" alt=""><figcaption></figcaption></figure>

&#x20; Drill-Down allows you to easily compute, summarize, and analyze data, allowing you to find similarities, hidden patterns, and overall trends of key metrics in your data. With Drill Down, you can divide it into multiple dimensions within dimensions by simply selecting which variable you want to segment the data (this is usually called a pivot table). Drill Down offers you three different ways to represent the created drilled-down data so that you have much deeper understanding of the dataset.

## :page\_with\_curl:How to Use

&#x20;

&#x20; There are three different types of visualization you may utilize in Drill-Down menu. They all serve one purpose: to help you understand how key metric differs within given segments. In addition, Drill-Down provides SMART DISCOVERY section where an automatically discovered combination of variables that maximize given key performance index.

&#x20; How is the easiest part of using HEARTCOUNT's Drill-down menu, just as the other functions of HEARTCOUNT are. You just have to simply...\
\
\
**1. Select a variable of your interest as KPI**<br>

* **In this step, there are four options you can choose.**\
  &#x20;  **1) Count of rows in the dataset:** \
  &#x20;     *"Which region has created the most number of transactions?"*\
  &#x20;  **2) Ratio of given segment within other segments:**\
  &#x20;     *"How much ratio do technology products make up about?"*\
  &#x20;  **3) Average of the variable:** \
  &#x20;      *"Which category has recorded the highest average profit?"*\
  &#x20; **4) Sum of the variable:** \
  &#x20;       *"Which state has been the most profitable?"*\
  &#x20;     &#x20;

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FQNhtPYbAn5WHr1zVLUBD%2Fdrilldown_general_choosevar.gif?alt=media&amp;token=edb8e9c2-282e-4618-a9c9-d73df2560f91" alt=""><figcaption></figcaption></figure>

\
**2. Select variables to segment the data and click Run**

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FkxIepkv4RG9109ZOzZMp%2Fdrilldown_general_chooseseg.gif?alt=media&amp;token=dba9371d-8811-4137-8c64-9ec8e2e8103f" alt=""><figcaption></figcaption></figure>

* You can freely choose any of variables in the dataset as segment variables except the one selected as the key metric variable previously.
  * If you choose numeric variable as a segment variable, HEARTCOUNT will automatically pick up derived bins of the selected variable. You may switch this to derived percentile variable.
* It is possible to choose multiple segment variables. In this case, Drill-Down creates segments within segments in the order of the chosen segment variables.<br>

  <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fp1jop6Tin1aMaBpVOGaK%2Fdrilldown_general_choosevar_2.gif?alt=media&amp;token=180050ca-fc0b-43ec-8d3e-b4c769772a40" alt=""><figcaption></figcaption></figure>

\
**3. Choose a type of visualization**

&#x20;  Choose which visualization method you wish to use from the three different types of visualizations, which are described below.

### - Types of Visualizations

#### <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FTq1I7BOATbt5iIl1ZFIF%2Fimage.png?alt=media&amp;token=412fd7fa-1350-40a1-9b39-b46c32459336" alt="" data-size="line">Drill-Down

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FhnkaAyWYmBrVJtGPXFsB%2Fdrilldown_main_1.gif?alt=media&amp;token=d2b3ba01-f4fb-49d4-9e2b-514a78fc3a29" alt=""><figcaption></figcaption></figure>

\
&#x20; Drill-Down is a main function of Drill-Down menu. With given key metric variable and segment variable, Drill-Down shows you how average/sum of key metric value varies within each segment with arrows and numbers. Length of an arrow shows a relative size/amount of the metric for each segment.

* On top right of the drill-down table is displayed an overall average for average metric, grand total sum for sum metric, overall average ratio for ratio metric, and grand total count for count metric.
* By clicking the order icon <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FF8hPRNl9cxycbkomXLGO%2Fimage.png?alt=media&amp;token=4a89466c-4d88-4b9d-baaa-d4f226ceaf7a" alt="" data-size="line">upon the top left of the drill-down table, you can decide in which order you wish to arrange the table.&#x20;
  * <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F3FI6dP7NnSr4MoLEBfVX%2Fimage.png?alt=media&amp;token=ebfca38f-0d98-4110-9ae0-44be555abe2d" alt="" data-size="line"> : sort by value order (ascending)
  * <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FYnjJ1ULGGMJGKHUNuOcI%2Fimage.png?alt=media&amp;token=d384161f-f5b3-4f54-ab06-ed5340eaecaf" alt="" data-size="line"> : sort by value order (descending)
  * <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F9Qzw7JSqDwYIXpbbjVwg%2Fimage.png?alt=media&amp;token=243f9c79-0ba1-48a5-8349-5e17b602ee75" alt="" data-size="line"> : sort by alphabetic order (ascending)
  * <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FprbObk95Zb4z2fZ79Ezo%2Fimage.png?alt=media&amp;token=383e74b5-b439-4cc3-8b8c-58a9603d9c25" alt="" data-size="line"> : sort by alphabetic order (descending)
* Upon the top right of the drill-down table is where you can set the record count threshold. \ <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fnn382s7RNX2rvkpk3cAO%2Fimage.png?alt=media&amp;token=68c7db54-8815-4ea2-80e6-4366077156d8" alt="" data-size="line">
  * If a segment consists of less number of records, it will be excluded in the table.

###

#### <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FNcs3akrC3bSufaqrxeL0%2Fimage.png?alt=media&amp;token=3555c217-b182-46cb-8ad8-cd4e0b8c2f0a" alt="" data-size="line">Tree Map

&#x20; Tree Map provides a different visual approach to understand how the metric varies within segments. Tree Map is like opening boxes within boxes and size of each box represents the value of the box itself. The first segment variable you choose will be the outermost box(root of the tree, first layer), and the second segment variable will consist of the second layer, which is why this type of visualization is called Tree Map.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F3j9zeKLg63fWxX4H2KGo%2Fimage.png?alt=media&amp;token=0f696a6e-b971-47d8-922f-2c803ca096fc" alt=""><figcaption></figcaption></figure>

&#x20; To construct a Tree Map visualization, you must first select the key metric variable and segment variables in the order in which you want to segment your data, just as you would do in the Drill-Down visualization tab. The first layer of the tree map will appear after you click the Run button (outermost box, root layer of the tree). If one of the first layer segments piques your interest, simply click the box to examine how the metrics for the second layer segments inside the segment of interest fluctuate.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FNe0bFxG7HBTBpqjMYEfa%2Fdrilldown_treemap.gif?alt=media&amp;token=242961ad-9ccb-4f45-82ad-decae74f222c" alt=""><figcaption></figcaption></figure>


# Small Multiples

## :question:What It Can Do for You

&#x20; Small Multiples gives a bird's-eye view of a single numeric variable over all other variables in the dataset. Small Multiples enables you to instantly understand the overall relationship between the selected variable and the other variables by showing you the relevant charts.

## :page\_with\_curl:How to Use

&#x20;  To use Small Multiples, all you have to do is to just select one of the numeric variables. Then, Small Multiples will generate multiple charts of two types that reveals you the relationship between the selected variable and the others. One is a scatterplot for a numeric variable, the other is a bar chart for a categorical variable.

&#x20;  For instance, if you want to understand the relationship between a key metric variable, such as profit, and all other variables, simply pick profit as a y variable in Small Multiples.<br>

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FMVr5sYZEKf3y4VLIRC5i%2Fimage.png?alt=media&amp;token=abf216e9-2530-4dec-808f-7224ca15f324" alt=""><figcaption></figcaption></figure>

&#x20;  If you simply want to look at the link between profit and all other factors in Texas, you can use the Record Filter feature just as below.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FKuAVTrKnjCDhsEFKnV8y%2Fsmallmultiples_.gif?alt=media&amp;token=240b1870-2eb0-4c55-8d8e-17afc6241e49" alt=""><figcaption><p>All simplified scatterplots that show the relationship between profit and numeric variables are located on the top,<br>whereas bar charts for categorical variables are located on the bottom.</p></figcaption></figure>

&#x20;  From there, perhaps the relationship between profit and product category in Texas catches your attention. Then, simply move your cursor over the bar chart titled as "Category" and click the Smart Plot symbol that appears in the upper right corner of the chart.&#x20;

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FJXF38A7nvpnwzjBtELht%2Fsmallmultiples_2.gif?alt=media&amp;token=87ed5f31-0bb4-4867-8ea0-6fb9099a5240" alt=""><figcaption></figcaption></figure>


# Smart Ranking

Comparison between groups done easily

## :question:What It Can Do for You

&#x20;  Our Smart Ranking feature enables you to quickly generate multiple bar charts based on the entire set of numerical values(sales, weights, costs, etc) in a given dataset over a categorical variable(groups, ids, types, product categories, etc) you choose. This gives you a chance to take a broad look of the dataset and makes it simple to understand which group generally has greater numeric values.

## :page\_with\_curl:How to Use

&#x20;  By simply selecting single categorical variable(e.g. product category, region, ...), HEARTCOUNT displays multiple bar charts of all the numeric variables(profit, quantity, ...) by each value of the selected categorical variable.

&#x20; Let's see how it works in practice from Superstore dataset.

* Say you want to how each numeric value varies on average by each product category. The only action you have to take is simply choose Category as a ranking variable.&#x20;
* Then, HEARTCOUNT will produce multiple bar charts with bars ordered in decreasing order on each chart. With the created bar charts, you will have a overview of how each numeric variable differs by each category. <br>
  * Furnitures, for example, which are shown by blue bar charts, have averaged medium sales but the lowest profit, which is exceptional. However, if you look at the discount bar chart, you can see that on average, furniture was sold to clients at a larger discount rate, which may have influenced average furniture profit.

    <figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FEnsB5EpJ8gZepmBOxKXC%2Fimage.png?alt=media&amp;token=3a66e9d5-9245-41a9-8b44-000108515308" alt=""><figcaption></figcaption></figure>

###

* You may highlight one of the bars (categories) and make it more apparent and distinct by either using the search tool or by clicking on one of the bars. This will lead to a better comprehension of the selected category.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FsHqWKtjwWZ5zk9u8DONm%2Fsmart_ranking_1.gif?alt=media&amp;token=ee12477b-869b-4a83-b21f-e42416d17968" alt=""><figcaption></figcaption></figure>

* If you want to examine if this relationship between category and each metric changes inside a certain state, like California, you may use the HEARTCOUNT record filter to exclude all other states except California.
  * Even with the largest discount rate, it appears that technology-related items earned the best profit and sales in California.
  * Meanwhile, the quantity of tech items was the biggest, but the record count (number of transactions) was the lowest. This might imply that a small number of clients in California acquired a large number of tech goods in a few transactions.

<div align="right"><figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FMxOmWGbn3aysT3kamOPJ%2Fsmart_ranking_2.gif?alt=media&amp;token=5f3e2349-caaa-43b3-96f1-e3da48ea818b" alt=""><figcaption></figcaption></figure></div>

* If you want to learn more about the link between product category and profit, move your cursor over the profit bar chart and click the Smart Plot symbol that appears in the upper right corner of the chart. HEARTCOUNT will then switch to Smart Plot, with category on the x-axis and profit on the y-axis.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fk5l7GuDEclduHfOzeODf%2Fsmart_ranking_3.gif?alt=media&amp;token=697a8ec0-ae15-41e8-8c79-46e13a215c5b" alt=""><figcaption></figcaption></figure>


# Smart Facets

## :question:What It Can Do for You

&#x20; Smart Facets is a very useful feature of HERATCOUNT when you want to better understand the relationship between two variables by creating multiple facets with the selected facet variable. For example, if you want to create a bar chart about sales with respect to ship mode from the Superstore dataset and how it varies over the regions, all you have to do is select 'region' as facet variable in Smart Facets.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FaHvMG4jlyV0rIbzZ8nBg%2F20220828_172810_0000.png?alt=media&amp;token=8383bdf6-ea64-41e5-af83-7c97d5855079" alt=""><figcaption></figcaption></figure>

&#x20; So, what's the difference between Smart Plot's facet function and Smart Facets? In Smart Plot, categorical variables with less than 11 levels can be used as a facet variable for +++. On contrary, Smart Facets allows you to utilize any categorical variable with more than 11 levels.

## :page\_with\_curl: How to Use&#x20;

&#x20; As straightforwardly as it could be, to use Smart Facet, you just decide which variable in your dataset you would like to use as x,y variable, and then choose another variable to use as a facet variable, which follows typical visualization grammar just as the other menus of HEARTCOUNT do.

&#x20; Let's take a look at how it works in the Superstore dataset.

* Say you want to understand how the quantity of sales varies over product categories and how it changes over different regions. All you have to do is to just simply choose Category as a X-axis variable, Quantity as a Y-axis variable, and Region as Facet variable. Then, Smart Facets automatically create multiple bar charts, showing the relationship between Product Category and Quantity over different Region.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F3oiYo064WM97O2v0FAvO%2Fimage.png?alt=media&amp;token=5082e2ef-daa9-46ec-b96e-a7d189390a0b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Note that both categorical and numeric variables are allowed,

whereas only numeric variables are allowed for y-axis variable.
{% endhint %}

{% hint style="info" %}
Notice a small icon on the top-right for ordering the facet. Currently, facets are ordered in a way that reflects statistic order, which is +++
{% endhint %}

* &#x20;If you mouse over one of the bars, which is one of the product categories, it will show you how much is the average quantity(=height of the bar) for the category. Let's say how many furnitures were sold to each customer on the west on average. If you mouse over a blue bar on the West facet, it will show the mean quantity of furniture sold on the west.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fq8zn28pIFoq7JtxBp0Zf%2Fimage.png?alt=media&amp;token=ee489f5f-8e30-40cb-9ef6-864a3dcb8316" alt=""><figcaption></figcaption></figure>

* You may want to further investigate on the relationship between the quantity and the category over different states in the West. To do so, you have to use the record filter function first, which is on the of the page, where you can filter out all the other regions(Central, East, South). Then, choose State as a facet variable.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FcwoXWjc0Pztu9JPXAD6M%2Fimage.png?alt=media&amp;token=5d21170b-1b45-444e-8f9c-d94fe0fb61a2" alt=""><figcaption><p>Montana sold more than the other states on average, <br>and the quantity of furniture sold was the most on average among the product categories in the West.</p></figcaption></figure>

&#x20; &#x20;


# Smart Search

Smart Search empowers you with a visual exploration tool, letting you sift through similarities based on your search criteria.

## **1. What is Smart Search?**&#x20;

Smart Search allows you to compare similarities between specific records. Not only can you visualize the distribution of similarities based on your search conditions, but you can also quantify them with a numeric "similarity" score. The closer a record's similarity score aligns with your criteria, the nearer it will appear to the center in a concentric circle representation.

## **2. How to Use Smart Search**&#x20;

The image below showcases the Smart Search interface, displaying an entire staff clustered by their \[Business Location]. The search criteria are set to \[Performance Score: 77.1\~94.1] and \[Unused Vacation: 12.3\~31].&#x20;

By clicking on the individual points, you can access detailed data.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FlkK3IYdLnzGuaw5MM4Ct%2FScreenshot%202023-09-04%20at%206.09.03%20PM.png?alt=media&amp;token=52536218-8495-4f93-a8ee-a26bb3a8c6e2" alt=""><figcaption></figcaption></figure>

* **Search Criteria**: Choose the variables and their values to compute similarities. Click on the dropdown menu to select a variable, then either input its value directly or use the mouse to select a range.
* **Cluster**: Select the variable to cluster individual items based on their proximity. In the given example, staff members are clustered by \[Business Location], showcasing groups of employees working at the same location.
* **Color**: Differentiate items on the grid using a selected color variable. While the default color is set based on the clustering variable, as in the example, you have the freedom to choose another variable if desired.
* **Size**: This determines the relative size of individual items (points).
* **Filtering**: Use this to filter items on display by any variable. Click on the dropdown, choose your desired variable, and then define its range.

If you click on the `table view` icon located at the top right of the image below, you'll switch to a table format, revealing detailed information about each record.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fjs1BPwepMu9xfG4tSAy7%2FScreenshot%202023-09-04%20at%206.11.13%20PM.png?alt=media&amp;token=f9db20b0-2b76-4701-b9c1-6aece6041f38" alt=""><figcaption></figcaption></figure>

In the provided example, cells corresponding to \[Performance Score] and \[Unused Vacation] are highlighted based on the search criteria.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fet5uJOoyXbGVD8W4TyQR%2FScreenshot%202023-09-04%20at%206.15.27%20PM.png?alt=media&amp;token=46b33caa-7553-4710-90da-f698974efdee" alt=""><figcaption></figcaption></figure>

When you set multiple search criteria, records are primarily sorted based on their similarity score (0\~100%). The color intensity varies with the score - the closer a record aligns with the search criteria, the deeper its color. Conversely, records with low similarity scores are represented in lighter shades.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FF1NCA7EKcRTtV62ZKBs0%2F%5BSmart%20Search%5D%20table.gif?alt=media&amp;token=c807936f-6e10-4f22-b9e1-879ea7635516" alt=""><figcaption></figcaption></figure>

In essence, Smart Search offers a visually intuitive way to explore data distributions, colors, sizes, and more, ensuring you find the most relevant data points based on your criteria.


# Dashboard

Freely set key metrics and automatically find patterns in your data that aren't immediately obvious.

## 1. **What is Dashboard?**&#x20;

The dashboard allows you to view basic summary information about a campaign, such as the number of records (cells in Excel) and the average of KPIs set by the user.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FlZvWnv6dUDQhaheLA9uw%2Fimage.png?alt=media&amp;token=e99c1883-d544-4dad-a37e-ee3a0eb0c19f" alt=""><figcaption></figcaption></figure>

> 💡 The 'K' stands for 1,000.

## **2. KPI Filtering**&#x20;

Clicking on the ▼ button next to the KPI on the right side of the dashboard will display the KPI items you've set. By selecting individual items or bulk selecting and then clicking '`Apply`', the chosen variables will be reflected on the dashboard. You can also uncheck the checkbox to remove that KPI from the dashboard. Note that it's only removed from the dashboard, not from the KPIs. :) If you want to delete or modify a KPI, please use the KPIs Management menu.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FTXs37Hz6OhuInISV0cPl%2Fimage.png?alt=media&amp;token=1519fb3b-4b53-43db-980b-2bd35913a801" alt=""><figcaption></figcaption></figure>

## **3. KPI Distribution by Specific Variable**&#x20;

Select a specific variable and click on '`Analyze`' to view the distribution of the KPI for that variable in a [drill-down](https://public.heartcount.io/visual-discovery/drill-down) format.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FtW41huawUjIRZJG285Xx%2F%5BDashboard%5D%20KPI%20distribution.gif?alt=media&amp;token=75ad8518-03b4-436f-a5af-afac731757fc" alt=""><figcaption></figcaption></figure>

## **4. Detailed Analysis of KPI**&#x20;

Hovering over a KPI at the top of the dashboard will display a menu window. For numerical variables, this menu allows you to navigate to the detailed analysis page for that KPI ([Drill-Down](https://public.heartcount.io/visual-discovery/drill-down), [Driver Analysis](https://public.heartcount.io/advanced-analysis/driver-analysis), [Micro-Segmentation](https://public.heartcount.io/advanced-analysis/micro-segmentation), etc.). For categorical variables, the menu provides options to navigate to the Micro-Segmentation or Drill-Down. Click on the desired analysis icon to go to that analysis page.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FcakpQe4C5tro1SJ7jFhR%2FScreenshot%202023-09-04%20at%2010.35.26%20AM.png?alt=media&amp;token=16ea9980-749e-4772-a83a-1dd5edca5c3d" alt=""><figcaption></figcaption></figure>

## **5. SMART DISCOVERY**&#x20;

SMART DISCOVERY is a feature that automatically detects patterns for the set KPIs. The Smart Discovery function is available in both the dashboard and [drill-down](https://public.heartcount.io/visual-discovery/drill-down).

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FKBh9Ha6XjaMhkCilqo6J%2Fimage.png?alt=media&amp;token=519263c1-7548-4abc-91d3-b328479b6805" alt=""><figcaption></figcaption></figure>

It provides an overview of patterns and significant results applied to KPIs across all HEARTCOUNT features, such as Drill-Down, Driver Analysis, and Micro-Segmentation.&#x20;

* <mark style="color:blue;">**Drill-Down I**</mark> informs you of the <mark style="color:orange;">**variable**</mark> that most significantly impacts a specific KPI. By clicking on a KPI from the list at the bottom, you can quickly check the variable and value that indicates the highest value for each KPI.&#x20;
* <mark style="color:blue;">**Drill-Down II**</mark> tells you about the <mark style="color:orange;">**combination of variables**</mark> that most significantly impact a specific KPI. By clicking on a KPI from the list at the bottom, you can quickly identify the combination of two variables that contribute the most to each KPI.

<img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Ftt0rydOe6Bvx1BNJSBWg%2Fimage.png?alt=media&amp;token=d7dec989-2c8f-4953-bd7a-08d3bbc1a5f7" alt="" data-size="original">

Clicking on the `graph` icon to the right of the drill-down will display the distribution of that variable's KPI at the bottom of the dashboard in a drill-down format.


# Driver Analysis

Understand the factors that influence KPIs. Through the Driver Analysis feature, you can easily identify the crucial factors influencing the KPIs you want to explore.

## 1. **What is Driver Analysis?**&#x20;

{% hint style="info" %}
Driver Analysis is possible only for numerical KPIs. If you haven't registered a numerical KPI yet, go to KPIs Management and register one!&#x20;
{% endhint %}

There are times when we want to know which factors influence sales the most. By using the **Driver Analysis** feature, you can determine which factors have the most influence on user-defined KPIs, such as sales.&#x20;

Driver Analysis is a <mark style="color:orange;">regression analysis</mark> function that finds the most important factors (variables) for the chosen KPI.&#x20;

<details>

<summary>Learn more about HEARTCOUNT's regression analysis </summary>

Regression analysis is a data analysis method used in statistics to estimate and explain relationships between variables. By setting an influencing variable and an influenced variable (KPI), you can understand the relationship between the two.&#x20;

Analyzing the relationship between one variable and a KPI is called simple regression analysis, and when seeking to clarify the relationship between multiple variables and a KPI, it's called multiple regression analysis. In HEARTCOUNT, we use both simple and multiple regression analysis methods to present significant results in order of importance.&#x20;

👉 Click here to learn more about regression analysis

</details>

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FqHF0AL8extulGYP3Azyb%2FScreenshot%202023-09-04%20at%2011.50.47%20AM.png?alt=media&amp;token=14954ec9-3ee5-45b9-aa8e-2fa7875d2790" alt=""><figcaption></figcaption></figure>

## **2. How to Use Driver Analysis?**

Here's a basic description of the Driver Analysis interface.&#x20;

Each section of the interface has the following functionalities:

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fr3xUQkv09yHNfJilTNe9%2FScreenshot%202023-09-04%20at%2011.53.45%20AM.png?alt=media&amp;token=9b1fcf83-f265-4e97-ba9c-5d9b96034307" alt=""><figcaption></figcaption></figure>

1. **Filter**&#x20;

This has the same function as the dashboard filter. You can select or exclude desired variables to view Driver Analysis results. By clicking on the `Variables` tab to the right of the filter, you can include or exclude derived (automatically generated) variables for the analysis.&#x20;

Derived (automatically generated) variables are HEARTCOUNT's unique feature that auto-processes numerical variables into categories to discover non-linear patterns.&#x20;

Click here for a detailed explanation of this feature.

2. **Variable Selection & Auto-play**&#x20;

* **\[All]** allows you to see the results integrated from simple and multiple regression analysis. Simple regression can be viewed under **\[1 Variable]**, and the results of multiple regression analysis can be detailed under **\[2 Variables]**.&#x20;
* The factor analysis results explain the difference of the KPI in order of Adjusted $$R^2$$, showing which variable can explain how much (%) of the KPI's variance and the corresponding visualization.&#x20;

When you click the play ▶︎ button, a video like the one below will appear.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F8EGquWWi7V8Yh4yZh3Ml%2F%5BDriver%20Analysis%5D%20autoplay.gif?alt=media&amp;token=c5f4a2f0-116f-45e8-b0a2-6cfee6b25289" alt=""><figcaption></figcaption></figure>

3. $$R^2$$

$$R^2$$ represents the coefficient of determination, a statistic that reflects the **proportion of the variance in the dependent variable (KPI) that can be explained by the independent variable**. For example, if the selected KPI, \[Sales], is best explained by $$R^2$$ being 0.56 with the highest values from the variables \[Profit\_bin] and \[Sub-category], it means that 56% of the variance in \[Sales] can be explained by \[Profit\_bin] and \[Sub-category].

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FMlrWPq0IqUAPz0RXV6BF%2FScreenshot%202023-09-04%20at%2012.10.50%20PM.png?alt=media&amp;token=38f6cb6d-4415-487a-9124-93e98821690a" alt=""><figcaption></figcaption></figure>

4. **Adjusted** $$R^2$$&#x20;

Adjusted $$R^2$$ denotes the adjusted coefficient of determination, which modifies the $$R^2$$ value considering the number of records and variables used in the analysis. This metric **compensates for the inherent issue of the coefficient of determination increasing indiscriminately** with an increase in independent variables.&#x20;

{% hint style="info" %}
When using Driver Analysis with two variables, it's essential to interpret both the coefficient of determination and the adjusted coefficient of determination.
{% endhint %}

5. **P-Value**&#x20;

The P-Value indicates the probability that the analysis results occurred by chance. Typically, if the P-Value is **less than 0.05**, it's considered **"statistically significant."** Conversely, a P-Value exceeding 0.05 suggests a higher likelihood of randomness, and the relationship is deemed **"not statistically significant."**

6. **Records**

The number of records used in the analysis (excluding records with irrelevant values).

7. **Smart Link**&#x20;

Use the Smart Link to move to the [Drill-Down](https://public.heartcount.io/visual-discovery/drill-down) and [Explainer](https://public.heartcount.io/advanced-analysis/explainer) page for the specific variable.

8. **Visualization Screen & Control Window**&#x20;

The topmost result in Driver Analysis is visually displayed on the visualization screen. You can visually verify the results through scatter plots, bar graphs, etc. For a detailed description of the visualization screen, click [here](https://public.heartcount.io/visual-discovery/smart-plot), and for the control window, click here.


# Explainer

Understand the drivers influencing the KPI. With the Explainer feature, you can easily understand the Driver Analysis results for the chosen KPI in everyday language.

## 1. **What is Explainer?**&#x20;

The Explainer is a feature that describes the Driver Analysis results for a specific KPI in natural language, making it easier for users to understand. It removes complex statistical concepts, allowing users to quickly and easily understand the factors influencing the KPI through visualization.

{% hint style="info" %}
**Natural language** refers to the language humans use daily, contrasting with constructed languages created for specific intentions and purposes in fields like computing and mathematics.
{% endhint %}

## **2. Screen Composition & How to Use**

Here's a description of the basic screen composition of the Explainer.

Each section of the screen below has the following functionalities:

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FWVtiJHpr9XltxZberYRC%2FScreenshot%202023-09-04%20at%202.01.57%20PM.png?alt=media&amp;token=31b0f2df-ac4c-4917-a70b-aed27fde96c9" alt=""><figcaption></figcaption></figure>

#### (1) **Basic Usage**&#x20;

It lists the factors that have the most significant impact on the KPI.&#x20;

By clicking on the 🔁 icon, you can change the order of the variables. By pressing the right arrow (>), you can see the explanation for the next ranked factor. It describes in plain language the combination of conditions that are higher or lower than the average of the selected KPI.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FB70rgvUWMQkTmMfZgu0c%2F%5BExplainer%5D%20usage.gif?alt=media&amp;token=9901f3dd-f9b9-4d9c-8938-ab8c71ec383f" alt=""><figcaption></figcaption></figure>

#### (2) **Generate New Narrative**&#x20;

It provides an explanation from a **different perspective** regarding the given factors.&#x20;

For instance, even if the previously set KPI, \[Sales], indicated conditions that were above or below average, clicking the "`Generate New Narrative`" button will show the combination of conditions that contributed the most or least to the total \[Sales].

&#x20;    ![](https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FxSOHfL59meNuk9aL7izj%2FScreenshot%202023-09-04%20at%202.12.28%20PM.png?alt=media\&token=324a030a-eef3-4d2c-ad08-7a1dc7ac8a7e)       <img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FH6rYJvarGVQvjTBk2f0o%2FScreenshot%202023-09-04%20at%202.15.03%20PM.png?alt=media&amp;token=5341fa1a-cac1-4dec-bd8a-daec29261315" alt="" data-size="original">

#### (3) **Change Visualization**&#x20;

Clicking the "`Change Visualization`" button will display a different type of graph in the bottom right visualization window.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FHFZNWgY0rDEMTaQW3lTZ%2F%5BExplainer%5D%20Change%20visualization.gif?alt=media&amp;token=6926bf6d-d985-4e80-a017-85cc8354756d" alt=""><figcaption></figcaption></figure>

#### (4) **Visualization Window**&#x20;

This feature visualizes the driver analysis results on the left in the form of graphs. The darker the color (blue), the higher the explanatory power for the KPI, and the lighter the color (yellow), the lower the explanatory power.&#x20;

By clicking on the graph, you can check the analysis results for the corresponding factor through the description on the left.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FImq0gCEr84VNyd7QFUCv%2F%5BExplainer%5D%20visualization.gif?alt=media&amp;token=34ab9e92-aa16-4409-a7bc-a85452ffdbfc" alt=""><figcaption></figcaption></figure>


# Difference Analysis

Understand the differences in characteristics between two groups. The Difference Analysis feature allows you to discern the statistical differences between any two groups.

## 1. **What is Difference Analysis?**&#x20;

Every company experiences a scenario where one group performs exceptionally while another doesn't.&#x20;

**😁 Wouldn't it be great if you could automatically identify the factors causing these differences?**

HEARTCOUNT offers a Difference Analysis feature that can be utilized when you're curious about the statistical differences between any two groups. Through this process of understanding the differences between the two groups, you can pinpoint which variables require attention and which need improvement.

## **2. Setting up Difference Analysis**

1. Click on the `+` icons on both the left and right to set up two arbitrary groups (Group A and Group B) whose statistical characteristics you wish to compare. (The example at the top compares conditions between 'Group A\_with lower profits' and 'Group B\_with higher profits').&#x20;
2. Click the '`compare`' button on the top right.&#x20;
3. Variables showing the **most significant statistical differences between the two groups** set in the analysis conditions are displayed in descending order.&#x20;
4. If you want to specify the groups in more detail, click on the `+` icon to add specific variables using the AND condition for comparison.&#x20;

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FjwjmsRe0rqqnm6uFTQiF%2F%5BDifference%20Analysis%5D%20Setting.gif?alt=media&amp;token=3b7f6d9a-0d4a-482f-8ea7-48337d093b3f" alt=""><figcaption></figcaption></figure>

> *\*Refer to the screen below:* <mark style="color:blue;">**Group A\_**</mark>with lower profits and located in Arizona, California, and Georgia vs. <mark style="color:red;">**Group B**</mark><mark style="color:red;">\_</mark>with higher profits and located in New York, North Carolina, Ohio, and Oregon.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2F48jLIClHByQoEo3xlKkP%2F%5BDifference%20Analysis%5D%20AND.gif?alt=media&amp;token=88997baf-d16a-480b-ae5a-7e2f8aac4e4a" alt=""><figcaption></figcaption></figure>

## **3. Overall Explanation of Difference Analysis**

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Fo913IwnVn8xL1v685ugO%2FScreenshot%202023-09-04%20at%202.53.16%20PM.png?alt=media&amp;token=69cd5f95-126f-41c3-a581-15b063791428" alt=""><figcaption></figcaption></figure>

1. **Variable Name**: The name of the variable explaining the differences between the two groups and the statistical difference are shown in percentages. In the illustration above, the second variable, 'Profit', with a value of 72.41%, means that when comparing the 'Profit' distribution between the two groups, if the entire distribution area is considered 100, then the **non-overlapping distribution area** is 72.41%. Put differently, *the larger this number, the better it represents the statistical difference between the two groups*.&#x20;
2. **Chart**: This visually represents the statistical differences between the two groups. Group B (Profit=0\~2.2K) indicates a higher profit group than Group A (Profit=2.3K\~22.6K).&#x20;
3. **Statistical Characteristics of Group A/B**: This displays the variable value (range) where a specific group has a relatively higher ratio than the other group. \
   *\*In the example screen above, the 'Profit' in the 484.9\~3919.99 range shows the 'higher profit group' exists at a higher ratio than the 'lower profit group'.*


# Micro-Segmentation

Discover patterns to optimize KPI With the Micro-Segmentation feature, you can discover actionable rules to optimize any KPI. The KPI mentioned here refers to the target variable of the analysis. Thus

## 1. **What is** Micro-Segmentatio&#x6E;**?**&#x20;

Professionals always ponder about optimizing their tasks. Imagine a marketing executive in a company who, during a campaign, identifies rules to segregate groups that are likely to respond enthusiastically and those that won't. Such insights would allow the company to efficiently target the potential group.&#x20;

Wouldn't it be wonderful if one could **automatically identify ways to optimize desired goals?**&#x20;

HEARTCOUNT provides <mark style="color:orange;">Micro-Segmentation feature</mark>, which discovers rules to optimize KPIs automatically, recommending conditions for optimal execution. This feature leverages the *decision tree algorithm*, a prominent machine learning technique used to classify two different groups.

<details>

<summary><em><strong>What is a Decision Tree?</strong></em> </summary>

A decision tree algorithm designs models to classify distinct groups. Simply put, it delineates spaces to **group similar entities together.** The significance of this algorithm is that it formulates **optimal classification rules** using as few variables as possible, considering real-world datasets often comprise numerous variables.

* *Want to know more about Decision Trees? (Click)*

</details>

## **2. Utilizing Micro-Segmentation**

The example below illustrates the process of automatically discovering rules to optimize profits in a discount mart. Let's explore how to find optimization rules for a particular KPI using Micro-Segmentation.

### (1) **Finding Optimal Rules**&#x20;

Begin by selecting the variable you wish to optimize (e.g., \[Profit]). Clicking the '`analyze`' button on the top right will automatically suggest rules to classify the **top 20%** and **bottom 20%** in the table.&#x20;

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FA6UmAxz1bd5q6qWEAVd0%2FScreenshot%202023-09-04%20at%203.45.36%20PM.png?alt=media&amp;token=a6ee1c28-99c9-4906-842f-437359331f37" alt=""><figcaption></figcaption></figure>

💡 Micro-segmentation provides 'optimization rules' for **numeric target variables** by automatically segregating them into top/bottom groups. For **categorical variables**, classification rules are offered, which can be set as follows.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FbamA1xCwYfDgMgIVFywc%2F%5BMicroSegmentation%5D%20select%20variables.gif?alt=media&amp;token=1aa0b9ea-92f2-46bd-8a56-46a19f0a703e" alt=""><figcaption></figcaption></figure>

#### **(Optional)**

At its core, micro-segmentation aims to differentiate between two distinct target groups and establish a set of 'rules' for their classification. While we provide a default split of the top 20% and bottom 20% groups, users have the flexibility to define their own target groups. Simply use the `cogwheel ⚙️` icon to **adjust the range for the groups you're interested in.** You can easily slide the range with your mouse or input specific values.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FIwgABBoOYKaoDIpv51xE%2F%5BMicroSegmentation%5D%20optional.gif?alt=media&amp;token=35a47b38-f1d3-4e24-b17f-678045874578" alt=""><figcaption></figcaption></figure>

#### **Dive Deep into the Table Details**&#x20;

Each entry in our table comes with its unique information. As a quick guide, entries are ranked in descending order based on their target ratio.&#x20;

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FyywDPSzf1VVncLCpIyo4%2FScreenshot%202023-09-04%20at%203.53.51%20PM.png?alt=media&amp;token=592089d5-474b-40ad-a0e6-4a6b35f90edd" alt=""><figcaption></figcaption></figure>

Let's break them down:

1. **Purity**: Represents the proportion of a specific target group within a larger segment, giving insights into the accuracy of a classification rule. For instance, consider how the subgroup with 'less than 12% discount rate and in the top 20% profit' fits into the broader group having 'a discount rate less than 12%.'
2. **Target Ratio**: It's the proportion of segments that adhere to a particular classification rule within the main target group. For example, think of how the segment with 'a discount rate less than 12%' compares to the larger segment 'in the top 20% of profits.'
3. **Average KPI Difference**: This metric shows the gap between the average value of a specific segment and the overall target variable.
4. &#x20;**Smart Search (▽)**: Want more detailed insights? Click on the ▽ next to each row. This action will lead you to our 'Smart Search' feature, allowing you to dive deeper into individual data records for each rule. \
   👉 Intrigued by Smart Search? Give it a click!

#### **A Glimpse into the Predictive Model's Summary**&#x20;

For a concise overview, click on the downward arrow (∨) highlighted in a red box in the provided visual.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FiHW1tIFSkY7UsYMHB1oN%2FScreenshot%202023-09-04%20at%205.02.34%20PM.png?alt=media&amp;token=43e713ba-6711-4d77-9738-660402560f22" alt=""><figcaption></figcaption></figure>

This summary gives you insights into either the default target groups or any custom ones you've crafted.&#x20;

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FAcwPOIS9A4ZJVFWMIhD2%2FScreenshot%202023-09-04%20at%205.04.57%20PM.png?alt=media&amp;token=78dae605-acac-4978-ba22-33a81bead073" alt=""><figcaption></figcaption></figure>

> 🚨 It's crucial to note that the summary's target ratio varies from the individual segments mentioned previously. \
> \
> Although the overall target remains constant, individual segment targets might differ. In this summary, we amalgamate all the derived rule segments and then divide by the total target. To illustrate, if the top 20% profit group stands at a size of 1.64k, and the total derived segments sum up to 1.53k, it signifies that an impressive 93.6% of the top 20% profit group aligns with significant classification rules.

### (2) **Visualization Graphs**&#x20;

Users can understand the provided rules more intuitively through visualized graphs. The image below showcases the visualization of the rule at the top of the table, which is based on the **'Profit Optimization'** criterion. It specifically highlights the rule where <mark style="color:blue;">Sales is more or equal to 86.19,</mark> <mark style="color:orange;">the discount rate is less than 0.12,</mark> <mark style="color:green;">State is Alabama, Arkansas, and so on.</mark>

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FSKkSpOEcKJGZyVOaOH2d%2FScreenshot%202023-09-04%20at%205.05.23%20PM.png?alt=media&amp;token=c4a4bd85-b6aa-474e-92d5-674ae24e88b5" alt=""><figcaption></figcaption></figure>

1. **Class**: Records classified under the condition of `State = [Alabama, Arkansas, ..., Wyoming]`, `86.19 <= Sales`, `Discount Rate < 0.12` predominantly belong to the Top 20% Profit group.
2. **Size**: The number of records satisfying the condition (1,449 records).
3. **Purity**: Among the segment size of 1,449, 1,427 (98.48%) belong to the Top 20% Profit group. A higher purity signifies greater reliability in the analysis outcome. In essence, it's a metric indicating the precision of the classification rule.
4. **Target Ratio**: Out of the total records in the Top 20% Profit group (2,000), 1,427 (71.35%) fall under this segment.
5. **Average KPI Difference**: The difference between the average KPI of the records within this segment and the overall average KPI.
6. **Segment Classification Rule**: Detailed representation of the classification rule presented in the first table in the image above.
7. **Visualization Graph**: A graphical representation of the derived profit optimization condition, with the blue region highlighting the classification rule's domain.
8. **Decision Tree**: Clicking the icon displays the classification rules in a tree structure.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FIg1i14tNTdlBxQPZU3vG%2F%5BMicroSegment%5D%20DecisionTree.gif?alt=media&amp;token=7f994cb8-5c7a-49ed-9f08-cc29b10be148" alt=""><figcaption></figcaption></figure>

### (3) **Exporting as a File**&#x20;

* Clicking on `SQL` will allow users to view the prediction model as a query.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2Ff5BI7AAKs3PDwEJtyQcP%2FScreenshot%202023-09-04%20at%205.12.09%20PM.png?alt=media&amp;token=764ca6cc-7dd3-467b-9be9-8779b242296d" alt=""><figcaption></figcaption></figure>

* Clicking the table icon will save the prediction model as a CSV or XLSX file.

<figure><img src="https://1130022100-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmGL0fwQrDEm9mSq6FQN%2Fuploads%2FGNiDUtNrUHIEOXCTjE2q%2FScreenshot%202023-09-04%20at%205.12.21%20PM.png?alt=media&amp;token=c50d9e61-38c1-4e93-baa5-2e6a395abb59" alt=""><figcaption></figcaption></figure>


