148

数据分析的基础——统计学之描述性统计

数据分析的基础——统计学之描述性统计(一)

  • 描述性统计 (Descriptive Statistics): The page introduces descriptive statistics as a way to analyze data trends using existing data, often supplemented with graphs for reference.

  • 推断统计学 (Statistical Inference): It explains statistical inference as the method of deducing population characteristics from sample data, based on descriptive statistics of sample data.

  • 数据类型 (Data Types): The article categorizes data into three types: categorical data (non-numeric), ordinal data (with a clear order), and numerical data (discrete and continuous variables).

  • 数据度量 (Data Measurement): It discusses measures of central tendency and dispersion for data, including mode, quantiles, and mean, and how they apply to different data types.

数据分析的基础——统计学之描述性统计(二)

  • 离散趋势 (Dispersion Trend): The page discusses the concept of dispersion trend in statistics, which refers to the degree of spread in data.

  • 异众比率 (Variation Ratio): It introduces the variation ratio as a measure of dispersion for categorical data, defined as the ratio of the frequency of non-modal categories to the total frequency.

  • 四分位距 (Interquartile Range, IQR): The page explains the interquartile range as a measure of dispersion for ordinal data and how it is used to identify outliers in a box plot¹[1].

  • 标准差 (Standard Deviation): It also covers standard deviation and standard scores as measures of dispersion for numerical data, including their role in indicating the relative position of data points within a distribution.

阅读原文 永久链接

147

描述统计学

  • 描述统计学: Descriptive statistics is a branch of statistics that describes and summarizes the basic statistical information of observed objects¹[1]. It focuses on analyzing the central tendency and dispersion of known data.
  • 推断统计学: In contrast, inferential statistics studies how to infer population characteristics from sample data, providing a probabilistic description and forming the basis for action strategies.
  • 总体与样本: The page explains the concepts of ‘population’ and ‘sample,’ highlighting the importance of sample size in reflecting the population’s characteristics.
  • 特征类型: It discusses discrete and continuous features in machine learning, emphasizing the selection of relevant features for effective analysis.

The page also delves into various statistical measures such as central tendency, variance, standard deviation, mode, skewness, kurtosis, median, and range, providing formulas and explanations for each.

阅读原文 永久链接

146

The Product-Led-Growth (PLG) Playbook for B2B Startups

My students and I heard from the growth teams at Pinterest, Facebook, LinkedIn, Lyft, Shopify, Tesla, Adidas, the NBA, and Disney+ and held workshops led by growth thought leaders Brian Balfour from Reforge and Sean Ellis, author of Hacking Growth.

we recruited a handful of B2B startups, forming student teams to apply the patterns we observed in the class to their PLG strategy.

Define and Navigate Four Sequential North Star Metrics

Two interesting observations surfaced with regards to the metrics focus of the growth team.

  • First, high performing growth teams focused on a single metric at a time.
  • Second, the North Star Metric evolved as the venture scaled.

The sequence through

四个主要的关注指标,其实这四个指标分别是解决这几个问题:

  1. 寻找市场,这个时候关注是否有用户来使用;
  2. PMF
  3. 规模化,加速获取更多高质量用户
  4. 盈利,关注商业化

North Star Metric #1: Establish Flow of Free Users for Experimentation (i.e. new users per day)

The focus should not be on optimizing CAC or monetization. We are simply trying to create a reasonable flow of free users to conduct experiments with.

如果产品使用 Freemium 来吸引用户,那么这个阶段关注新增的 Free 用户即可。

North Star Metric #2: Prove Free User Retention (i.e. New User->WAU%)

有用户来了之后再考虑如何让用户留下来,其实就是 PMF,询问用户是否对产品感到满意,如果产品消失,用户是否会感到非常失望。如果有 40% 的对此感到非常失望,说明产品已经有了忠实的目标客户。 prove that the product consistently delivers on the value promise.

  • first approach, from Brian Balfour, evaluates the usage retention of users, organized by acquisition date cohorts. LinkedIn nicely summarizes in this article how they defined a “Quality Signup” as an immediately measurable metric that correlated nicely with long term usage retention.

[source]

  • Following Balfour’s approach, the data is then organized into the model below, where each color represents a set of users acquired in a particular period, such as in the month of May, and the shape illustrates the percentage of those users that remain as free active users over time.

