1 Star 2 Fork 0

bigear2021/causal-inference

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

因果分析与AB实验

一.分析目标

  1. 评估短期影响:短时间内指标是否提升/降低。
  2. 评估长期影响:利用短期指标,预测长期指标,形成综合分指标模型(逻辑回归)。
  3. ROI最大化(用户异质性):是否存在部分人群既不影响体验,又能提升收入,且不需要投入大量成本。

二.潜在因果框架

  • Unit:基本分析对象,可以是一个公司,一个患者,一个个人等等,习惯称呼为其样本。
  • Treatment:对分析对象Unit可执行的策略,例如某个患者可以采用的治疗方案A和B,A和B都是策略。
  • Outcome:顾名思义,试验结果,但是在潜在因果框架下,需要细分一下不同的结果。
  • Potential outcome:潜在结果,对于任何一个样本,任何一个策略都存在一个潜在结果。
  • Observed outcome:观测结果,即可观测到的结果,也称为真实结果,是潜在结果的一种实际表现。
  • Counterfactual outcome:反事实结果,对于一个样本来说,除了它真正被实施的策略以外,所有其他策略的潜在结果都是反事情结果;反事实结果也是潜在结果的一种,可以简单理解为潜在结果=可观测结果+反事实结果。
  • 策略前特征pre-treatment variables:不受策略所影响的特征成为策略前特征,这个比较好理解,比如人的年龄,性别等等;也称为环境变量.
  • 策略后特征post-treatment variables:与策略前特征相对应,策略后特征就是受策略影响的特征变量,举个例子就是患者服药之后的身体理化特征。
  • 策略效果Treatment Effect :
序号 层次 名称 说明
1 整体层次 平均策略效果(Average Treatment Effect,ATE) ATE=E[Y(W=1)-Y(W=0)]。
其中,Y(W=1)和Y(W=0)和分别代表整个群体的策略潜在结果和对照潜在结果。注意:这里不是我们AB实验中实验组与对照组的差值,而是整体群体,每一个个体都有两种潜在结果,进行相减求期望。
2 某策略组层次 策略组的平均策略效果(Average Treatment effect on the Treated group,ATT) ATT=E[Y(W=1)|W=1]-E[Y(W=0)|W=1]。
其中,Y(W=1)|W=1] 和Y(W=0)|W=1分别代表在策略组样本上的Y(*)|W=1的策略潜在结果和对照潜在结果。这里Y(W=1)|W=1]是可观测结果。
3 某子群层次 条件平均效果(Conditional Average Treatment Effect,CATE) CATE=E[Y(W=1)|X=x]-E[Y(W=0)|X=x]。
其代表在特定条件下X=x的集合的策略效果,有时也称为分层实验效果。
4 个体层次 个体策略效果(Individual Treatment Effect,ITE) ITEi=Yi(W=1)-Yi(W=0)。
当结果Y没有上标的时候,就代表潜在结果,个体水平也可以看成是子群层次的特例,毕竟个体水平也是整体的一个子集。
  • 三个假设:
  • 假设1:Stable Unit Treatment Value Assumption (SUTVA) ,样本-策略值稳定性假设,其包含两层含义:
  1. 任意个体的潜在结果不受其他个体接受的策略所影响,即个体之间是独立的;
  2. 对于每个样本,某个策略没有不同形式或版本来导致不同的潜在结果。
  • 假设2:Ignorability,可忽略性,给定环境变量后,策略分配与策略会产生的潜在结果是独立的,不能根据策略产生潜在结果的好坏来选择策略,策略的分配也不会影响到潜在的结果分布。

  • 举个反例:比如推荐系统,经过预测点击率来选择素材曝光就不满足这个假设。这个假设也被称为无混杂假设,对于同样背景的样本,策略分配是完全随机的。

  • 假设3:Positivity,正向假设,对于任何一个个体,任何策略都可能被分配到。

三.常用方法

