156 search results for "heatmap"

Quantitative Finance applications in R – 8

August 12, 2014
By
Quantitative Finance applications in R – 8

The latest in a series by Daniel Hanson Introduction Correlations between holdings in a portfolio are of course a key component in financial risk management. Borrowing a tool common in fields such as bioinformatics and genetics, we will look at how to use heat maps in R for visualizing correlations among financial returns, and examine behavior in both a...

Read more »

Customer Segmentation Using Purchase History: Another Example of Matrix Factorization

August 2, 2014
By
Customer Segmentation Using Purchase History: Another Example of Matrix Factorization

As promised in my last post, I am following up with another example of how to perform market segmentations with nonnegative matrix factorization. Included with the R package bayesm is a dataset called Scotch containing the purchase history for 21 brands of whiskey over a one year time period from 2218 respondents. The brands along with some features...

Read more »

Variable Selection in Market Segmentation: Clustering or Biclustering?

July 29, 2014
By
Variable Selection in Market Segmentation: Clustering or Biclustering?

Will you have that segmentation with one or two modes?The data matrix for market segmentation comes to us with two modes, the rows are consumers and the columns are variables. Clustering uses all the columns to transform the two-mode data matrix (row a...

Read more »

Uncovering the Preferences Shaping Consumer Data: Matrix Factorization

July 23, 2014
By
Uncovering the Preferences Shaping Consumer Data: Matrix Factorization

How do you limit your search when looking for a hotel? Those trying to save money begin with price. Members of hotel reward programs focus on their brand. At other times, location is first to narrow our consideration set. What does hotel search re...

Read more »

Why hadn’t I written a function for that?

July 16, 2014
By
Why hadn’t I written a function for that?

I’m often typing the same bits of code over and over. Those bits of code really should be made into functions. For example, I’m still using base graphics. (ggplot2 is on my “to do” list, really!) Often some things will be drawn with a slight overlap of the border of the plotting region. And in

Read more »

Taking Inventory: Analyzing Data When Most Answer No, Never, or None

July 15, 2014
By
Taking Inventory: Analyzing Data When Most Answer No, Never, or None

Consumer inventories, as the name implies, are tallies of things that consumers buy, use or do. Product inventories, for example, present consumers with rather long lists of all the offerings in a category and ask which or how many or how often they bu...

Read more »

How Much Can We Learn from Top Rankings using Nonnegative Matrix Factorization?

July 10, 2014
By
How Much Can We Learn from Top Rankings using Nonnegative Matrix Factorization?

Purchases are choices from available alternatives. Post-purchase, we know what is the most preferred, but all the other options score the same. Regardless of differences in appeal, all the remaining items received the same score of not chosen. A second...

Read more »

What are the names of the school principals in Mexico?, If your name is Maria, probably this post will interest you. Trends and cool plots from the national education census of Mexico in 2013

What are the names of the school principals in Mexico?, If your name is Maria, probably this post will interest you. Trends and cool plots from the national education census of Mexico in 2013

I will start this post with a disclaimer:The main intention of the post is to show how is the distribution of the school principal names in Mexico, for example, to show basic trends regarding about what is the most common nation-wide first name and so ...

Read more »

Identifying Pathways in the Consumer Decision Journey: Nonnegative Matrix Factorization

June 13, 2014
By
Identifying Pathways in the Consumer Decision Journey: Nonnegative Matrix Factorization

The Internet has freed us from the shackles of the yellow page directory, the trip to the nearby store to learn what is available, and the forced choice among a limited set of alternatives. The consumer is in control of their purchase journey and can t...

Read more »

The luckiest team in the NBA

June 8, 2014
By
The luckiest team in the NBA

While the NBA finals are in full swing and the two best teams are battling it out for the ultimate prize, another 28 are now in summer vacation. In order to achieve their goal of still playing this time next year, teams often look to improve their roster through trades, player development, and most importantly, the

Read more »