[source]

North Star Metric #3: Prove Scalable Quality User Acquisition (i.e. Cost per Quality User)

develop at least one scalable user acquisition channel that acquires Quality Users within the tolerable CAC target. Cold calling and paid digital marketing are rarely used.

North Star Metric #4: Prove Monetization (i.e. Quality User->Paid User% AND ACV)

Finally, with a clear definition of the users that retain with the product and a channel to acquire them scalably, focus on converting free users to paid customers.

Establish a Cross-Functional Team Reporting into Product, not Marketing

增长团队更像是一只特种部队,人数不多,但是各种只能的都有,团队内部可以自闭环来快速实验。 These teams consisted of the following capabilities.

  • Product Managers: Receive input from the various constituents (team, users, product data, market data, competitive data) and drive prioritization of the experiment funnel.
  • Full-Stack Engineers: Split time between executing the aspects of experiments that require back-end coding and develop the tools used by non-technical resources to execute experiments.
  • Designers: Own the user interface and user experience of the product. Design ads, landing pages, in app messages, and other UI/UX elements used in experiments.
  • Data Analysts: Evaluate the data and influence the product strategy and roadmap with observations.
  • Marketers: Run user acquisition experiments, mostly focused on email campaigns, viral programs, and digital ads.
  • CSMs: Serve as first line of support for inbound support chats or emails.

Transition growth team from “athletes” to “specialists” as the organization scales

specialized engineers as either core product engineers dedicated to the product road map or growth engineers dedicated to the growth funnel.

产品和设计以及开发都要成为某种专家:

  • 根据业务线,某个业务线的专家;
  • 根据 Funnel,成为获客、或者转化方面的专家;

Specialize Product and Engineering as either Growth or Core Product

Report Growth into Product, not Marketing

Start with CSMs, Not Salespeople

This ruins the “adopt-before-buy” potential of PLG. If human-in-the-loop model is needed before adoption and monetization occurs, use a CSM profile, trained to understand the buyer needs and then show the buyer how to fulfill those needs in the product.

PLG 讲究的是 touchless,如果整个过程中一定需要某种角色介入,这个角色应该是 CSM 而非 Sales.

Compensate Salespeople More for Expansion Revenue than New Revenue

这是大多数 PLG 公司所采用的一种策略:

  1. PLG 用于获取新客户;
  2. 通过优秀的用户旅程,让客户对产品感到满意并自助成为付费客户;
  3. 随着用户的行为,当产品意识到这个用户可能是一个高价值客户,则可以让 Sales 来主动联系客户;
  4. Sales 的目的是进行 Upsell/Cross-sell;

Enable Rapid, High Quality Experimentation

  1. Hold the team accountable to properly defining the experiment up front.
  2. Setup a weekly call to review the outcomes of last week’s experiments, discuss learnings, and discuss ideas for the next set of experiments.
  3. Maintain an experiment log.
  4. Balance Quick Wins with Big Bets.
  5. Invest R&D in making experimentation easy across the organization.

Strategic Considerations of PLG

The Hidden Power of PLG: Sustainable Moat Development

Early Focus on PLG Increases the Likelihood of Product-Market-Fit

PLG is Very Difficult to Implement After Scale

Category Attributes Favorable to PLG

#1: Low time and effort to retainable value #2: A value proposition that has current demand versus one that needs to be evangelized #3: Potential for virality #4: Large, horizontal market

PLG Playbook for B2B Startups - Summarized

阅读原文 永久链接

145

Sample Space - BYJU'S

Sample Space

A Sample Space is a collection or a set of possible outcomes of a random experiment. The sample space is represented using the symbol, “S”. The subset of possible outcomes of an experiment is called events. A sample space may contain a number of outcomes that depends on the experiment. If it contains a finite number of outcomes, then it is known as discrete or finite sample spaces.

阅读原文 永久链接

143

Fundamentals Of Statistics For Data Scientists and Analysts

Random Variables

a Random Variable is a way to map the outcomes of random processes, such as flipping a coin or rolling a dice, to numbers. For instance, we can define the random process of flipping a coin by random variable X which takes a value 1 if the outcome if heads and 0 if the outcome is tails.

we have a random process of flipping a coin where this experiment can produce two possible outcomes: {0,1}. This set of all possible outcomes is called the Sample Space of the experiment.