序号 名称 基础假设 计算流程 适用条件 优点 缺点
1 随机饱和度实验(Randomized Saturation Design) 以簇为实验对象,每一簇实验对象分布均匀,簇与簇之间相互独立,不同的簇适宜不同的处理比例(饱和度)。假设实验饱和度和处理效应是线性关系,通过线性模型可以量化实验效果。 1.确定场景中独立同分布簇的存在形式,例如地区/时间片等;2.确定实验需要以及可支持的饱和度集合,并随机给簇分配饱和度;3.按簇被分配的饱和度随机给簇中的实验对象分配处理。 网络效应:分流对象之间相互干扰。 能够测量溢出效应的大小,实验饱和度对于处理效应和溢出效应的影响。 有些情况难以找出相互独立且分布均匀的簇,难以满足线性假设。
2 Switchback实验 基于一些不受网络效应干扰的特征对样本进行切分,然后把切分的结果按照某种方式分配给实验组和对照组。实验组和对照组会在某一个特征上来回切换,以达到在没有策略时,实验组/对照组的表现在统计上无差异(A/A实验通过)。 1.寻找跨片率足够低的划分方式(统计/谱聚类);2.在不同的时空切片切换实验。 网络效应:产品策略会对匹配效率产生影响。 排除网络效应干扰。 如果历史上用户间的联系和未来(实验期)用户间的联系相关性非常低,则不能使用。
3 双边实验 B端(供给端)和C端(消费端)存在相互作用 2*2列联表 比较简单的组间溢出场景 同时检测两端的效果。检测组间溢出和干扰。帮助归因。 只能描述比较简单的组间溢出场景,不能解决个体和个体之间存在干扰。无法在用户间进行分流。
4 多基线实验 单案实验:每个实验对象既是控制组也是实验组,只翻转1次实验组和对照组。 1.通过模拟和背景研究,估算实验所需对象数量以及重复测度次数和可以用于接受处理的时间窗口;2.随机确定每个实验对象接受处理的时间;3.通过假设检验确定显著性。 既不能分流,也不能轮转 需要样本量小 实验效能容易受影响
5 CUPED(Controlled-experiment Using Pre-Experiment Data) 实验前核心指标的方差是已知的,且和实验本身无关,因此合理的移除指标本身的方差不会影响估计效果。通过实验前数据对实验核心指标进行修正,在保证无偏的情况下,得到方差更低, 更敏感的新指标,再对新指标进行统计检验(p值) stratifiaction:适用与离散指标。即分组算指标。如果已知实验核心指标的方差很大,那么可以把样本分成K组,然后分组估计指标。这样分组估计的指标只保留了组内方差,从而剔除了组间方差。covariate:适用于连续变量。需要寻找和实验核心指标(Y)存在高相关性的另一连续特征(X),然后用该特征调整实验后的核心指标。X和Y相关性越高方差下降幅度越大。因此往往可以直接选择实验前的核心指标作为特征。 实验效果不显著,样本量与实验时间又不能增加。 降低指标方差与需要样本量,提高灵敏度。 实验中的用户在实验前不一定都能找到对应数据。
6 倾向评分匹配(propensity score matching,PSM) 匹配:假如某个体在处理组,为了找到对照,找至少一个其他各方面与该个体尽量相似但出于控制组的个体,这样两者就有可比性。倾向得分:一个个体进入处理组的概率,为什么要引入这个概念?因为如果针对多个可观察特征X进行对比匹配非常困难,所以,可将多维协变量X用一个一维变量——倾向得分P(x)来代替,这样,研究者就只需要对单一的倾向得分变量进行匹配,从而大大减少了匹配的困难。 1.选择合适的协变量集(特征选择);2.确定选择性的存在;3.计算倾向值(LR求概率);4.进行匹配:最邻近匹配/半径匹配/核匹配;5.平衡性检验 样本量尽量大,处理组与控制组的倾向得分有较大共同取值范围。 消除组别之间的干扰因素,降低方差,提高灵敏度。 只能缓解由可观测变量带来的内生性问题,无法处理最为关键的由不可观测变量带来的内生性问题。PSM 会系统排除缺乏对照组的样本,进而使得样本代表性变差,影响结果的外部有效性。
7 随机区组设计 实验前对象就存在差异(高频/低频用户),可以分层实验。 先将实验单元根据这些影响分成若干同质的区组,然后分别在这些区组进行相同比例的随机分流,再将分流后的多个实验组/对照组组合进行方差分析。 实验对象在某个因素上的结构差异可能会影响结果,且这种因素可以控制。 提高实验灵敏度:减小方差,节约样本量。 区组与区组之间可能不是完全独立的,比如用户活跃度和用户生命周期强相关。
8 依从者平均因果作用(complier average causal effect,CACE) 独立性;分组本身对用户没影响,只有确实被处理渗透的用户才受到影响,这类人接受处理与否完全由于是否接受鼓励而定。按实验组渗透等比的放大了组间收益。用户分为4类, compiler, never-taker, always-taker, defier;compiler是给药就吃不给就不吃,never-taker是打死也不吃,always-taker是没事就吃药,defier是不给我药我偏要吃 CACE=E(Y(1)|compiler)-E(Y(0)|compiler)=[E(Y|Z=1)-E(Y|Z=0)]/[E(W|Z=1)-E(W|Z=0)]。可以理解为一种特殊的工具变量回归。 新功能真正触达/使用的用户占比很小,如何计算收益。 提高实验灵敏度。 只能识别某个子总体的平均因果作用;而通常情况下,我们并不知道某个个体具体属于哪个子总体。外推到整体需要结合边际处理效应 (MTE)。
9 uplift 用户分4类:说服型Persuadables:不发送优惠券则不买,发送优惠券则购买; 确认型Sure things:不论是否发送优惠券均会购买; 沉睡型Lost causes:不论是否发送优惠券均不会购买; 勿扰型Sleeping Dogs:不发送优惠券会购买,发送优惠券反而不买。Uplift模型要解决的问题就是通过建模预测的方法精准的去对这四类用户进行分群。我们获取到的训练训练数据是不完整的,对于单个用户来说,不可能同时观测到在有干预(发券)和没有干预(不发券)两种情况下的表现,这也是因果推断中的反事实的问题。 首先,我们选取部分用户(小流量实验,样本量足够建模)随机分为实验组和对照组,对照组不发优惠券,实验组发放优惠券,用户最终是否购买为一个0-1变量; 然后,对整体实验数据用户购买行为进行建模; 最后,再用小流量实验训练得到模型对我们需要预测的全量用户进行条件平均处理效应估计,预测其发放优惠券所带来的增益值。评估:得分十分位柱状图,qini曲线,累积增益曲线。 用户(特征)与干预策略是相互独立的。 精准定位策略敏感人群,合理测算收益空间。One Model版本和Two Model版本相比最大的优点是训练样本的共享可以使模型学习的更加充分,同时通过模型的学习也可以有效的避免双模型打分误差累积的问题,另外一个优点是从模型的层面可以支持multiple treatment的建模,具有比较强的实用性。同时和Two Model版本类似,它的缺点依然是其在本质上还是在对response建模,因此对uplift的建模还是比较间接,有一定提升的空间。 强依赖于AB实验,数据要求很高,实验组和对照组的样本特征分布要一致。
10 中介模型 考虑自变量X对因变量Y的影响,如果X通过影响变量M来影响Y,则称M为中介变量。 数据标准化处理;模型1:自变量X和因变量(Y)的回归分析; 模型2:自变量X,中介变量(M)和因变量(Y)的回归分析; 模型3:自变量X和中介变量(M)的回归分析;中介效应检验:sobel检验。也可以使用结构方程。 自变量和因变量之间的关系不能够直接展示,XY的关系不明确。寻找一个可以被控制的中介。 可以分析自变量对因变量影响的过程和作用机制。 中介效应往往与调节效应共生。
11 交叉实验 重复对不同实验单元组实施实验,每一个实验单元都会在不同阶段命中不同的策略,每个实验单元都作为自己的对照组进行评估。 均匀交叉实验(拉丁方/数独):每个实验策略在每个周期及每个序列里仅出现1次,2组2序列2周期,4组4序列4周期;强平衡实验:还要求策略在其本身之前出现的次数与在其他策略之前出现的次数一致,4组4序列5周期;强均衡实验:每种策略在序列/周期中出现的次数相等,且其他策略(包含其本身)前出现的次数也相等,2组4序列4周期。 无法切片的全量可逆策略效果评估。 同一时间评估多种策略,节省时间成本;需要样本量小,灵敏度高;避免实验单元之间个体差异导致统计精度低。 需要判断策略周期,减少延滞效应影响,策略属性需要可逆,实验单元样本状态要保持稳定。
12 Interleaving 第一阶段利用被称为Interleaving的测试方法进行候选算法的快速筛选,从大量初始想法中筛选出少量“优秀的”Ranking算法。 第二阶段是对缩小的算法集合进行传统的AB Test,以测量它们对用户行为的长期影响。 只有一组订阅用户,这些订阅用户会接受到通过混合算法A和B的排名生成的交替排名。用户同时可以在一行里同时看到算法A和B的推荐结果(用户无法区分一个item是由算法A推荐的还是算法B推荐的)。进而可以通过计算观看时长等指标来衡量到底是算法A好还是算法B好。必须要考虑位置偏差的存在,避免来自算法A的视频总排在第一位。因此需要以相等的概率让算法A和算法B交替领先。 流量有限的条件下对海量策略进行粗筛。 提升测试效率;消除了AB组测试者自身属性分布不均的问题; 通过给予每个人相同的权重,降低了重度消费者对结果的过多影响。 工程实现的框架较传统AB Test复杂;Interleaving毕竟只是对用户对算法推荐结果偏好程度的相对测量,不能得出一个算法完整的表现
13 双重差分(Differences-in-Differences,DID) 反事实理论。假设1:策略仅对实验组的待解释变量产生影响,对对照组的解释变量不产生影响。假设2:平行趋势假定:实验组和对照组的待解释变量在干预前有相同的发展趋势。 (实验后-实验前)-(对照后-对照前) 实验组和对照组的待解释变量在干预前有相同的发展趋势。 (1)可以很大程度上避免内生性问题的困扰:政策相对于微观经济主体而言一般是外生的,因而不存在逆向因果问题。此外,使用固定效应估计一定程度上也缓解了遗漏变量偏误问题。(2)传统方法下评估政策效应,主要是通过设置一个政策发生与否的虚拟变量然后进行回归,相较而言,双重差分法的模型设置更加科学,能更加准确地估计出政策效应。(3)双重差分法的原理和模型设置很简单,容易理解和运用,并不像空间计量等方法一样让人望而生畏。 1.基于独立同分布假设(independent and identically distributed,IID),尽管实验设计中具有时间相关成分,但当实验使用时间序列时,静态模型会有置信区间过窄,估值过于乐观的情况。2.实验效果会随时间改变,例如静态模型并未考虑增长及衰减。
14 合成控制(Synthetic Control) 反事实理理论。对潜在的对照组进行线性组合,构建一个虚拟的对照组。 求解控制组权重:矩阵分解,基于距离函数最小化的的最优化;计算处理前后结果;安慰剂检验。 双重差分无法找到恰当的对照组 作为一种非参数的方法,是对传统的双重差分法DID的拓展; 通过数据驱动确定权重,减少了主观选择的误差,避免了政策内生性问题; 通过对多个控制对象加权来模拟目标对象政策实施前的情况,不仅可以清晰地反映每个控制对象对“反事实”事件的贡献,同时也避免了过分外推; 可以对每一个研究个体提供与之对应的合成控制对象,避免平均化的评价,不至于因各国政策实施时间不同而影响政策评估结果,避免了主观选择造成的偏差; 研究者们可在不知道实施效果的情况下设计实验。 因为使用加权的方法合成虚拟对照组,很大程度上,不能合成“极值”的虚拟对照组。当控制变量很多时,无法进行变量选择。
15 中断时间序列(Interrupted Time Series,ITS) 中断前后都是线性关系,序列不存在自相关。 单组/多组干预回归 无法找到对比组,只能和自身比较。 可以从两方面评价干预效果:一个是干预点前后升降幅度;进一步,还可评价项目实施后的“长期趋势”的变化,即评价因变量的变化趋势。 1.在现实生活中比较少见。2.项目的准入标准和统计口径不可以发生变化。3.无法排除历史事件(History)的影响。4.项目的推行不是一次性的,而是渐进推广的,导致项目实施的具体时间不清楚。
16 Causal Impact 状态空间模型:贝叶斯结构化时间序列。1.实验效果可以通过对比自身时间序列以及自身不受干扰影响的一组控制时间序列进行解释。2.实验干预期间,构建的反事实对照组与实验组时间序列的关系假设稳定。 1.控制的时间序列选择:通过dtw算法选择与实验组最相似的时间序列。2.通过观察拟合后的结果,判断策略是否与显著效果 一是在模型拟合过程中(original),AA差异的置信区间要始终包含0,相当于模型的拟合误差在我们的接受范围之内,反之则说明模型的拟合误差过大,模型不可信; 使寻找高度同步的对比组从一个强假设变成一个弱假设,类似于序列版的合成控制。 有的策略存在新奇效应,不能得到长期收益,所以需关注累积收益进行决策。
17 断点回归(Regression Discontinuity Design,RDD) 存在一个连续变量, 该变量能决定个体在某一临界点两侧接受政策干预的概率, 由于X在该临界点两侧是连续的, 因此个体针对X的取值落入该临界点任意一侧是随机发生的, 即不存在人为操控使得个体落入某一侧的概率更大, 则在临界值附近构成了一个准自然实验。 精确断点回归设计 (sharp regression discontinuity design,SRD)/模糊断点回归设计 (fuzzy regression discontinuity,FRD) ,有效性检验,稳健性检验。 人群是否接受干预(Treatment)是依据某一数值变量(rating variable)是否高于或低于某一确定的阈值(threshold)或者分割点(cut-point)。 最接近随机实验的检验方法,能够缓解参数估计的内生性问题。 外部有效性很弱。在实证分析的因果推论中,有外部有效性(external validity)和内部有效性(internal validity)两个概念。因为断点回归只能做到局部(断点附近)随机,它能准确推断出来的也就是这断点附近人群的政策效果。要把局部政策效果外推,将非常困难。
18 工具变量(Instrumented Variable,IV) 希望看到的结果是感兴趣的变量满足内生性,即不存在双向因果的问题,难点就在于证明反向因果不存在。此时需要找到一个感兴趣变量(也就是X,也称为内生变量)的外生变量,来代替内生变量。 两阶段最小二乘法 (2SLS)回归:第一阶段:用解释变量与工具变量进行OLS回归,得到拟合值(分离出内生变量的外生部分); 第二阶段:用被解释变量对第一阶段回归的拟合值进行OLS回归(使用外生部分进行回归)。 相关性:工具变量必须与内生变量相关;独立性假设:工具变量需要时随机分配的,或者 “和随机分配一样好”;排他性约束:工具变量只能通过内生变量这一渠道影响被解释变量。 解决了内生性问题。 会将任何可能存在的偏差放大,只能处理简单问题。
19 逆向概率加权(Inverse probability treatment weighting,IPTW) 样本越倾向选择这个策略,那么说明这个策略对该样本可能获得更好的策略效果,所以取倒数得到的权重来平衡这个策略效果。 把需要比较的变量拿出来做结果变量,其他的变量做协变量,组logistic回归方程,生成预测值。通过预测值计算出拟概率权重。处理组观察单位的权数Wt=1/PS,对照组观察单位的权数Wc=1/(1-PS)。PS为观察单位的倾向评分值。均衡性检验. 观察的数据中,策略分配与样本的其他变量是相关的。 IPTW是减少多组观察性数据间混杂偏倚的有效方法, 在处理多组间变量混杂偏倚中起到了重要作用。加权法利用全部样本进行分析,在一定程度上弥补了因匹配导致样本流失的问题。 权重主要围绕倾向的分为核心,倾向得分一旦预测不准,会导致上面的估计方法出现很大的偏差。

四.方案选型

avatar

五.参考资料

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

因果推断与AB实验 展开 收起
README
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/bigear2021/causal-inference.git
git@gitee.com:bigear2021/causal-inference.git
bigear2021
causal-inference
causal-inference
master

搜索帮助