Comments (4)
If I understand correctly, you are asking how the naive effect formula is derived.
The naive formula is simply the observational estimate: if the question is what is the effect of recommendations on clicks-through to a page P, we can simply count all the visits to page P that came through recommendations (is_rec_visit) and then divide by the total number of visits to that page P.
More details: To derive the formula, note that the naive effect corresponds to P(Click|Recommendation=True). This can be approximated by simply estimating the fraction: when Recommendation is True (recommendations are shown), count the number of events where a page was accessed via a recommendation, and when it was accessed directly.
Total number of visits to a page (T): length(is_rec_visit) or [length of any other column grouped by the page]
Accessed via a recommendation (Clicked on recommendation) (C): sum(is_rec_visit==1)
Accessed directly (D): length(is_rec_visit) - sum(is_rec_visit==1)
Hence, P(Clicked on recommendation| Recommendation=True) = C/T
Hope this helps @luoruisichuan
from causal-inference-tutorial.
thanks for your help very much!
if I assume that "Accessed directly (D)" is constant, may I use following formula to estimate the naive effect?
P(Clicked on recommendation| Recommendation=True) = C/D=C/(T-C)
thanks for your help very much!
from causal-inference-tutorial.
That may not work, since it is not necessary that accessed directly (D) is always higher than C. For some new products, it is possible that C>D and the probability will >1.
But I see what you are saying. An alternative way is to compute the fraction of shown recommendations that got clicked. So if you have the number of times a recommendation was shown (S), you can compute naive effect as C/S where C is the number of clicks on those recommendations.
from causal-inference-tutorial.
thanks for your help very much.
from causal-inference-tutorial.
Related Issues (9)
- Video Link in README not working HOT 5
- PowerPoints Not Opening HOT 2
- Conditioning for confounders
- stratification equation for estimation is not used explicitly
- Link is not working again, requires signing in :eyes: HOT 1
- Can you make the video publicly accessible? HOT 4
- Relation between estimand and propensity score matching
- Cannot access the tutorial ...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from causal-inference-tutorial.