Each time the random process is repeated, it is referred to as an Event. In this example, flipping a coin and getting a tail as an outcome is an event. The chance or the likelihood of this event occurring with a particular outcome is called the probability of that event.

A Probability of an event is the likelihood that a random variable takes a specific value of x which can be described by P(x). In the example of flipping a coin, the likelihood of getting heads or tails is the same, that is 0.5 or 50%.

Mean, Variance, Standard Deviation

The Population is the set of all observations (individuals, objects, events, or procedures) and is usually very large and diverse, whereas a Sample is a subset of observations from the population that ideally is a true representation of the population.

For this purpose, one can use statistical sampling techniques such as Random Sampling, Systematic Sampling, Clustered Sampling, Weighted Sampling, and Stratified Sampling.

Mean

Mean also known as the average, is a central value of a finite set of numbers.

Then the sample mean defined by μ, which is very often used to approximate the population mean, can be expressed as follows: $$ \mu = \frac{\sum_{i=1}^N {x_i}}{N} $$

The mean is also referred to as expectation which is often defined by E() or random variable with a bar on the top. For example, the expectation of random variables X and Y, that is E(X) and E(Y)

import numpy as np import math x = np.array([1,3,5,6]) mean_x = np.mean(x)

in case the data contains Nan values

x_nan = np.array([1,3,5,6, math.nan]) mean_x_nan = np.nanmean(x_nan) return mean_x, mean_x_nan

#+RESULTS[47c5597f7f1d86f0de2f7976a0bdabc4b0686d71]: mean | 3.75 | 3.75 |

Variance

The Variance measures how far the data points are spread out from the average value, and is equal to the sum of squares of differences between the data values and the average (the mean). $$ \sigma^2 = \frac{\sum_{i=1}^N {(x_i - \mu)^2}}{N} $$

import numpy as np import math x = np.array([1,3,5,6]) variance_x = np.var(x)

here you need to specify the degrees of freedom (df) max number of logically independent data points that have freedom to vary

x_nan = np.array([1,3,5,6, math.nan]) mean_x_nan = np.nanvar(x_nan, ddof = 1) return variance_x, mean_x_nan

#+RESULTS[1f4f54b3c26d20ada10a72a95e36082491698a3a]: variance | 3.6875 | 4.916666666666667 |

Standard Deviation

The Standard Deviation is simply the square root of the variance and measures the extent to which data varies from its mean. $$ \mu = \sqrt{\frac{\sum_{i=1}^N (x_i - \mu)^2}{N}} $$ import numpy as np import math x = np.array([1,3,5,6]) variance_x = np.std(x)

x_nan = np.array([1,3,5,6, math.nan]) mean_x_nan = np.nanstd(x_nan, ddof = 1) return variance_x, mean_x_nan

#+RESULTS[a6af68e4a430e697897fe9b71efd277bad66f7c3]: standard-deviation | 1.920286436967152 | 2.217355782608345 |

Covariance

The Covariance is a measure of the joint variability of two random variables and describes the relationship between these two variables. It is defined as the expected value of the product of the two random variables’ deviations from their means.

import numpy as np import math x = np.array([1,3,5,6]) y = np.array([-2,-4,-5,-6]) #this will return the covariance matrix of x,y containing x_variance, y_variance on diagonal elements and covariance of x,y cov_xy = np.cov(x,y) return cov_xy

#+RESULTS[3423d8c2618e6cb48ee72cc37f1e5aa9d0c39a29]: covariance | 4.91666667 | -3.75 | | -3.75 | 2.91666667 |

Correlation

The Correlation is also a measure for relationship and it measures both the strength and the direction of the linear relationship between two variables. $$ Cor(X,Z) = \frac{Cov(X,Z)}{\sigma_x, \sigma_z} $$

import numpy as np import math x = np.array([1,3,5,6]) y = np.array([-2,-4,-5,-6])

corr = np.corrcoef(x,y) return corr

#+RESULTS[fdc6a0723c221a59e2ff9f0495be4ce448123083]: correlation | 1 | -0.99026741 | | -0.99026741 | 1 |

Probability Distribution Functions

