More Related Content
Similar to Ai for marketing
Similar to Ai for marketing (20)
More from Hiroki Iida (16)
Ai for marketing
- 5. 目次
• 第1部(マーケティングとAI)
• Algorithmic Marketingの対象範囲
• 検索システムとレコメンドシステムの目的の違い
• 検索システムの環境・概要
• 検索アルゴリズムの概要
• レコメンドシステムの環境・概要
• レコメンドアルゴリズムの概要
• 第2部(速習! 検索・レコメンドエンジン)
• 検索のアルゴリズム紹介
• 検索エンジンのチューニング
• レコメンドのアルゴリズム紹介
• レコメンドエンジンのチューニング
© 2017 Retrieva, Inc. 5
- 7. マーケティング活動の類型
• 4P(Price, Promotion, Price, Place)
• 企業がコントロールすべき点を類型化したモデル
• どの一つをとっても、分野としては広い
• Strategy and Process
• Stragegy:長期で、トップレベルのビジネス決定。ターゲットやプロ
ダクトラインなど。説明・分析・プランニングの側面が強い
• Process:戦略の実行。プロモーションをかける顧客の選択や、時間
経過による価格の変化など。継続的に発生する。実施・現場判断・自
動化の側面が強い
• algorithmic marketingでは、Processの方に強みがある
© 2017 Retrieva, Inc. 7
- 10. 実装
1. Data:全てはデータに基づくため必須
2. Features:各モデルに必要な前処理を
行う
3. Models:最適化のための指標を算出す
るモデルをいくつか構築する
4. Signals:Modelから算出された値。最
適化にしようする
5. Optimization:制約条件とSignalからの
変数を元に最適化
6. Controls:最適化結果を実行
7. Measurement:計測結果を受けて、
Modelの調整や再度最適化を計算する
© 2017 Retrieva, Inc. 10
Introduction to Algorithmic Marketingより
- 11. 余談1
© 2017 Retrieva, Inc. 11
これらは、経営戦略で決める範囲と
アルゴリズムでできる範囲に線引きが
あり本書にはこれが記載されていたの
で、深掘りして観ると面白いかも
Introduction to Algorithmic Marketingより
- 14. 検索・レコメンドシステムの位置付け
• 全体像
© 2017 Retrieva, Inc. 14
目的は、メッセージを顧客に伝え、提
供したものとマッチングを図ること
目的は、ある顧客が対して最適な商品
を見つけられるようにすること
目的は、商品セットの組み方や価格を
最適化すること
Introduction to Algorithmic Marketingより
- 24. 基本的な方法
• 出現する/しないでは、単語の重要度などが表現できない
• そこで、tf-idfで測る
• term frequency(tf(t,d)):1文書(d)中に出現する単語tの個数
• そのまま使うと変化の度合いが強いので、例えば𝑡𝑓 𝑡, 𝑑 = 𝑛(𝑡, 𝑑)を使う
• document frequency(df(t)):ある単語tが全文書中に何個出現したか
• inverce document frequency(idf(t)):dfの逆数
• そのまま使うと変化の度合いが強いので、例えば𝑖𝑑𝑓 𝑡 = 1 + ln
𝑁
𝑑𝑓 𝑡 +1
を使う
• tf-idf:tfとidfの掛け算
• tf-idfを使うと内積は以下のようになる
• 𝒒 ⋅ 𝒅 = Σ 𝑡 𝑖𝑛 𝑞 𝑡𝑓 𝑡, 𝑑 ⋅ 𝑖𝑑𝑓 𝑡 ⋅ 𝑡𝑓 𝑡, 𝑞 ⋅ 𝑖𝑑𝑓(𝑡)
© 2017 Retrieva, Inc. 24
- 27. レコメンドシステムの全体像
• 検索と同様に顧客の求めるアイテムを返
す
• 基本的には、検索システムと類似
• レコメンドシステムでは、以下の3つの
類似度を使用する
• ユーザ類似度:過去の評価値などから算出。
「他の人はこれ買ってます」など。
• アイテム類似度:検索と同様に過去の購入
アイテムと類似した製品を推薦する(クエ
リではなくアイテム間の類似度を使用する
のが検索との違い)
• コンテキスト類似度:季節・場所・流入
チャネルを考慮して推薦する
© 2017 Retrieva, Inc. 27
Introduction to Algorithmic Marketingより
- 32. レコメンドの種類
© 2017 Retrieva, Inc. 32
パーソナライズする パーソナライズしない
コンテキストを使う • 近くのレストランはこれです • 他の人は一緒にこれも買ってます
• あなたの地域ではこのアイテムが
トレンドです。
コンテキストを使わない • あなたはこれもお好きでは?
• あなたの商品閲覧履歴だと、こ
の商品がオススメです
• 新商品です
• 今のトレンドアイテムはこれです
- 34. 概要
• その他:多目的化
© 2017 Retrieva, Inc. 34
パーソナライズする パーソナライズしない
コンテキストを使う • コンテキストを使わない手法に以下3つを組み合わせる
1. Pre-Filtering
2. Post-Filetering
3. モデリング
コンテキストを使わない • 協調フィルタリング
• コンテンツベースレコメンド
• 両者の組み合わせ
• 類似度計算
• トレンド計算
• 頻度計算
• アソシエーション
- 35. コンテンツベースフィルタリング概要
• 評価がついていないアイテムの評価をユーザが行った他のアイテム
の評価値から予測し、評価値の高いものをレコメンドする方法
• シンプル版
• 一番近いitemの評価値を使用
(Nearest Neighbor)
• 複雑版
• ユーザの評価値を予測する問題
• 分類や回帰
© 2017 Retrieva, Inc. 35
lies mainly on the catalog data (content) and uses only a small fraction
of the information available in the rating matrix. This is the reason
why this group of methods is referred to as content filtering. The main
idea of content filtering is quite straightforward: take items that the
user positively rated in the past and recommend other items similar to
these examples, as shown in Figure 5.6. The important constraint, how-
ever, is that the measure of similarity is based on the item content 1 and
does not include behavioral data, such as information about items that
are frequently purchased or rated together by other users. This effec-
tively means that a content-based recommender system uses only one
row of the rating matrix – the profile of the user for whom the recom-
mendations are prepared. This limited usage of the rating information
is typically counterbalanced by a similarity function that uses a wide
range of carefully engineered item features. The recommendations are
then ranked according to their similarity scores and, optionally, the
rating values of corresponding items in the profile. For example, as-
suming that item 1 has the highest rating in the example shown in
Figure 5.6, that is, ru 1 ru 2 and ru 1 ru 3, a candidate item similar
to item 1 can be ranked higher than candidate items equally similar to
items 2 or 3.
Figure 5.6: Similarity-based approach to content filtering.
The above approach to content filtering is, however, somewhat lim-
ited because it inherently relies on a nearest neighbor model for rating
1 See Chapter 4 for a detailed discussion of such measures. One of the most common exam-
ples would be the TF IDF distance between textual descriptions discussed in Section 4.3.5.
Introduction to Algorithmic Marketingより
Introduction to Algorithmic Marketingより
- 37. 比較
協調フィルタリング 内容ベース
意外性 O X
ドメイン知識
の必要性
O(不要) X(必要)
初期精度 X(ユーザの評価が必要) △(少数でも可能)
必要利用者数 X(多数必要) O
被覆率 X(評価がないアイテムを出せない) O
類似アイテム X(似たアイテムが出るわけではない) O
少数利用者 X(利用者が少ない製品は出てこない) O(利用者数が少なくても良い)
© 2017 Retrieva, Inc. 37
- 38. 検索・レコメンドのまとめ
• 共通事項
• 顧客が求めるアイテムをUIに返す
• 類似度の計算に難しさがある
• アルゴリズム以外にも複雑なデータフローやコンテンツ管理が必要
• 個別事項
• 検索
• 主にクエリに対する類似度を計算
• レコメンド
• ユーザ同士の類似度、アイテム同士の類似度を計算
• 使う情報によって、レコメンドの種類が異なる
© 2017 Retrieva, Inc. 38
- 42. 適合率と再現率の関係
• 適合率と再現率はトレードオフになる傾向がある
© 2018, Retrieva, Inc. All rights reserved. 42
4.2 busi n ess obj ect i ves 187
Figure 4.3: Precision–recall trade-off.
calculate the precision and recall at each point, and plot a precision–
Introduction to Algorithmic Marketingより
• 縞々部分が関連商品
• 赤枠が検索結果
- 43. (参考)検索の単一指標
• Mean Average Precision(MAP)
• Cumurative Gain(CG)
• Discouted Cumurative Gain(DCG)
• Normalized Discouted Cumurative Gain(DCG)
© 2017 Retrieva, Inc. 43
- 45. UXおよびCS
• Conversion Rate
• Click-Though Rate
• Time on A Product Detail Page
• Query Modification Rate
• Paging Rate
• Retention Rate
• Search Latency
© 2017 Retrieva, Inc. 45