A function that describes all the possible values, the sample space, and the corresponding probabilities that a random variable can take within a given range, bounded between the minimum and maximum possible values, is called a Probability Distribution Functions (pdf) or probability density. Every pdf needs to satisfy the following two criteria: \begin{equation} [0 \le Pr(X) \le 1] [\Sigma p(X) = 1] \end{equation}

Probability functions are usually classified into two categories:

  • Discrete Probability Distribution Discrete distribution function describes the random process with countable sample space, like in the case of an example of tossing a coin that has only two possible outcomes.
  • Continuous Probability Distributions Continuous distribution function describes the random process with continuous sample space.

Binomial Distribution

The Binomial Distribution is the discrete probability distribution of the number of successes in a sequence of n independent experiments, each with the boolean-valued outcome: success (with probability p) or failure (with probability q = 1 − p). $$ f(k,n,p)=\Pr(X=k)={n \choose k}p^{k}(1-p)^{n-k} $$

Binomial Distribution Mean & Variance

$$ {E} [X]=np $$ $$ {Var} [X]=np(1-p) $$

Random Generation of 1000 independent Binomial samples

import numpy as np n = 8 p = 0.16 N = 1000 X = np.random.binomial(n,p,N)

Histogram of Binomial distribution

import matplotlib.pyplot as plt counts, bins, ignored = plt.hist(X, 20, density = True, rwidth = 0.7, color = ‘purple’) plt.title(“Binomial distribution with p = 0.16 n = 8”) plt.xlabel(“Number of successes”) plt.ylabel(“Probability”) plt.savefig(‘assets/binomial-distribution.png’) return ‘assets/binomial-distribution.png’

#+ATTR_ORG : :width 480 #+RESULTS[249ae2a17b71841d458066a3c2322044980b62b3]: binomial-distribution [[file:assets/binomial-distribution.png]]

Poisson Distribution

The Poisson Distribution is the discrete probability distribution of the number of events occurring in a specified time period, given the average number of times the event occurs over that time period.

Poisson Distribution Mean & Variance

Random Generation of 1000 independent Poisson samples

import numpy as np lambda_ = 7 N = 1000 X = np.random.poisson(lambda_,N)

Histogram of Poisson distribution

import matplotlib.pyplot as plt counts, bins, ignored = plt.hist(X, 50, density = True, color = ‘purple’) plt.title(“Randomly generating from Poisson Distribution with lambda = 7”) plt.xlabel(“Number of visitors”) plt.ylabel(“Probability”) plt.savefig(“assets/poisson-distribution-sample.png”) return “assets/poisson-distribution-sample.png”

#+RESULTS[8a9163f040c4fe5ab0a165b8deffa80a7c32bf79]: poisson-distribution [[file:assets/poisson-distribution-sample.png]]

Normal Distribution

The Normal Distribution is the continuous probability distribution for a real-valued random variable.

Normal Distribution Mean & Variance

Random Generation of 1000 independent Normal samples

import numpy as np mu = 0 sigma = 1 N = 1000 X = np.random.normal(mu,sigma,N)

Population distribution

from scipy.stats import norm x_values = np.arange(-5,5,0.01) y_values = norm.pdf(x_values)#Sample histogram with Population distribution import matplotlib.pyplot as plt counts, bins, ignored = plt.hist(X, 30, density = True,color = ‘purple’,label = ‘Sampling Distribution’) plt.plot(x_values,y_values, color = ‘y’,linewidth = 2.5,label = ‘Population Distribution’) plt.title(“Randomly generating 1000 obs from Normal distribution mu = 0 sigma = 1”) plt.ylabel(“Probability”) plt.legend() plt.savefig(“assets/normal-distribution-sample.png”) return “assets/normal-distribution-sample.png”

#+RESULTS[1c3fa38f5dcefe428e28582a9747bb77dd8f368f]: normal-distribution [[file:assets/normal-distribution-sample.png]]

阅读原文 永久链接

142

Complete Guide to A/B Testing Design, Implementation and Pitfalls

“The world is a big A/B test” Sean Ellis if you want to learn or refresh your knowledge in the essential statistical concepts you can check this article: Fundamentals of statistics for Data Scientists and Data Analysts notes: Fundamentals Of Statistics For Data Scientists and Analysts

What is A/B testing and when to use it?

The idea behind A/B Testing is that you show the variated version of the product to a sample of customers (the experimental group) and the existing version of the product to another sample of customers (the control group). Then, the difference in product performance in experimental/treatment versus the control group is tracked, to identify the effect of this new version(s) of the product on the performance of the product.

Benefits of A/B testing

  • Allows to learn what works and what doesn’t in a quick manner
  • You get feedback directly from actual/real product customers
  • Since the users are not aware that they are being tested, the results will be unbiased

Demerits of A/B testing

  • Presenting different content/price/features to different customers especially in the same geolocation might potentially be dangerous resulting in Change Aversion (we will discuss how this can be addressed later on)
  • Requires a significant amount of Product, Engineering, and Data Science resources
  • Might lead to wrong conclusions if not conducted properly

Questions to clarify before any A/B test

  • What does a sample population look like and what are the customer segments for the target product?
  • Can we find the answer to our business question using exploratory/historical data analysis (e.g. by using causal analysis)?
  • Do we want to test single or multiple variants of the target product?
  • Can we ensure truly randomized control and experimental groups s.t. both samples are an unbiased and true representation of the true user population?
  • Can we ensure the integrity of the treatment vs control effects during the entire duration of the test?

Choice of Primary metric

for the A/B test, we need to tie up the primary metric to the direct and the higher-level goals of the product.

Metric validity question: If this chosen metric were to increase significantly while everything else stays constant, would we achieve our goal and address the problem?

Common A/B test metrics

Click-Through Rate (CTR)

Click-Through Rate ==CTR = {# total clicks * 100%} / {# total clicks + # total veiws}==

Click-Through Probability (CTP)

Click-Through Probability ==CTP = {# poeple with at least 1 ciclk * 100%} / {# number of unique visitors per page}==

Conversion Rate

Conversion Rate defined as the proportion of sessions ending up with a transaction. ==CR = {# converted} / {# converted + # not converted}==

Hypothesis of the test

A/B test should always be based on a Hypothesis that needs to be tested.

For example, if the KPI of the product is to improve the quality of the recommender system’s recommendations and this can be done for example by adding Impression Discounting or building a Re-ranker model for the recommender.

Do not merge multiple ideas into one hypothesis and also limit the variables introduced in the test so that you can understand their individual impact.

Design of the test (Power Analysis)

keeping in mind that it’s not really about testing — it’s about learning.

Step 1: Statistical Hypothesis

Step 2: Power Analysis

To make sure that our results are repeatable, robust, and can be generalized to the entire population we need to avoid p-hacking, to ensure real statistical significance and to avoid biased results, we want to make sure we collect “enough” amount of observations and we run the test for a minimum predetermined amount of time. Therefore, before running the test we need to determine the sample size of the control and experimental groups and for how long we need to run the test. This process is often referred to as Power Analysis and it includes 3 specific steps: determining the power of the test, determining the significance level of the test, and determining a Minimum Detectable Effect.

Power of the test

Power of a Test is the probability of correctly rejecting the Null Hypothesis. The power, often defined by (1-beta) is equal to the probability of not making a Type II Error, where Type II error is the probability of not rejecting the null hypothesis while the null is false.

It’s common practice to pick 80% as the power of the A/B test, that is 20% Type II error which means that we are fine with not detecting (failing to reject the null) a treatment effect while there is an effect.

Significance level of the test

Significance Level which is also the probability of Type I Error is the likelihood of rejecting the null, hence detecting a treatment effect, while the null is true and there is no statistically significant impact.

Generally, we use the significance value of 5% which indicates that we have a 5% risk of concluding that there exists a statistically significant difference between the experimental and control variant performances when there is no actual difference.

Minimum Detectable Effect (delta)

Minimum Detectable Effect what is the substantive to the statistical significance that the business wants to see as a minimum impact of the new version to find this variant investment-worthy?

MDE is a proxy that relates to the smallest effect that would matter in practice for the business and is usually set by stakeholders.

It’s common practice to pick 80% as the power and 5% as the significance level of the A/B test, that is 20% Type II error and 5% Type I error. However, the choice of a value of this parameter depends on the nature of the test and the business constraints.

Step 3: Calculating minimum sample size

Calculation of the sample size depends on the underlying primary metric that you have chosen for tracking the progress of the control and experimental versions.

Case 1: Sample Size Calculation with Binary Metric

When we are dealing with a primary performance tracking metric that has two possible values such as the Click Through Rate where the user can either click (success) or not click (failure) and if the users’ responses to the product can be defined as “independent” events then we can consider this as Bernoulli Trials where the click event (success) occurs with probability p_con in case of the Control Group and p_exp in case of the Experimental Group.

Then the sample size needed to compare these two Binomial Proportions, using a two-sided test with prespecified significance level, power level, MID can be calculated as follows:

where we need to use A/A testing (an A/B test except assigning the same treatment to both groups) to obtain the estimates for p_bar and q_bar.

Case 2: Sample Size Calculation with Continuous Metric

When we are dealing with a primary performance tracking metric that is in the form of an average such as the mean order amount where we intend to compare the means of the Control and Experimental Groups, then we can use the Central Limit Theorem and state that the mean sampling distribution of both Control and Experimental Groups follow Normal Distribution.

Hence, the sample size needed to compare the means of two Normally Distributed Samples, using a two-sided test with prespecified significance level, power level, MID can be calculated as follows:

where we can run an A/A test to obtain the sample variances, σ²_con, and σ²_exp.

Step 4: Determining A/B test duration

To determine the baseline of a duration time, a common approach is to use the following formula: Duration = {N} / {# visitors per day}

Too small test duration: Novelty Effects

when picking a test duration we need to make sure we don’t run the test for too short a time period otherwise we can have a Novelty Effects.

Too large test duration: Maturation Effects

the longer the test period the larger is the likelihood of external effects impacting the reaction of the users and possibly contaminating the test results, Maturation Effects.

Running the A/B test

Analysing A/B test results in Python

This set includes:

  • Choosing an appropriate statistical test
  • Calculating the test statistics (T)
  • Calculating the p-value of the test statistics
  • Reject or fail to reject the statistical hypothesis (statistical significance)
  • Calculate the margin of error (external validity of the experiment)
  • Calculate confidence interval (external validity and practical significance of the experiment)

Choosing an appropriate statistical test

Once the interaction data of the Control and Experimental groups are collected, you can test the statistical hypothesis earlier by choosing an appropriate statistical test that is usually categorized in Parametric Statistics and Non-Parametric Statistics tests. The choice of the test depends on the following factors:

  • format of the primary metric (underlying pdf)
  • sample size (for CLT)
  • nature of the statistical hypothesis (show that a relationship between two groups merely exists or identify the type of relationship between the groups)

The most popular Parametric Statistics tests that are used in A/B testing are:

  • 2 Sample T-test (when N < 30, metric follows student-t distribution, and you want to identify whether there exist a relationship and the type of relationship between control and experimental groups)
  • 2 Sample Z-test (when N > 30, metric follows asymptotic Normal distribution and you want to identify whether there exist a relationship and the type of relationship between control and experimental groups)

The most popular Non-Parametric Statistics tests that are used in A/B testing are:

  • Fisher’s Exact Test (small N, identify and you want to identify whether there exist a relationship between control and experimental groups)
  • Chi-squared Test (large N, identify and you want to identify whether there exist a relationship between control and experimental groups)
  • Wilcoxon Rank Sum/Mann Whitney test (small N or large N, skewed sampling distributions, testing the difference in medians between control and experimental groups)

2 Sample T-test

<<<2 Sample T-test>>> If you want to test whether there is a statistically significant difference between the control and experimental groups’ metrics that are in the form of averages (e.g. average purchase amount), metric follows student-t distribution and when the sample size is smaller than 30, you can use 2-sample T-test to test the following hypothesis:

import numpy as np from scipy.stats import t

N_con = 20 df_con = N_con - 1 # degrees of freedom of Control N_exp = 20 df_exp = N_exp - 1 # degrees of freedom of Experimental

Significance level

alpha = 0.05

data of control group with t-distribution

X_con = np.random.standard_t(df_con,N_con)

data of experimental group with t-distribution

X_exp = np.random.standard_t(df_exp,N_exp)

mean of control

mu_con = np.mean(X_con)

mean of experimental

mu_exp = np.mean(X_exp)

variance of control

sigma_sqr_con = np.var(X_con) #variance of control sigma_sqr_exp = np.var(X_exp)

pooled variance

pooled_variance_t_test = ((N_con-1)sigma_sqr_con + (N_exp -1) * sigma_sqr_exp)/(N_con + N_exp-2)(1/N_con + 1/N_exp)

Standard Error

SE = np.sqrt(pooled_variance_t_test)

Test Statistics

T = (mu_con-mu_exp)/SE

Critical value for two sided 2 sample t-test

t_crit = t.ppf(1-alpha/2, N_con + N_exp - 2)

P-value of the two sided T-test using t-distribution and its symmetric property

p_value = t.sf(T, N_con + N_exp - 2)*2

Margin of Error

margin_error = t_crit * SE

Confidence Interval

CI = [(mu_con-mu_exp) - margin_error, (mu_con-mu_exp) + margin_error]

print(“T-score: ”, T) print(“T-critical: ”, t_crit) print(“P_value: ”, p_value) print(“Confidence Interval of 2 sample Z-test: ”, np.round(CI,2)) return T, t_crit, p_value, np.round(CI,2)

#+RESULTS[d4e8a8fb20443ebb125d788946f4d41a02331fa1]: | -0.9332906095291454 | 2.024394164575136 | 1.643437434527514 | array | ((-0.89 0.33)) |

Bootstrapping and Bootstrap Quantile Method for SE and CI

Statistical Significance vs Practical Significance

Quality of A/B test (Reliability, Validity, Potency)

Common problems and pitfalls of A/B testing

Ethics and privacy in A/B testing

阅读原文 永久链接

140

Experimental Template

Experiment summary

We believe that… {describe your hypothesis in one sentence}

To verify that, we will… {describe your test in one sentence}

And we’ll measure the impact on… {metrics}

Hypothesis

Business problem

Supporting data

Expected outcome

Experiment design & implementation

ICE score

ImpactConfidenceEaseScore
value 1value 2value 3Average(1:3)

Known assumptions

Results, lessons learned, next steps

Checklist

[ ] Fill in the experiment summary and write more about the details of the experiment in the rest of the issue description. Some of these may be filled in through time (the “Result, learnings, next steps” section for example) but at least the experiment summary should be filled in right from the start.

[ ] Add the label of the group:: that will work on this experiment (if known).

[ ] Mention the Product Manager, Engineering Manager, and at least one Product Designer from the group that owns the part of the product that the experiment will affect.

[ ] Fill in the values in the ICE score table ping other team members for the values you aren’t confident about (i.e. engineering should almost always fill out the ease section). Add the ~“ICE Score Needed” label to indicate that the score is incomplete.

[ ] Replace the ~“ICE Score Needed” with an ICE low/medium/high score label once all values in the ICE table have been added.

[ ] Mention the [at]gitlab-core-team team and ask for their feedback.

永久链接

139

Product Handbook

Welcome to the Product Team Handbook

Contributing to the product handbook

Informing team members about the changes

Product Team Mission

Product Principles

Product Processes

Product Categorization

About the GitLab Product

Product Manager Responsibilities

Being a Product Manager at GitLab

Product Performance Indicators

Product OKRs

Our Product Leadership Team

  • Data for Product Managers
  • Internal Product Handbook (must access through OKTA)
  • Learning and Development for Product Management
  • Product Budgeting Process
  • Product Development Flow
  • Product Development Timeline
  • Product Intelligence Guide
  • Product Management CDF and competencies
  • Product Manager Onboarding
  • Product Manager Responsibilities
  • Product Manager SAFE (legal) Guidance
  • Product Operations Releases
  • Product Pricing Model
  • Release Posts
  • Tiering Guidance for Features

阅读原文 永久链接

137

The GIST Framework

GIST

Not every metrics are matters. 2 types of metrics:

  • Impact Metrics
    • Revenue
    • Number of Customers
    • Number of Active Users
    • North Star Metric
  • Outcome Metrics
    • Funnel metrics
    • User behaviors
    • System performance
    • Quality metrics

User Value will help you reach the North Star Metric Business Value will help to reach the Top Key Performance Indicators

North Start Metric Examples

  • Facebook: Daily Active User
  • Whatsapp: Send Messages
  • YouTube: Minutes watched
  • Airbnb: Nights booked -eBay: GMV

Metric Trees

“If you want to have good ideas you must have many ideas. Most of them will be wrong, and what you have to learn is which ones to throw away.“ Linus Pauling

GIST Idea Flow

Steps

AFTER Framwork

Context

永久链接

加载更早的文章