         Transfer Learning for Nonparametric Contextual Dynamic Pricing


                                     Fan Wang 1 Feiyu Jiang 2 Zifeng Zhao 3 Yi Yu 1


                         Abstract                                   the rapid growth of online marketplaces and advances in
     Dynamic pricing strategies are crucial for firms               data collection have further enabled sellers to use contex-
     to maximize revenue by adjusting prices based                  tual information, such as customer characteristics, product
     on market conditions and customer characteris-                 features and market trends, to make more informed pricing
     tics. However, designing optimal pricing strate-               decisions. This has fostered research in contextual dynamic
     gies becomes challenging when historical data                  pricing (e.g. Wang et al., 2023; Luo et al., 2024; Fan et al.,
     are limited, as is often the case when launch-                 2024), which further incorporates in-depth information to
     ing new products or entering new markets. One                  optimize pricing strategies.
     promising approach to overcome this limitation is              Effective dynamic pricing involves balancing the explo-
     to leverage information from related products or               ration of the unknown revenue model with the exploitation
     markets to inform the focal pricing decisions. In              of the estimated revenue model to maximize rewards. The
     this paper, we explore transfer learning for non-              revenue model, representing the relationship between covari-
     parametric contextual dynamic pricing under a                  ates, prices and revenue, has been explored under both para-
     covariate shift model, where the marginal distri-              metric and nonparametric settings in the literature. The para-
     butions of covariates differ between source and                metric settings impose specific assumptions on the revenue
     target domains while the reward functions remain               model and have been widely studied (e.g. Qiang & Bayati,
     the same. We propose a novel Transfer Learn-                   2016; Javanmard & Nazerzadeh, 2019; Ban & Keskin, 2021;
     ing for Dynamic Pricing (TLDP) algorithm that                  Wang et al., 2021a; Zhao et al., 2024). The nonparametric
     can effectively leverage pre-collected data from a             settings provide more flexibility, making them more suitable
     source domain to enhance pricing decisions in the              for real-world applications where customer behaviour and
     target domain. The regret upper bound of TLDP is               market conditions are diverse and unpredictable (e.g. Chen
     established under a simple Lipschitz condition on              & Gallego, 2021; Chen et al., 2023).
     the reward function. To establish the optimality
     of TLDP, we further derive a matching minimax                  Despite the wide applications of contextual dynamic pric-
     lower bound, which includes the target-only sce-               ing, collecting sufficient data to design an optimal pricing
     nario as a special case and is presented for the first         strategy can be challenging, particularly when launching
     time in the literature. Extensive numerical exper-             a new product or entering a new market with limited his-
     iments validate our approach, demonstrating its                torical data. In contrast, abundant data may be available
     superiority over existing methods and highlight-               from related products or markets, from which one may lever-
     ing its practical utility in real-world applications.          age information to achieve improved decision-making. For
                                                                    instance, historical data from other platforms or existing
                                                                    markets can help sellers optimize pricing strategies more
1. Introduction                                                     efficiently when entering new environments. This naturally
                                                                    falls in the territory of transfer learning (e.g. Pan & Yang,
Dynamic pricing is a fundamental strategy used across many          2009), where datasets from similar but different distribu-
industries to maximize revenue by adjusting prices based            tions are utilized to enhance learning of a target dataset.
on market conditions (e.g. Araman & Caldentey, 2009; Bes-
bes & Zeevi, 2009; Wang et al., 2021b). In recent years,            Transfer learning, as a research area, has been extensively
                                                                    studied in the machine learning literature, with applications
   1
     Department of Statistics, University of Warwick 2 School       in areas such as recommendation systems (e.g. Pan et al.,
of Management, Fudan University 3 Mendoza College of Busi-          2010), language models (e.g. Han et al., 2021) and disease
ness, University of Notre Dame. Correspondence to: Fan Wang         detection (e.g. Maqsood et al., 2019). It has recently also
<fan.wang.6@warwick.ac.uk>.
                                                                    gained attention in statistics and has been explored in vari-
Proceedings of the 42 nd International Conference on Machine        ous problems, such as nonparametric regression (Cai & Pu,
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025         2022b), contextual multi-armed bandits (Suk & Kpotufe,
by the author(s).

                                                                1
                               Transfer Learning for Nonparametric Contextual Dynamic Pricing

2021; Cai et al., 2024a) and functional data analysis (Cai              1.2. Notation and organization
et al., 2024b). In statistical transfer learning, two common
                                                                        Denote X = [0, 1]d as the covariate space, P = [0, 1] as the
settings are posterior drift, where the conditional distribu-
                                                                        price space and Z = X × P as the joint space of covariates
tions of responses given covariates vary (e.g. Reeve et al.,
                                                                        and prices. All balls in this paper are defined with respect to
2021; Maity et al., 2022), and covariate shift, where the
                                                                        the ℓ∞ -norm. Let B(s, r), BX (s, r) and BP (s, r) denote
conditional distributions remain consistent but the marginal
                                                                        the balls in Z, X and P, respectively, centred at s with
distributions of covariates differ (e.g. Hanneke & Kpotufe,
                                                                        radius r. For any ball B, let r(B) denote its radius and
2019; Kpotufe & Martinet, 2021).
                                                                        c(B) its centre. For n ∈ Z+ , let [n] = {1, . . . , n}. For any
                                                                        distribution P , let supp(P ) be its support.
1.1. List of contributions
                                                                        The remainder of the paper is organized as follows. In Sec-
In this paper, we study transfer learning for nonparametric             tion 2, we formally define the problem. Section 3 introduces
contextual dynamic pricing under the covariate shift model.             the TLDP algorithm. In Section 4, we present theoretical re-
The main contributions of this paper are summarized as                  sults on the regret bounds of the proposed method, followed
follows.                                                                by a matching minimax lower bound. We demonstrate the
Firstly, to the best of our knowledge, this is the first study to       practical performance of our approach through comprehen-
explore transfer learning in dynamic pricing. We introduce a            sive numerical experiments in Section 5 and conclude in
novel algorithm, the Transfer Learning for Dynamic Pricing              Section 6.
(TLDP) algorithm, which effectively leverages source do-
main data to enhance pricing decisions in the target domain.            2. Problem formulation
Secondly, we establish theoretical guarantees for the pro-              In this section, we introduce a nonparametric contextual dy-
posed transfer learning algorithm and further derive a mini-            namic pricing model under the transfer learning framework.
max lower bound. We demonstrate that the proposed algo-                 Our goal is to minimize the regret for the target data by
rithm achieves minimax optimal regret, with the cumulative              leveraging pre-collected data from a related source domain.
regret (up to logarithmic factors) given by
                                                                        For the target domain, the seller sells a product to nQ ∈ Z+
                                   d+3       1
                                          − d+3                         sequentially arriving consumers. At each time t ∈ [nQ ], the
               nQ {nQ + (κnP )    d+3+γ   }       ,
                                                                        seller observes contextual information Xt ∈ X drawn from
where nQ ∈ Z+ represents the length of the target hori-                 the distribution QX . Based on Xt , the seller sets a price
zon, nP ∈ N represents the number of observations in the                pt ∈ P and then receives a random revenue Yt ∈ [0, 1] with
pre-collected source dataset, γ ∈ [0, ∞] (see Definition 2.3            its conditional expectation
later) denotes the transfer exponent quantifying the simi-
larity between source and target covariate distributions and                            E{Yt |Xt , pt } = f (Xt , pt ),            (1)
κ ∈ [0, 1] (see Definition 2.4 later) represents the explo-
ration coefficient quantifying the minimal level to which the           where f : Z → [0, 1] is the unknown reward function.
source data adequately explores the price space.                        In the context of transfer learning, we further assume that
Thirdly, as an important byproduct, our study covers the                the seller has access to a pre-collected source dataset
special case of nonparametric contextual dynamic pricing                                             P nP
                                                                                 DP = {(XtP , pP
                                                                                               t , Yt )}t=1 ⊂ Z × [0, 1],          (2)
without transfer learning under the setting of a Lipschitz
reward function. Our proposed algorithm achieves the regret             where XtP ∈ X is drawn from a distribution PX , pP    t ∈ P
upper bound of order                                                    is the price and YtP corresponds to the observed random
                          (d+2)/(d+3)
                                                                        revenue with its conditional expectation E{YtP |XtP , pPt }=
                         nQ                                             f P (XtP , pP ). As mentioned in the introduction, this paper
                                                                                    t
                                                                        focuses on the covariate shift model, where the marginal
up to logarithmic factors, with an accompanying minimax                 distributions of covariates between the source and target
lower bound. To the best of our knowledge, this is the first            domains are different, i.e. PX ̸= QX , but the conditional
minimax lower bound result under the Lipschitz condition                distributions of rewards are identical, i.e.
for nonparametric contextual dynamic pricing with a general
dimension d ≥ 1.                                                            f (x, p) = f P (x, p),   ∀(x, p) ∈ [0, 1]d × [0, 1].   (3)
Finally, we validate the proposed approach through exten-
sive numerical experiments, demonstrating its effectiveness             Our primary objective is to design a pricing strategy that
compared to existing methods and highlighting its practical             minimizes the cumulative regret over the selling horizon in
utility in real-world applications.                                     the target domain by effectively utilizing both the source

                                                                    2
                               Transfer Learning for Nonparametric Contextual Dynamic Pricing

data DP and the observed target data. Formally, let Π                   The transfer exponent γ quantifies the extent to which the
denote the family of all price policies π = {pπ1 , . . . , pπnQ }       source covariate distribution PX covers the target covariate
where each price pπt is Ft−1 -measurable, t ∈ Z+ . The field            distribution QX . A smaller γ indicates a greater overlap,
Ft−1 is the σ-algebra generated by the history target data              enabling more efficient information transfer. In an extreme
                                                    P nP
{(Xs , ps , Ys )}t−1                      P    P
                 s=1 , all source data {(Xs , ps , ys )}s=1 and         case where PX and QX are identical, γ = 0 indicating a
covariate Xt . For any price strategy π ∈ Π, the cumulative             perfect overlap. This parameter is crucial for analyzing the
regret over nQ steps is defined as                                      potential performance improvements achievable by transfer
                                                                        learning in our framework.
                     nQ
                     X
                        E f ∗ (Xt ) − f (Xt , pπt ) ,                   To ensure that the source data provides sufficient variability
                         
      R = Rπ (nQ ) =                                         (4)
                         t=1                                            in prices across different covariates, we further introduce
                                                                        the exploration coefficient. This parameter quantifies the
where f ∗ (x) = maxp∈P f (x, p) is the maximum expected                 minimal extent to which the source data adequately explores
revenue for any x ∈ X . We further impose the follow-                   the price space. It is essential for accurately estimating the
ing assumptions on the reward function and the underlying               reward function over various price levels.
distributions.
                                                                        Definition 2.4 (Exploration coefficient). Let µ denote the
Assumption 2.1. Assume that the reward function f : Z →                 joint distribution of the source covariate-price pairs and let
[0, 1] is Lipschitz continuous with respect to the ℓ∞ -norm,            PX be the marginal distribution of the source covariates.
i.e. there exists an absolute constant CLip > 0 such that for           Define the exploration coefficient κ ∈ [0, 1] as
any (x1 , p1 ), (x2 , p2 ) ∈ Z,                                                                                               
                                                                                                 µ [p − r, p + r] × BX (x, r)
                                                                              κ=        inf                                     .
|f (x1 , p1 )−f (x2 , p2 )| ≤ CLip ∥(x⊤       ⊤   ⊤       ⊤
                                      1 , p1 ) −(x2 , p2 ) ∥∞ .                     x∈supp(PX ),      2r · PX (BX (x, r))
                                                                                    r∈(0,1/2],
                                                                                    p∈[r,1−r]
Assumption 2.1 regulates the changes in the reward func-
tion led by the changes in covariates and prices. This is               The exploration coefficient κ measures the minimal condi-
commonly used in the literature of online learning with non-            tional probability density of the price given the covariates.
parametric reward function (e.g. Slivkins, 2011; Chen &                 A larger κ indicates that the source data provides better
Gallego, 2021; Chen et al., 2023), facilitating theoretical             exploration of the price space for each covariate. This co-
analysis of the estimation and learning processes. Assump-              efficient is crucial in assessing the usefulness of the source
tion 2.2 below is a regularity condition on QX to ensure the            data for learning the reward function in the target domain.
covariate space will be explored sufficiently.                          The definition of κ extends the exploration coefficient intro-
Assumption 2.2. Assume that for the target distribution                 duced in Cai et al. (2024a) for multi-armed bandits (MAB)
QX , there exist constants 0 < cQ < CQ such that for any                to continuous action spaces in dynamic pricing. To illustrate
x ∈ supp(QX ) and r ∈ (0, 1],                                           this concept, consider the following example.
                                                                        Example 2.5. Suppose that the source dataset DP is defined
            cQ rd ≤ QX BX (x, r) ≤ CQ rd .
                                  
                                                                        in (2) and the source prices are drawn independently of
                                                                        source covariates from a distribution with density hP given
To quantify the potential benefit of transfer learning from             by hP (p) = δi if p ∈ (ai−1 , ai ], for i ∈ [m], where 0 =
the source domain to the target domain, we introduce the                a0 < a1 < · · · < am−1 < am = 1 and δi > 0 such that
                                                                        R1
notion of transfer exponent, a parameter widely used in the                 h (p) dp = 1. This is a piecewise uniform distribution
                                                                          0 P
transfer learning literature with covariate shift (e.g. Kpotufe         and the exploration coefficient is κ = mini∈[m] δi , which
& Martinet, 2021; Suk & Kpotufe, 2021; Cai et al., 2024a).              holds for any source covariate distribution PX .
It quantifies the degree of similarity between the source
and target covariate distributions, regulating the potential of         3. Transfer learning algorithm
effective knowledge transfer.
                                                                        In this section, we introduce the Transfer Learning for Dy-
Definition 2.3 (Transfer exponent). The transfer exponent
                                                                        namic Pricing (TLDP) algorithm, detailed in Algorithm 1.
γ ∈ [0, ∞] of the source covariate distribution PX with
                                                                        TLDP borrows the idea of contextual zooming from Slivkins
respect to the target covariate distribution QX is defined as
                                                                        (2011) proposed for MAB problems with only target data,
            n                                                           and addresses the unique challenge of leveraging source
   γ = inf γ ′ ≥ 0 ∃ a constant 0 < cγ ′ ≤ 1 such that
                                                                        data to refine the exploration of the covariate-price space
                                       ′
              PX BX (x, r) ≥ cγ ′ rγ QX BX (x, r) ,
                                                                      in the target domain. At a high level, TLDP is an upper
                                           o                            confidence bound (UCB) type algorithm that handles the
              ∀x ∈ supp(QX ), r ∈ (0, 1] .                              nonparametric setting through an adaptive partitioning strat-

                                                                    3
                              Transfer Learning for Nonparametric Contextual Dynamic Pricing

Algorithm 1 Transfer Learning for Dynamic Pricing (TLDP)              Dynamic pricing via UCB. At each time t ∈ [nQ ], af-
  Input: horizon length nQ , source dataset DP and the                ter observing the covariate Xt , TLDP sets a price by first
  smallest radius to explore r̃                                       selecting a ball B in the covariate-price space from the
  Initialize: t ← 1, At ← {Z}, nt (B) ← nP              P             current candidate set At that maximizes the revenue poten-
                                                    B (D ),
                   P     P
  ret (B) ← reB (D ), ∀B ∈ At                                         tial It (B) - defined below, then randomly chooses a price
  while t ≤ nQ do                                                     such that the covariate-price pair (Xt , p) is in B, to be spe-
    Observe Xt                                                        cific, in dom(B, At ) as defined in (7).
    relt ← {B ∈ At : ∃p ∈ [0, 1],(Xt , p) ∈ dom(B, At )}              Definition of It . Let nt (B) and ret (B) denote the cumula-
    B sel ← uniformly choose from arg maxB∈relt It (B)                tive count and revenue of B from the target data before time
    pt ∼ Uniform{p : (Xt , p) ∈ dom(B sel , At )}                     t and the source data DP , defined as nt (B) = nP      P
                                                                                                                         B (D ) +
    nQ       sel            sel    P     P
                                                                         s=1 1{(Xs , ps ) ∈ B} and ret (B) = reB (D ) +
       t (B ) ← nt (B ) − nB sel (D )
                                                                      Pt−1                                               P   P
               Q                Q
                     sel
    while nt (B ) ≥ TB sel and r(B sel ) ≥ 2r̃ do
                                                                         s=1 Ys 1{(Xs , ps ) ∈ B}, with nB (D ) and reB (B) de-
                                                                      Pt−1                                 P    P         P
        B ′ ← B (Xt , pt ), r(B sel )/2                               fined in (5) and (6), respectively. For any B ⊂ Z, let its
        At ← At ∪ {B ′ }, nt (B ′ ) ← nP         P
                                           B ′ (D )                   UCB uncertainty level be
                 ′        P      P   sel     ′
        ret (B ) ← reB ′ (D ), B ← B                                                          s
    end while                                                                                                     d+3
                                                                                                 log nQ ∨ (κnP ) d+3+γ
    for B ∈ At \{B sel } do                                                   conft (B) = 2                                .    (8)
        nt+1 (B) ← nt (B), ret+1 (B) ← ret (B)                                                            nt (B)
    end for
                                                                      As nt (B) grows, i.e. more samples are collected in B,
    nt+1 (B sel ) ← nt (B sel ) + 1
                                                                      conft (B) decreases, reflecting increasing in confidence.
    ret+1 (B sel ) ← ret (B sel ) + Yt , t ← t + 1
                                                                      The revenue potential index is then defined as
  end while
                                                                                                  pre ′
                                                                       It (B) =CI r(B) + min ′
                                                                                                   It (B )
                                                                                              B ∈At
egy. Unlike approaches relying on predefined partitions,                                              + CI ∥c(B) − c(B ′ )∥∞ , (9)
TLDP sequentially refines partitions of the covariate-price
space in response to observed data. The key components of             where CI > 0 is a constant and the pre-index Itpre (B) is
TLDP are outlined following Algorithm 1.                              given by

A head start by the source data. At the core, the pric-                        Itpre (B) = vt (B) + CI r(B) + conft (B),        (10)
ing is conducted by sequentially discretizing the contin-
uous covariate-price space Z. To be specific, this is to              with vt (B) = ret (B)/nt (B).
produce a collection of active l∞ -balls in Z, namely At
                                                                      The index It (B) is adapted from its MAB counterpart
at step t ∈ [nQ ]. The source data provide a head start for
                                                                      proposed in Slivkins (2011) to balance the estimated re-
such partitioning, starting with the entire space A1 = {Z}.
                                                                      ward vt (B), the radius of the ball r(B), the uncertainty
TLDP sequentially refines the partition and adds smaller
                                                                      level conft (B) and its distance to its neighbours ∥c(B) −
balls into At . This partitioning is to be detailed later. We
                                                                      c(B ′ )∥∞ - the choice of the norm is reflected in the Lips-
first introduce some necessary notation. For a ball B ⊂ Z,
                                                                      chitz condition imposed in Assumption 2.1. The selection
let its count and cumulative revenue utilizing the source
                                                                      of inputs κ and CI is further discussed in Section 5.1.
dataset DP be

                                   1{(X, p) ∈ B}                      Partitioning. The last ingredient is the sequential parti-
                            X
           nP    P
            B (D ) =                                       (5)
                       (X,p,Y )∈D P
                                                                      tioning. A ball is further refined when enough samples are
                                                                      collected and its radius is not too small. The refinement is
and                                                                   conducted by adding a smaller sub-ball to the candidate set
                                                                      At . To be specific, the partitioning is summoned when the
                                     Y 1{(X, p) ∈ B}.
                          X
        reP   P
          B (D ) =                                         (6)        target sample count nQ                   Q
                                                                                             t (B) exceeds TB , where
                      (X,p,Y )∈D P                                                             (
                                                                                                0,        ω(B) < nP   P
                                                                                                                  B (D ),
For any ball B ∈ At , let its domain be                                 TBQ := TBQ (DP ) =                        P   P
                                                                                                                                (11)
                                                                                                 ω(B),    ω(B) ≥ nB (D ),
       dom(B, At ) = B\(∪B ′ ∈At : r(B ′ )<r(B) B ′ ),     (7)
                                                                      with
                                                                                                       d+3
excluding any overlaps caused by strictly smaller balls in At ,                        log nQ ∨ (κnP ) d+3+γ
                                                                                                            
thereby preventing redundant coverage.                                          ω(B) =                        .                 (12)
                                                                                              r(B)2

                                                                  4
                               Transfer Learning for Nonparametric Contextual Dynamic Pricing

This threshold incorporates the contributions from the                 we conjecture the TLDP algorithm (Algorithm 1) can
source data. Note that when there is sufficient source data            achieve a regret bound
within the ball, no additional target data is required for ex-                     n                           1
                                                                                                         o− d+1+2β
                                                                                                  d+1+2β
ploration.                                                                    R ≲nQ nQ + (κnP ) d+1+2β+γ
                                                                                             1               d+1+2β

4. Minimax optimality                                                               · log d+1+2β nQ + (κnP ) d+1+2β+γ .

In this section, we establish theoretical guarantees for the           The smallest radius to explore r̃ mediates an exploration-
TLDP algorithm presented in Algorithm 1. Specifically,                 exploitation trade-off. A smaller r̃ leads to finer partitions
we derive an upper bound on the cumulative regret and a                and more precise local estimates but increases exploration
matching minimax lower bound, demonstrating that TLDP                  cost, while a larger r̃ reduces the exploration cost at the
achieves minimax optimality under the given assumptions.               expense of estimation accuracy. The choice of r̃ in (13)
We also compare our findings with existing literature to               strikes a balance in this trade-off, ensuring the algorithm
highlight the contributions of our approach. We begin by               achieves optimal regret bounds.
presenting the upper bound on the regret achieved by TLDP.
                                                                       The regret bound in Theorem 4.1 elucidates the dependence
Theorem 4.1. Suppose that the source dataset DP =
                P nP                                                   of the cumulative regret on the transfer exponent γ and
{(XtP , pPt , Yt )}t=1 is defined in (2) with triplets indepen-        the exploration coefficient κ. A lower transfer exponent γ
dent across time. Assume that the target dataset, defined
                                                                       indicates higher similarity between the source and target co-
in (1), satisfies (3), and that Assumptions 2.1 and 2.2 hold,
                                                                       variate distributions PX and QX , leading to a larger adjusted
with CI ≥ CLip where CI , CLip > 0 are constants defined
                                                                       source data size (κnP )(d+3)/(d+3+γ) and thus reducing the
in (9) and Assumption 2.1, respectively. Let Algorithm 1
                                                                       regret.
have input r̃ satisfying that
                                                                       Remark 4.3. As an alternative to the global exploration
                                                   1
                                         d+3
                                                                       coefficient in Definition 2.4, one can instead define a scale-
                   "                           # d+3
                     log nQ + (κnP ) d+3+γ
           r̃ = Cr                     d+3            ,    (13)        dependent exploration coefficient κr ∈ [0, 1] for any radius
                        nQ + (κnP ) d+3+γ                              r ∈ (0, 1/2] as
and Cr4 cγ cQ ≥ 8, where Cr > 0 is a constant and                                              µ [p − r′ , p + r′ ] × BX (x, r′ )
                                                                                                                                 
cγ , cQ > 0 are constants defined in Definition 2.3 and                    κr =        inf                                         .
                                                                                  x∈supp(PX ),      2r′ · PX (BX (x, r′ ))
Assumption 2.2, respectively. Let π denote the TLDP pol-                          r ′ ∈[r,1/2],
icy given by Algorithm 1. Recall the cumulative regret R                          p∈[r ′ ,1−r ′ ]
defined in (4) and it holds that
                                                                       Note that κr is non-decreasing in r and satisfies that κ =
                                            1
                                       o− d+3
                     n             d+3                                 inf r∈(0,1/2] κr . It quantifies how well the source data ex-
          R ≤CnQ nQ + (κnP ) d+3+γ                                     plores the covariate-price space at a given scale. Under the
                          1              d+3
                   · log d+3 nQ + (κnP ) d+3+γ ,                       conditions of Theorem 4.1, for any choice of the smallest
                                                                       radius to explore r̃ ∈ (0, 1/2], with the local coefficient κr̃ ,
where C > 0 is a constant only depending on constants CI ,             the regret satisfies that
Cr , CLip , cγ and cQ .                                                                                                            d+3
                                                                                          −(d+2)
Remark 4.2. Theorem 4.1 establishes the regret bound under                   nQ r̃ + r̃
                                                                                                  log(nQ ),      nQ ≥ (κr̃ nP ) d+3+γ ,
                                                                                                                                    d+3
                                                                             
                                                                             
the assumption that the reward function f is Lipschitz con-                  nQ r̃,
                                                                                                                 nQ < (κr̃ nP ) d+3+γ ,
tinuous with respect to the ℓ∞ -norm (see Assumption 2.1).              R≲                            n 8 log (κ n ) d+3+γd+3       1
                                                                                                                                 o d+3+γ
                                                                                                                  r̃ P
This assumption can be relaxed to accommodate more gen-
                                                                             
                                                                             
                                                                             
                                                                                            and r̃ ≥          cγ cQ κr̃ nP              ,
                                                                             
                                                                              −(d+2)
eral smoothness conditions. In particular, one may consider                     r̃        log(κr̃ nP ),                        otherwise.
a Hölder continuity assumption (e.g. Kleinberg, 2004; Cai &
Pu, 2022a), where there exists an absolute constant Ch > 0             These three regimes illustrate how both the sample size and
such that for any (x1 , p1 ), (x2 , p2 ) ∈ Z,                          the exploration radius r̃ jointly influence the overall regret.
                                                                       While we focus on the global coefficient κ in this paper for
|f (x1 , p1 ) − f (x2 , p2 )| ≤ Ch ∥(x⊤       ⊤    ⊤       ⊤ β
                                      1 , p1 ) − (x2 , p2 ) ∥∞ ,       simplicity, the local coefficient κr characterizes tighter per-
for some smoothness parameter β ∈ (0, 1]. We believe that              formance guarantees in scenarios where exploration quality
the techniques developed in this paper can be extended to              varies across different scales, particularly useful when the
this setting. Choosing the smallest exploration radius as              source data do not uniformly cover the entire price space.
               "                  d+1+2β
                                                  1
                                             # d+1+2β                  We now show that the regret upper bound in Theorem 4.1 is
                 log nQ + (κnP ) d+1+2β+γ                              minimax optimal (up to a logarithmic factor) by presenting
      r̃ = Cr                    d+1+2β               ,
                    nQ + (κnP ) d+1+2β+γ                               the following matching lower bound.

                                                                   5
                               Transfer Learning for Nonparametric Contextual Dynamic Pricing

Theorem 4.4. Let I(γ, cγ , κ, CLip , cQ ) denote the class              satisfy (1), Assumptions 2.1 and 2.2. It holds that
of nonparametric dynamic pricing problems such that (i)                                                              d+2
                                             P nP
the source dataset DP = {(XtP , pP     t , Yt )}t=1 , defined in                   inf     sup                     d+3
                                                                                                    Rπ,I (nQ ) ≥ cnQ   ,
                                                                                    π I∈I(C ,c )
(2), satisfies Definition 2.4 with triplets independent across                             Lip Q

time; (ii) the target dataset, defined in (1), satisfies Assump-
                                                                        where c > 0 is a constant only depending on constants CLip
tion 2.2; and (iii) both datasets satisfy (3), Assumption 2.1
                                                                        and cQ .
and Definition 2.3. It holds that
                                                                        It is worth noting that even without considering transfer
  inf        sup         Rπ,I (nQ )
   π I∈I(γ,c ,κ,C ,c )
            γ    Lip Q
                                                                        learning (i.e. when only target data are available), the min-
                                                 d+3       1
                                                       − d+3           imax lower bound in Corollary 4.5 is, to the best of our
                         ≥ cnQ nQ + (κnP ) d+3+γ                ,       knowledge, the first result established under the Lipschitz
                                                                        assumption stated in Assumption 2.1. Previous works have
where c > 0 is a constant only depending on constants CLip ,            only established minimax lower bounds either for the case
cγ and cQ .                                                             with a semi-parametric form of the expected revenue func-
                                                                        tion (e.g. Luo et al., 2022; Xu & Wang, 2022) or with addi-
Theorems 4.1 and 4.4 together exhibit a phase transition
                                                                        tional assumption beyond Lipschitz condition on the reward
depending on the relative sizes of the adjusted source data
        d+3                                          d+3                function (e.g. Chen & Gallego, 2020).
(κnP ) d+3+γ and the target data nQ . When (κnP ) d+3+γ ≫
nQ , the algorithm significantly benefits from transfer learn-
ing, otherwise the regret is of the same rate as when only              5. Numerical experiments
the target data are used.                                               In this section, we conduct numerical experiments to support
The most relevant work is Cai et al. (2024a), which studied             our theoretical findings. Synthetic and real data analysis are
transfer learning for nonparametric contextual MAB under                in Sections 5.1 and 5.2, respectively. The code and datasets
covariate shift. In their setting, actions (i.e. arms) are dis-         are available online1 .
crete and for simplicity are treated as a constant (i.e. the
number of arms K ≍ 1). They established a regret bound                  5.1. Simulation studies
of order
                                   d+2 − β                             We conduct simulation studies under the covariate shift
              nQ nQ + (κnP ) d+2+γ d+2β ,                 (14)                                                               nQ
                                                                        model as stated in (3). The target covariates {Xt }t=1    are
with β denoting the smoothness parameter of the reward                  independently and identically distributed (i.i.d.) accord-
function (β = 1 in our setting). The simplification K ≍ 1               ing to QX , a uniform distribution over [0, 1]d . For the
                                                                                                                         nP
results in their regret bound losing explicit control of K,             source domain, covariate-price pairs {XtP , pPt }t=1 are gen-
making their approach inapplicable to infinite or uncount-              erated i.i.d. from a joint distribution µ. We let the source
able action spaces. In contrast, dynamic pricing presents               marginal covariate distribution PX be chosen such that the
a unique challenge due to its continuous action space                   density function pX (x) obeys pX (x) = c∥x − x∗ ∥γ∞ , with
(i.e. prices), requiring more intricate methodologies than              x∗ = (1/2, . . . , 1/2) ∈ Rd and a normalization constant
that in Cai et al. (2024a). Our approach effectively ad-                c = 2γ (γ + d)/d. This choice of pX (x) ensures that PX
dresses this by adaptively partitioning the joint covariate-            satisfies Definition 2.3. The generation of the source prices
price space. This adaptation ensures optimal regret scaling             is detailed in each scenario below. We consider the source
while accounting for both the covariates (of dimension d)               data size nP ∈ {10000(k − 1) : k ∈ [5]}, the target data
and price (of dimension 1). Substituting d + 1 for d in (14)            size nQ ∈ {10000k : k ∈ [5]} and the transfer exponent
shows that their regret bound aligns with the one established           γ ∈ {0.5k : k ∈ [5]}.
in Theorem 4.1.                                                         To assess the performance of TLDP (Algorithm 1) in reduc-
When only target data are utilized, several existing studies            ing target-domain regret, we compare it with TLDP utilising
have developed methods and analyzed regret bounds for dy-               the target data only (Target-Only TLDP), the Adaptive Bin-
namic pricing under semi-parametric forms (e.g. Luo et al.,             ning and Exploration (ABE) algorithm proposed in Chen &
2022; Xu & Wang, 2022; Fan et al., 2024) or additional                  Gallego (2020) and the Explore-then-UCB (ExUCB) algo-
shape constraints beyond Lipschitz continuity (e.g. Chen &              rithm developed in Luo et al. (2022).
Gallego, 2020), with detailed comparisons in Appendix A.                Through this subsection, TLDP refers to Algorithm 1 with
We conclude with a minimax lower bound for the scenario                 nP = 2nQ . Note that both TLDP and Target-Only TLDP
where only target data is available.                                    require the smallest exploration radius r̃ as an input and the
Corollary 4.5. Let I(CLip , cQ ) denote the class of non-                 1
                                                                            https://github.com/chrisfanwang/
parametric dynamic pricing problems such that target data               dynamic-pricing

                                                                    6
                                                                    Transfer Learning for Nonparametric Contextual Dynamic Pricing


  A                                                                  B                                                                                    450
           3000
                                                                              400

                                                                                                                                                          400
           2000
  Regret




                                                                     Regret
                                                                              300

                                                                                                                                                          350
           1000                                                                                                                                                                                    Method




                                                                                                                                                 Regret
                                                                              200

                                                                                                                                                          300                                         TLDP
                                                                                                                                                                                                      Target−Only TLDP
                  10000   20000          30000      40000   50000                    0        10000        20000          30000   40000
                                           nQ                                                                nP
                                                                                                                                                          250
  C                                       γ                          D                                       CI
                  0.5       1            1.5         2      2.5                     0.25        0.5         0.75             1    1.25
                                                                              250
                                                                                                                                                          200



           250                                                                200                                                                               0.00   0.05   0.10   0.15   0.20
                                                                                                                                                                               r
                                                                     Regret
  Regret




                                                                              150
           200
                                                                                                                                              Figure 2. Results for Scenario 3 under posterior drift. The drift
                                                                                                                                              level r varies, with the target data size nQ = 10000, the source
                  0.2      0.4           0.6        0.8     1.0
                                                                              100
                                                                                    0.15       0.20         0.25          0.30    0.35        data size nP = 2nQ , the transfer exponent γ = 1, the exploration
                                          κ                                                                  Cr

                          Method (Panel A)
                                                                                                                                              coefficient κ = 1, the index constant CI = 1 and the exploration
                                 TLDP                                                      Method (Panels B, C & D)                           radius constant Cr = 1/4.
                                 Target−Only TLDP                                             TLDP (varies w/ bottom axis)
                                 ABE                                                          TLDP (varies w/ top axis)
                                 ExUCB


                                                                                                                                              the observed rewards for both target and source datasets
Figure 1. Results for Configuration 1 in Scenario 1. Panel (A)                                                                                are independently and uniformly distributed in the interval
and (B): varying source data size nP and target data size nQ ,                                                                                [f (x, p)−ν, f (x, p)+ν], where f (·, ·) denotes the expected
respectively. Panel (C) varying the transfer exponent γ (top axis)                                                                            reward function and ν = 0.1. The expected reward function
and the exploration coefficient κ (bottom axis). Panel (D): varying                                                                           f is constructed as f (x, p) = θ0 + θ⊤ xp + θ̃p2 , for any
the index constant CI (top axis) and the exploration radius constant                                                                          x ∈ [0, 1]d , p ∈ [0, 1], where θ0 , θ̃ ∈ R and θ ∈ Rd are
Cr (bottom axis). For Panels (B), (C) and (D), we fix nQ = 10000.
                                                                                                                                              specified for each configuration.
                                                                                                                                              We further consider two configurations. Configuration 1.
                                                                                                                                              Let the covariate space dimension be d = 2. The parameters
constant CI to construct the index defined in (9). Specif-                                                                                    of the reward function are set as θ0 = 0.2, θ = (0.3, 0.2)⊤
ically, we set CI = 1 and compute r̃ from (13) using the                                                                                      and θ̃ = −0.1. Configuration 2. Let the covariate space
true values of the exploration coefficient κ, the transfer ex-
                                                                                                                                              dimension be d = 3. The parameters of the reward function
ponent γ and Cr = 1/4. To evaluate robustness, we also                                                                                        are set as θ0 = 0.3, θ = (0.1, 0.4, −0.2)⊤ and θ̃ = −0.1.
conduct simulations using a list of mis-specified values of κ
and γ when computing r̃. The corresponding simulation                                                                                         Scenario 2. The conditional density of the source price,
results can be found in Appendix D.1. Furthermore, to ex-                                                                                     given the source covariates, is defined as follows for any
amine the sensitivity of TLDP to the choice of the constants,                                                                                 x ∈ [0, 1]d and p ∈ [0, 1]: hP (p|x) = {1 − κ(1 − r∗ )}/r∗
additional simulation studies are conducted for varying CI                                                                                    if p ∈ [p∗ − r∗ /2, p∗ + r∗ /2] and hP (p|x) = κ other-
and Cr . For the ABE algorithm, we set M = 0.1, the                                                                                           wise, with p∗ = 1/2, r∗ = 1/4 and κ ∈ {0.2k : k ∈
constant used to define the maximal number observed in a                                                                                      [5]}. Further, conditioned on the covariate x and price p,
level-k bin in the partition, as suggested by Chen & Gal-                                                                                     the observed rewards for both target and source datasets
lego (2020). For ExUCB, parameter choices include the                                                                                         are independently distributed Y ∼ N (f (x, p), σ 2 ) with
phase exponent β = 2/3, the UCB exponent γ = 1/6, the                                                                                         σ = 0.01. For the expected reward function f , we adopt
exploration phase constant C1 = 1, the discretization con-                                                                                    the setting from Cai et al. (2024a). Define a function
stant C2 = 20 and the regularization parameter in UCB                                                                                         ϕ : R+ → [0, 1] by ϕ(z) = 1 for 0 ≤ z < 1/12,
λ = 0.1, as suggested by Luo et al. (2022). In addition,                                                                                      ϕ(z) = 2 − 12z for 1/12 ≤ z < 1/6 and 0 ϕ(z) = 0
we fix the maximum price pmax = 1 and the maximum                                                                                             otherwise. The reward function fP     : [0, 1]d × [0, 1] → [0, 1]
                                                                                                                                                                                      m
possible revenue B = 1 for the ExUCB implementation.                                                                                          is then set to be f(x, p) = 1/4 + i=1 3/4ϕ ∥(x⊤ , p)⊤ −
                                                                                                                                              ((x∗i )⊤ , p∗i )⊤ ∥∞ 1 x ∈ BX (x∗i , r∗ ) , where m > 0,
                                                                                                                                                                    
Scenario 1. The conditional density of the source price,
                                                                                                                                              r∗ ∈ (0, 1] and {((x∗i )⊤ , p∗i )⊤ }m
                                                                                                                                                                                  i=1 are specified for each
given the source covariates, is defined as follows for any
                                                                                                                                              configuration.
x ∈ [0, 1]d and p ∈ [0, 1], hP (p|x) = κ if p ∈ [p∗ −
r∗ /2, p∗ + r∗ /2] and hP (p|x) = {1 − κr∗ }/(1 − r∗ ) oth-                                                                                   We further consider two configurations. Configuration
erwise, with p∗ = 1/2, r∗ = 1/4 and κ ∈ {0.2k : k ∈ [5]}.                                                                                     1. Let the covariate space dimension be d = 2. Let
Furthermore, conditioned on the covariate x and price p,                                                                                      m = 4, r∗ = 1/4 and centres be {((x∗i )⊤ , p∗i )⊤ }m
                                                                                                                                                                                                 i=1 =


                                                                                                                                          7
                               Transfer Learning for Nonparametric Contextual Dynamic Pricing

{(1/4, 1/4, 1/4), (3/4, 1/4, 1/4), (1/4, 3/4, 3/4), (3/4,
                                                                        Table 1. Results for the auto loan dataset with East South Central
3/4, 1/4)}. Configuration 2. Let the covariate space
                                                                        data as the target division. Columns correspond to the source
dimension be d = 3. Let m = 8, r∗ = 1/4 and                             divisions utilized in TLDP. Here, nP represents the number of
centres be {((x∗i )⊤ , p∗i )⊤ }m
                               i=1 = {(1/4, 1/4, 1/4, 1/4),             the source data utilized in TLDP and n denotes the total number
(3/4, 1/4, 1/4, 1/4), (1/4, 3/4, 1/4, 1/4), (3/4, 3/4, 1/4,             of source observations. Each cell reports the mean and standard
1/4), (1/4, 1/4, 3/4, 3/4), (3/4, 1/4, 3/4, 3/4), (1/4, 3/4,            deviation over 100 simulations.
3/4, 3/4), (3/4, 3/4, 3/4, 3/4)}.
                                                                            M ETHODS                  M OUNTAIN          PACIFIC
Scenario 3. Building on the setup of Configuration 1 in
Scenario 1, we fix the target reward parameters as θ0 =                     ABE                      70.81 (1.40)     70.81 (1.40)
                                                                            E X UCB                  64.91 (5.31)     64.91 (5.31)
0.2, θ = (0.3, 0.2)⊤ and θ̃ = −0.1. We then modify the                      TLDP(nP = 0)             71.95 (2.87)     71.95 (2.87)
true source reward function to f (x, p) = θ0′ + x⊤ θ′ p +                   TLDP(nP = 0.25n)         55.63 (8.04)     51.61 (8.89)
θ̃′ p2 , where θ0′ ∼ N (θ0 , σ 2 ), θ′ ∼ N (θ, σ 2 Id ) and θ̃′ ∼           TLDP(nP = 0.5n)          54.29 (7.06)     51.44 (7.12)
N (θ̃, σ 2 ). We set σ = r · min{|θ0 |, ∥θ∥∞ , |θ̃|}, where the             TLDP(nP = 0.75n)         51.38 (6.92)     49.40 (7.40)
drift severity parameter r ∈ {0.05(k − 1) : k ∈ [5]}.                       TLDP(nP = n)             50.23 (7.34)     48.72 (8.27)

In Scenarios 1 and 2, we consider the covariate shift set-
ting, where the reward functions are identical between the
source and target domains. Specifically, in Scenario 1, the
                                                                        butions, the regret of TLDP also increases. This indicates
reward function is linear in the covariates and quadratic in
                                                                        less efficient information transfer from the source to the
the price, while in Scenario 2, it is fully nonparametric.
                                                                        target domain. Moreover, as the exploration coefficient κ
In contrast, Scenario 3 considers a posterior drift, where
                                                                        increases, the source data provide better exploration of the
the reward functions differ between source and target do-
                                                                        price space for each covariate. Consequently, the regret
mains, allowing us to assess the robustness of TLDP under
                                                                        of TLDP decreases, indicating more effective information
model misspecification. The simulation results for Config-
                                                                        transfer. Panel (C) is consistent with Theorem 4.1, demon-
uration 1 of Scenario 1 are presented in Figure 1 while
                                                                        strating the impact of these parameters on the efficiency of
results for Scenario 3 are shown in Figure 2, Additional
                                                                        the transfer learning framework. It is evident from Panel
results are provided in Appendix D. Some key observations
                                                                        (D) that the performance of TLDP remains relatively stable
are highlighted in order.
                                                                        across different values of the index constant CI and the ex-
In Scenarios 1 and 2, TLDP outperforms the alternatives.                ploration radius constant Cr , indicating that TLDP is robust
In Scenario 1, ExUCB outperforms ABE and Target-Only                    to the choice of the two constants.
TLDP due to the linear structure of the reward function in
                                                                        In Scenario 3, Figure 2 demonstrates that TLDP continues
the covariates. The ExUCB algorithm is specifically de-
                                                                        to perform well under moderate posterior drift, indicating
signed to leverage such linear relationships, thereby achiev-
                                                                        robustness beyond the covariate shift setting.
ing superior performance. In Scenario 2, ABE and Target-
Only TLDP demonstrate better performance than ExUCB.
                                                                        5.2. Real data analysis
These findings align with the discussion in Section 4 and
Appendix A.                                                             In this section, we evaluate the practical utility of our pro-
In Panel (A), as the target data size nQ increases, the regret          posed algorithm using the auto loan dataset (Phillips et al.,
for all four methods increases. TLDP, however, exhibits a               2015), which consists of 208, 085 applications submitted
significantly slower rate of regret increase compared to its            to a major online lender in the United States between July
competitors, due to its ability to leverage information from            2002 and November 2004. This dataset has been extensively
the additional source data. Moreover, both TLDP and Target-             studied in previous works, such as Phillips et al. (2015), Luo
Only TLDP demonstrate sublinear growth in regret as nQ                  et al. (2024) and Zhao et al. (2024), to assess various dy-
increases, aligning with the theoretical regret order estab-            namic pricing algorithms. The performance of TLDP is still
lished in Theorem 4.1. In Panel (B), as the source data size            compared against ABE and ExUCB.
nP increases, the regret of TLDP decreases, reflecting im-              The loan price is calculated as the net present value of future
proved performance with larger source datasets. This trend              payments adjusted by the loan amount, as follows: Price =
aligns with the theoretical results in Theorem 4.1, where                                     PTerm
                                                 −1/(d+3+γ)
                                                                        Monthly Payment × i=1 (1 + Rate)−i − Loan Amount,
the regret is expected to decrease at the rate nP             ,         where Rate = 0.12% represents the average monthly Lon-
further validating the algorithm’s performance.                         don interbank offered rate during the study period. The
In Panel (C), as the transfer exponent γ increases, reflecting          reward metric is defined as the product of the consumer’s
reduced overlap between source and target covariate distri-             decision (whether the loan is accepted) and the computed
                                                                        price, capturing the total revenue generated for the lender.

                                                                    8
                              Transfer Learning for Nonparametric Contextual Dynamic Pricing

For this analysis, five covariates identified as significant          lyzing the target data and to adaptively update an estimate
in prior studies (e.g. Luo et al., 2024; Zhao et al., 2024)           of γ by measuring empirical overlaps between the source
are included: the loan amount approved, the approved term,            and target covariate distributions. Second, in many applica-
the prime rate, the competitor’s rate and the customer’s              tions, multiple source datasets (K > 1) may be available,
FICO score. All features, including rewards, prices and               each with distinct transfer exponents γk and exploration
covariates, are normalized to the range [0, 1]. Additionally,         coefficients κk . A straightforward approach is to combine
U.S. states are grouped into nine divisions following the             all sources into a single dataset before running TLDP. A
United States Census Bureau classification: East North Cen-           more refined approach is to weight sources adaptively by
tral, East South Central, Middle Atlantic, Mountain, New              estimating κk and γk . Establishing regret bounds for such
England, Pacific, South Atlantic, West North Central and              methods would be more challenging. Lastly, it is intriguing
West South Central. Table 2 in Appendix D provides a                  to explore transfer learning for nonparametric contextual
sample of the processed dataset.                                      dynamic pricing under posterior drift. In this framework, we
                                                                      need to quantify the discrepancies between the reward func-
For this study, the East South Central division (8, 062 appli-
                                                                      tions in the source and target domains and to develop novel
cations) is designated as the target domain due to its smallest
                                                                      methods that effectively leverage transferable information.
data size. The Mountain (12, 527 applications), East North
Central (20, 686 applications), West South Central (25, 695
applications) and Pacific (34, 870 applications) divisions are        Impact Statement
used as source domains for the TLDP algorithm. The true re-
                                                                      This paper presents work whose goal is to advance the field
ward function is approximated using a random forest model
                                                                      of Machine Learning. There are many potential societal
implemented in R (R Core Team, 2021), leveraging the
                                                                      consequences of our work, none which we feel must be
randomForest package (Liaw & Wiener, 2002), trained
                                                                      specifically highlighted here.
on the target data. Optimal prices for each observation are
determined by numerically optimizing the approximated
reward function.                                                      References
The results are averaged over 100 simulations, with each              Araman, V. F. and Caldentey, R. Dynamic pricing for non-
simulation randomly selecting 90% of the target data as the             perishable products with demand learning. Operations
test data. All results can be found in Appendix D.2. Table 1            research, 57(5):1169–1188, 2009.
presents selected results with the key findings as follows.
When no source data are utilized (np = 0), TLDP incurs                Ban, G.-Y. and Keskin, N. B. Personalized dynamic pricing
slightly higher regret compared to ABE and ExUCB. While                 with machine learning: High-dimensional features and
ExUCB achieves the lowest average cumulative regret, it                 heterogeneous elasticity. Management Science, 67(9):
exhibits significantly higher variance. Conversely, ABE                 5549–5568, 2021.
demonstrates low variance but relatively high regret. As the
source data size (nP ) increases, TLDP’s cumulative regret            Besbes, O. and Zeevi, A. Dynamic pricing without knowing
consistently decreases, indicating its ability to effectively           the demand function: Risk bounds and near-optimal algo-
leverage data from other divisions.                                     rithms. Operations research, 57(6):1407–1420, 2009.

                                                                      Bu, J., Simchi-Levi, D., and Wang, C. Context-based dy-
6. Conclusion                                                           namic pricing with partially linear demand model. Ad-
In this paper, we study transfer learning for nonparametric             vances in Neural Information Processing Systems, 35:
contextual dynamic pricing under covariate shift, which, to             23780–23791, 2022.
the best of our knowledge, is the first time seen in the liter-
                                                                      Cai, C., Cai, T. T., and Li, H. Transfer learning for contex-
ature. We propose the TLDP algorithm, which adaptively
                                                                        tual multi-armed bandits. The Annals of Statistics, 52(1):
partitions the covariate-price space and leverages source
                                                                        207–232, 2024a.
data information to guide pricing for the target data. We
show that TLDP achieves optimal regret by establishing a
                                                                      Cai, T. T. and Pu, H. Stochastic continuum-armed ban-
matching minimax lower bound.
                                                                        dits with additive models: Minimax regrets and adaptive
Our work offers several interesting directions for future               algorithm. The Annals of Statistics, 50(4):2179–2204,
research. First, the optimality of TLDP depends on prior                2022a.
knowledge of the transfer exponent γ and the exploration co-
efficient κ, which are often unknown in practice. A natural           Cai, T. T. and Pu, H. Transfer learning for nonparametric re-
extension is to estimate κ from the source data before ana-             gression: Non-asymptotic minimax analysis and adaptive
                                                                        procedure. arXiv preprint arXiv:0000.0000, 2022b.

                                                                  9
                             Transfer Learning for Nonparametric Contextual Dynamic Pricing

Cai, T. T., Kim, D., and Pu, H. Transfer learning for func-          Maity, S., Sun, Y., and Banerjee, M. Minimax optimal
  tional mean estimation: Phase transition and adaptive al-           approaches to the label shift problem in non-parametric
  gorithms. The Annals of Statistics, 52(2):654–678, 2024b.           settings. Journal of Machine Learning Research, 23(346):
                                                                      1–45, 2022.
Chen, N. and Gallego, G. Nonparametric pricing ana-
  lytics with customer covariates, 2020. URL https:                  Maqsood, M., Nazir, F., Khan, U., Aadil, F., Jamal, H.,
  //arxiv.org/abs/1805.01136.                                         Mehmood, I., and Song, O.-y. Transfer learning assisted
                                                                      classification and detection of alzheimer’s disease stages
Chen, N. and Gallego, G. Nonparametric pricing analytics              using 3d mri scans. Sensors, 19(11):2645, 2019.
  with customer covariates. Operations Research, 69(3):
  974–984, 2021.                                                     Pan, S. J. and Yang, Q. A survey of transfer learning. IEEE
                                                                       Transactions on knowledge and data engineering, 22(10):
Chen, X., Miao, S., and Wang, Y. Differential privacy in               1345–1359, 2009.
  personalized pricing with nonparametric demand models.
                                                                     Pan, W., Xiang, E., Liu, N., and Yang, Q. Transfer learn-
  Operations Research, 71(2):581–602, 2023.
                                                                       ing in collaborative filtering for sparsity reduction. In
Fan, J., Guo, Y., and Yu, M. Policy optimization using                 Proceedings of the AAAI Conference on Artificial Intelli-
  semiparametric models for dynamic pricing. Journal of                gence, volume 24, pp. 230–235, 2010.
  the American Statistical Association, 119(545):552–564,            Phillips, R., Şimşek, A. S., and Van Ryzin, G. The effective-
  2024.                                                                ness of field price discretion: Empirical evidence from
Han, W., Pang, B., and Wu, Y. Robust transfer learning with            auto lending. Management Science, 61(8):1741–1759,
  pretrained language models through adapters, 2021. URL               2015.
  https://arxiv.org/abs/2108.02340.                                  Qiang, S. and Bayati, M. Dynamic pricing with demand
                                                                       covariates. arXiv preprint arXiv:1604.07463, 2016.
Hanneke, S. and Kpotufe, S. On the value of target data
  in transfer learning. Advances in Neural Information               R Core Team. R: A Language and Environment for Sta-
  Processing Systems, 32, 2019.                                        tistical Computing. R Foundation for Statistical Com-
                                                                       puting, Vienna, Austria, 2021. URL https://www.
Javanmard, A. and Nazerzadeh, H. Dynamic pricing in                    R-project.org/.
  high-dimensions. Journal of Machine Learning Research,
  20(9):1–49, 2019.                                                  Reeve, H. W., Cannings, T. I., and Samworth, R. J. Adaptive
                                                                       transfer learning. The Annals of Statistics, 49(6):3618–
Kleinberg, R. Nearly tight bounds for the continuum-armed              3649, 2021.
  bandit problem. Advances in Neural Information Process-
  ing Systems, 17, 2004.                                             Slivkins, A. Contextual bandits with similarity informa-
                                                                        tion. In Proceedings of the 24th annual Conference On
Kpotufe, S. and Martinet, G. Marginal singularity, and the             Learning Theory, pp. 679–702. JMLR Workshop and
  benefits of labels in covariate-shift, 2020. URL https:               Conference Proceedings, 2011.
 //arxiv.org/abs/1803.01833.
                                                                     Suk, J. and Kpotufe, S. Self-tuning bandits over unknown
Kpotufe, S. and Martinet, G. Marginal singularity and                  covariate-shifts. In Algorithmic Learning Theory, pp.
  the benefits of labels in covariate-shift. The Annals of             1114–1156. PMLR, 2021.
 Statistics, 49(6):3299–3323, 2021.
                                                                     Tsybakov, A. Introduction to Nonparametric Estimation.
Liaw, A. and Wiener, M. Classification and regression by               Springer, 2009.
  randomforest. R News, 2(3):18–22, 2002. URL https:                 Wainwright, M. J. High-dimensional statistics: A non-
  //CRAN.R-project.org/doc/Rnews/.                                    asymptotic viewpoint, volume 48. Cambridge University
                                                                      Press, 2019.
Luo, Y., Sun, W. W., and Liu, Y. Contextual dynamic
  pricing with unknown noise: Explore-then-ucb strategy              Wang, C.-H., Wang, Z., Sun, W. W., and Cheng, G. On-
  and improved regrets. Advances in Neural Information                line regularization toward always-valid high-dimensional
  Processing Systems, 35:37445–37457, 2022.                           dynamic pricing. Journal of the American Statistical
                                                                      Association, pp. 1–13, 2023.
Luo, Y., Sun, W. W., and Liu, Y. Distribution-free contextual
  dynamic pricing. Mathematics of Operations Research,               Wang, H., Talluri, K., and Li, X. On dynamic pricing with
  49(1):599–618, 2024.                                                covariates. arXiv preprint arXiv:2112.13254, 2021a.

                                                                10
                             Transfer Learning for Nonparametric Contextual Dynamic Pricing

Wang, Y., Chen, B., and Simchi-Levi, D. Multimodal dy-
 namic pricing. Management Science, 67(10):6136–6152,
 2021b.
Xu, J. and Wang, Y.-X. Towards agnostic feature-based
  dynamic pricing: Linear policies vs linear valuation with
  unknown noise. In International Conference on Artificial
 Intelligence and Statistics, pp. 9643–9662. PMLR, 2022.

Zhao, Z., Jiang, F., and Yu, Y. Contextual dynamic pric-
  ing: Algorithms, optimality, and local differential privacy
  constraints. arXiv preprint arXiv:2406.02424, 2024.




                                                                11
                             Transfer Learning for Nonparametric Contextual Dynamic Pricing

Appendix
All technical details of this paper can be found in the Appendix. A detailed comparison of our regret bound in Theorem 4.1
with those from non-transfer learning studies is presented in Appendix A. The proofs of Theorem 4.1 and Theorem 4.4 are
included in Appendices B and C, respectively. Additional details and results for Section 5 are collected in Appendix D.

A. Comparisons with non-transfer learning regret bounds
We compare the regret bound established for TLDP in Theorem 4.1 with those from relevant studies on dynamic pricing and
contextual bandits that do not incorporate transfer learning:

  • Slivkins (2011) studied contextual bandits with similarity information, where both contexts and actions are embedded
    in a metric space equipped with a distance function. The regret bounds in Slivkins (2011), adapted to our notation, are
    of order                                             d+2
                                                         d+3
                                                        nQ    log(nQ ),
     matching our result up to a logarithmic factor;
  • Chen & Gallego (2020) investigated nonparametric dynamic pricing with covariates and proposed the ABE algorithm,
    which adaptively partitions the covariate space based on observed data to balance exploration and exploitation. They
    showed that the ABE algorithm achieves a regret bound of order
                                                           d+2
                                                          d+4
                                                         nQ   log2 (nQ ),
    which grows more slowly than ours due to additional assumptions beyond the standard Lipschitz condition stated in
    Assumption 2.1, such as the local strong concavity of the reward function;
  • Several studies on nonparametric dynamic pricing (e.g., Luo et al., 2022; Xu & Wang, 2022; Fan et al., 2024) consider
    a specific form of the expected revenue function,
                                                 f (x, p) = p{1 − F (p − x⊤ θ)},
    where F is a nonparametric cumulative distribution function (CDF) of noise influencing customer valuations and
    θ ∈ Rd is an unknown parameter vector representing customer sensitivity. For instance, Luo et al. (2022) developed
    the ExUCB algorithm and derived a regret bound of order
                                                                  3/4
                                                                 nQ .

     independent of d in the exponent. This independence arises from the linear parametric form of x⊤ θ, which reduces the
     intrinsic complexity of the problem and mitigates the curse of dimensionality often encountered in fully nonparametric
     settings. In contrast, our results address a more general nonparametric reward function, which introduces additional
     complexity in capturing the covariate-price relationship without structural simplifications. Consequently, this leads to
     dimensional dependence, reflected in the d appearing in the exponent of our regret bound;
  • Bu et al. (2022) studied dynamic pricing under two partially linear demand models:
                                  f (x, p) = p{bp + g(x)}     and       f (x, p) = p{g ′ (p) + x⊤ a},
    where b < 0, a ∈ Rd , and g, g ′ are unknown functions. They derived minimax regret bounds for both models. For the
    first model, assuming that g is β-Hölder continuous, they established a minimax regret bound of order
                                                        √          d
                                                           T ∨ T d+2β .
     In comparison, our setting considers a reward function that is nonparametric in both the covariates and the price, leading
     to a regret bound with d + 1 in the exponent instead of d, thereby capturing the additional complexity introduced by
     the price dimension. For the second model, assuming that g ′ is kth-order smooth with a smoothness parameter δ, the
     minimax regret is of order                       √                 1
                                                        T ∨ (δT k+1 ) 2k+1 ,
    which is independent of d in the exponent, as the model assumes a linear parametric structure in the covariates.

                                                             12
                                Transfer Learning for Nonparametric Contextual Dynamic Pricing

B. Proof of Theorem 4.1
The proof of Theorem 4.1 is in Appendix B.1 with all necessary auxiliary results in Appendix B.2.

B.1. Proof of Theorem 4.1
Proof. For any t ≤ nQ , let At denote the set of active balls at the beginning of time t. For any B ∈ At , let ret (B) and
nt (B) denote the cumulative revenue and the cumulative count of B from the target data before time t and the source data
DP . Further, define              n                                                        o
                             E1t = ∀B ∈ At : vt (B) − f (B) ≤ CLip r(B) + conft (B) ,

and                                                                                    
                              n                   o
                      E2t =    ∀B ∈ At : EB holds              P  P
                                                    with EB = nB D ) ≥ CE κnP r(B)d+γ+1
                                                                                          ,

where CE = cγ cQ and f (B) = f (c(B)). Intuitively speaking, E1t represents the good event where the empirical average
revenue vt (B) for every active ball B ∈ At lies within the upper confidence bound around the true expected revenue f (B),
while E2t states that the source data (measured by the number) can still provide sufficient information up to time t.

Consequences of E1t : Suppose for any time point t, E1t holds. Then by (10), the condition CI ≥ CLip and the event E1t , for
any B ∈ At , we have

                                                         Itpre (B) ≥ f (B).                                                (15)

For any x ∈ X , denote p∗ (x) = min{p′ ∈ arg maxp∈P f (x, p)}. By Lemma B.3, there exists a B ∈ At such that
(Xt , p∗ (Xt )) ∈ dom(B, At ). Let Btsel denote the selected ball at time t, then we derive that for such B,

                                It (Btsel ) ≥It (B)
                                                          pre ′
                                         =CI r(B) + min
                                                    ′
                                                           It (B ) + CI ∥c(B) − c(B ′ )∥∞
                                                   B ∈At

                                                           f (B ′ ) + CI ∥c(B) − c(B ′ )∥∞
                                                         
                                         ≥CI r(B) + min
                                                    ′  B ∈At

                                         ≥CI r(B) + f (B) ≥ f ∗ (Xt ),                                                     (16)

where the first inequality follows from the selection rule in Algorithm 1 (Step 4 therein), the first equality follows from (9),
the second inequality follows from (15), and the third and the last inequalities follow from Assumption 2.1 and CI ≥ CLip .
Let Btpar be the parent of Btsel , we have that (due to step 9 in Algorithm 1)

                                                ∥c(Btpar ) − c(Btsel )∥∞ ≤ r Btpar .
                                                                                  
                                                                                                                           (17)

Further note that Btpar must satisfy the condition in Step 7 in Algorithm 1 (in order to produce Btsel ), we have nt (Btpar ) −
nP
 B par
       (DP ) ≥ TBQpar (DP ). Then
   t              t

                                           s                               v
                                                                d+3       u                     d+3
                                               log nQ ∨ (κnp ) d+3+γ       u log nQ ∨ (κnp ) d+3+γ
                        conft (Btpar ) =2                                ≤2t
                                                     nt (Btpar )                TBQpar + nP     (DP )
                                                                                       t  B par
                                                                                            t
                                           s                     d+3
                                               log nQ ∨ (κnp )   d+3+γ
                                                                         ≤ 2r Btpar ,
                                                                                   
                                       ≤2                                                                                  (18)
                                                     ω(Btpar )

where the second inequality follows from (11) and the last form (12). Note that

              Itpre Btpar =vt Btpar + CI r Btpar + conft Btpar
                                                               

                           ≤f Btpar + (CI + CLip )r Btpar + 2conft Btpar
                                                                           

                           ≤f Btpar + (4 + CI + CLip )r Btpar ≤ f Btsel + (4 + CI + 2CLip )r Btpar ,
                                                                                               
                                                                                                                           (19)

                                                                 13
                               Transfer Learning for Nonparametric Contextual Dynamic Pricing

where the first equality follows from (10), the first inequality follows from the event E1t , the second inequality follows form
(18) and the last inequality follows from Assumption 2.1 and (17). Note that

               It Btsel ≤CI r Btsel + Itpre Btpar + CI ∥c(Btsel ) − c(Btpar )∥∞
                                                

                         ≤CI r Btsel + Itpre Btpar + CI r Btpar
                                                              

                         ≤CI r Btsel + f Btsel + (4 + 2CI + 2CLip )r Btpar
                                                                            

                         ≤f Btsel + (8 + 5CI + 4CLip )r Btsel ≤ f Xt , pt + (8 + 5CI + 5CLip )r Btsel ,
                                                                                                  
                                                                                                                           (20)

                                       (9), second inequality follows from (17), the third inequality follows from (19), the
where the first inequalityholds due to
forth holds due to r Btsel = r Btpar /2, and the last inequality follows from Assumption 2.1 and that (Xt , pt ) ∈ Btsel .
Combining (16) and (20), we have that

                                                   f ∗ (Xt ) − f Xt , pt ≤ C1 r Btsel ,
                                                                                    
                                                                                                                           (21)

where C1 = (8 + 5CI + 5CLip ).

                                                         d+3
Step 1: Consider the case where nQ ≥ (κnP ) d+3+γ .

Regret decomposition: We then decompose the regret into several terms
                           nQ n
                          X                            o
               Rπ (nQ ) =E     f ∗ (Xt ) − f (Xt , pt )
                                t=1
                            nQ n
                           X                         o               nQ n
                                                                      X                         o        
                         =E     f (Xt ) − f (Xt , pt ) 1{(E1t )c } + E
                                 ∗
                                                                           f (Xt ) − f (Xt , pt ) 1{E1t }
                                                                            ∗

                               t=1                                               t=1
                         :=(I) + (II).                                                                                     (22)

In the following, we deal with the above two terms separately.

Step 1.1: Bound for (I). By a union bound argument and Lemma B.1, we have that
                                X
                    P (E1t )c ≤   18n−2   −2
                                             log(nQ ) ≤ 18tn−2   −3
                                                                    log(nQ ) ≤ 18n−1   −3
                     
                                     Q r̃                   Q r̃                  Q r̃    log(nQ ),                        (23)
                                  B∈At


where the second inequality holds by noting |At | ≤ tr̃−1 since the smallest radius is lower bounded by r̃ and hence at most
r̃−1 balls can be activated at each time point; and the third inequality holds by t ≤ nQ .
Therefore, recall that 0 ≤ f (Xt , pt ) ≤ f ∗ (Xt ) ≤ 1, it holds that
                                             nQ
                                             X
                                     (I) ≤         P{E1c } ≤ 18r̃−3 log(nQ ) ≤ 4C1 r̃−3 log(nQ ).                          (24)
                                             t=1




Step 1.2: Bound for (II). For any r ∈ (0, 1], let Fr = {B ∈ AnQ : r(B) = r}. For any B ⊂ Z, let S Q (B) be the set of
times s ∈ [nQ ] when ball B was selected for the target data. By Lemma B.3, we have that
                                                                                  d+1
                                                                                  2
                                             |Fr | ≤ NrPack (Z) ≤ Nr/2 (Z) ≤            ,                                  (25)
                                                                                  r

where NrPack (Z) and Nr (Z) denote r-packing number and r-covering number of Z, respectively, and the second inequality
                            Pack
follows from the fact that N2r   (Z) ≤ Nr (Z).

                                                                   14
                                 Transfer Learning for Nonparametric Contextual Dynamic Pricing

Then, note that
                                       nQ n
                                      X                         o        
                               (II) =E     f (Xt ) − f (Xt , pt ) 1{E1t }
                                            ∗

                                           t=1
                                        X                                                               
                                                                        f (Xt ) − f (Xt , pt ) 1{E1t }
                                                        X        X      ∗
                                     ≤E
                                           r:r̃≤r≤1 B∈Fr t∈S Q (B)
                                        X                                                       
                                                                f (Xt ) − f (Xt , pt ) 1{E1t }
                                                       X        ∗
                                     =E
                                           B∈Fr̃ t∈S Q (B)
                                               X                                                                 
                                                                                 f (Xt ) − f (Xt , pt ) 1{E1t }
                                                                X       X        ∗
                                            +E
                                                   r:r̃<r≤1 B∈Fr t∈S Q (B)
                                                   X                                            
                                                                                     C1 r1{E1t } ,
                                                                     X          X
                                     ≤C1 nQ r̃ + E                                                                       (26)
                                                          r:r̃<r≤1 B∈Fr t∈S Q (B)


where the second inequality holds due to (21).
                       d+3
When nQ ≥ (κnP ) d+3+γ , by (11) and (12), for any r(B) > r̃, we have

                                                                                    log(nQ )
                                                 |S Q (B)| ≤ TBQ ≤ ω(B) ≤                    + 1.                        (27)
                                                                                     r(B)2

as otherwise a new ball within B will be activated due to Step 6 in Algorithm 1. As a consequence, by (25), (26) and (27),
we have that
                                                                         d+1               
                                                            X            2       log(nQ )
                                     (II) ≤C1 nQ r̃ +                C1 r                 + 1
                                                                         r          r2
                                                          r:r̃<r≤1
                                                                       X n                        o
                                          ≤C1 nQ r̃ + 2d+1 C1              r−(d+2) log(nQ ) + r−d
                                                                     r:r̃<r≤1
                                                                    n                        o
                                          ≤C1 nQ r̃ + 2     d+2
                                                                  C1 r̃−(d+2) log(nQ ) + r̃−d ,                          (28)

where the last inequality follows from the fact that

                                     ⌈− log2 (r̃)⌉−1
                    X                     X                     2⌈− log2 (r̃)⌉d − 1   2d r̃−d − 1    2d
                             r−d =                     2kd =           d
                                                                                    ≤     d
                                                                                                  ≤ d   r̃−d ≤ 2r̃−d .
                                                                     2 −1               2 −1       2 −1
                  r:r̃<r≤1                k=0



                                                                                             d+3
Combining (22), (24) and (28), we have that in the case where nQ ≥ (κnP ) d+3+γ ,
                                                                         n                         o
                         Rπ (nQ ) ≤4C1 r̃−3 log(nQ ) + C1 nQ r̃ + 2d+2 C1 r̃−(d+2) log(nQ ) + r̃−d
                                      ≤C1 nQ r̃ + 2d+4 C1 r̃−(d+2) log(nQ ).                                             (29)


                                                          d+3
Step 2: Consider the case where nQ < (κnP ) d+3+γ and
                                                                          d+3
                                                          n 8 log (κn ) d+3+γ     1
                                                                               o d+3+γ
                                                                            p
                                                   r̃ ≥                                      ,                           (30)
                                                                     CE κnP

where CE = cγ cQ .

                                                                        15
                               Transfer Learning for Nonparametric Contextual Dynamic Pricing

Regret decomposition: We then decompose the regret into several terms
                      XnQ n                       o
                               ∗
           Rπ (nQ ) =E       f (Xt ) − f (Xt , pt )
                              t=1
                          nQ n
                         X                           o               nQ n
                                                                      X                           o                      
                       =E     f ∗ (Xt ) − f (Xt , pt ) 1{(E1t )c } + E     f ∗ (Xt ) − f (Xt , pt ) 1 t
                                                                                                                E1 ∩E2t
                             t=1                                                     t=1
                             nQ n
                            X                           o                           
                          +E     f ∗ (Xt ) − f (Xt , pt ) 1 t
                                                                       E1 ∩(E2t )c
                                t=1
                      :=(I) + (II) + (III).                                                                                   (31)
In the following, we deal with the above three terms separately.

Step 2.1: Bound for (I). Similar to (23), we have that
                           X               d+3                      d+3                          d+3
            P (E1t )c ≤        3{(κnP ) d+3+γ }−2 ≤ 3tr̃−1 {(κnP ) d+3+γ }−2 ≤ 3nQ r̃−1 {(κnP ) d+3+γ }−2 .
             
                                                                                                                              (32)
                            B∈At

Therefore, recall that 0 ≤ f (Xt , pt ) ≤ f ∗ (Xt ) ≤ 1, it holds that
                                                   nQ
                                                   X                                       d+3
                                           (I) ≤         P{E1c } ≤ 3n2Q r̃−1 {(κnP ) d+3+γ }−2 .                              (33)
                                                   t=1


Step 2.2: Bound for (II). By similar arguments as (26), we have
                                         X X X                                                            
                                                                f (Xt ) − f (Xt , pt ) 1 t
                                                                ∗
                     (II) ≤C1 nQ r̃ + E                                                                  t
                                                                                                            .                 (34)
                                                                                                   E1 ∩E2
                                                r:r̃<r≤1 B∈Fr t∈S Q (B)

                                    d+3
Note that under nQ < (κnP ) d+3+γ and (30), if E2t holds, by Lemma B.4, we have that TBQ = 0 for any B ∈ At . This
implies that S Q (B) = ∅. Therefore, the second term in (34) vanishes and thus we have,
                                                                (II) ≤ C1 nQ r̃.                                              (35)

                                                                                                                     d+3
Step 2.3: Bound for (III). Note that by Lemma B.4 and a union bound argument, under nQ < (κnP ) d+3+γ and (30), it
holds that                                                           d+3
                                        P (E2t )c ≤ nQ r̃−1 {(κnP ) d+3+γ }−2 .
                                         

Therefore,
                                                  nQ
                                                  X                                d+3
                                                     P (E2t )c ≤ n2Q r̃−1 {(κnP ) d+3+γ }−2 .
                                                      
                                          (III) ≤                                                                             (36)
                                                   t=1


Combining (31), (33), (35) and (36), we can conclude that
                                                             d+3                                   d+3
                         Rπ (nQ ) ≤3n2Q r̃−1 {(κnP ) d+3+γ }−2 + C1 nQ r̃ + n2Q r̃−1 {(κnP ) d+3+γ }−2
                                                             d+3
                                    ≤4n2Q r̃−1 {(κnP ) d+3+γ }−2 + C1 nQ r̃ ≤ 2C1 nQ r̃,                                      (37)
where the last inequality follows from (30).
                                                          d+3
Step 3: Consider the case where nQ < (κnP ) d+3+γ and
                                                            d+3
                                            n 8 log (κn ) d+3+γ     1
                                                                 o d+3+γ
                                                         p
                                       r̃ <                              .
                                                     CE κnP

                                                                      16
                              Transfer Learning for Nonparametric Contextual Dynamic Pricing

Regret decomposition: We then decompose the regret into several terms
                            nQ n
                           X                            o
                Rπ (nQ ) =E     f ∗ (Xt ) − f (Xt , pt )
                               t=1
                           nQ n
                          X                           o               nQ n
                                                                       X                           o        
                        =E     f ∗ (Xt ) − f (Xt , pt ) 1{(E1t )c } + E     f ∗ (Xt ) − f (Xt , pt ) 1{E1t }
                               t=1                                                   t=1
                        :=(I) + (II).                                                                                   (38)

In the following, we deal with the above two terms separately.

Step 3.1: Bound for (I). By the same argument as (23), we can show that
                                                                                 d+3
                                              P (E1t )c ≤ 18n−1   −3
                                                                       
                                                             Q r̃    log (κnp ) d+3+γ ,                                 (39)

which implies that
                                                 nQ
                                                 X                                      d+3
                                                       P{(E1t )c } ≤ 18r̃−3 log (κnp ) d+3+γ .
                                                                               
                                        (I) ≤                                                                           (40)
                                                 t=1



Step 3.2: Bound for (II). By similar arguments as (26), we have
                                                    X X                                             
                                                                                           C1 r1{E1t } .
                                                                                  X
                                (II) ≤C1 nQ r̃ + E                                                                      (41)
                                                              r:r̃<r≤1 B∈Fr t∈S Q (B)

                      d+3
When nQ < (κnP ) d+3+γ , similar to (27), we have
                                                                                       d+3
                                                                  log            (κnp ) d+3+γ
                                     |S   Q
                                              (B)| ≤ TBQ ≤ ω(B) ≤                                 + 1.                  (42)
                                                                                  r(B)2

As a consequence, by (25), (41) and (42), we have that
                                                            d+1             d+3        
                                                   X        2       log (κnp ) d+3+γ
                            (II) ≤C1 nQ r̃ +          C1 r                             + 1
                                                            r              r2
                                             r:r̃<r≤1
                                                       X n                         d+3
                                                                                             o
                                 ≤C1 nQ r̃ + 2d+1 C1          r−(d+2) log (κnp ) d+3+γ + r−d
                                                                         

                                                           r:r̃<r≤1
                                                   n                     d+3
                                                                                                      o
                                ≤C1 nQ r̃ + 2d+2 C1 r̃−(d+2) log (κnp ) d+3+γ                   + r̃−d .
                                                                
                                                                                                                        (43)


                                                                           d+3
Combining (38), (40) and (43), in the case where nQ < (κnP ) d+3+γ and
                                                                        d+3
                                                        n 8 log (κn ) d+3+γ     1
                                                                             o d+3+γ
                                                                      p
                                                 r̃ ≤                                       ,                           (44)
                                                                CE κnP
we have that
                                             d+3
                                                                     n                     d+3
                                                                                                                    o
               Rπ (nQ ) ≤18r̃−3 log (κnp ) d+3+γ + C1 nQ r̃ + 2d+2 C1 r̃−(d+2) log (κnp ) d+3+γ            + r̃−d
                                                                                 

                                                      d+3
                        ≤2d+4 C1 r̃−(d+2) log (κnp ) d+3+γ ,
                                              
                                                                                                                        (45)

where the last inequality follows from (44).

                                                                      17
                              Transfer Learning for Nonparametric Contextual Dynamic Pricing

Step 4: Combining all results. Combining (29), (37) and (45), we have that
                                                                       d+3
              
              
               C1 nQ r̃ + 2d+3 C1 r̃−(d+2) log(nQ ), if nQ ≥ (κnP ) d+3+γ ,
                                                                                                     d+3
                                                                                      n 8 log (κn ) d+3+γ     1
                                                                                                           o d+3+γ
                                                                        d+3
    Rπ (nQ ) ≤ 2C1 nQ r̃,                             if n Q < (κn P ) d+3+γ and r̃ ≥
                                                                                                  p
                                                                                                                   ,
              
                                                                                              CE κnP
                                              d+3
              2d+4 C r̃−(d+2) log (κn ) d+3+γ
              
                                                    , otherwise.
                          1                     p


By (13), Cr4 cγ cQ ≥ 8, we can conclude that
                                       n                      1
                                                          o− d+3
                                                     d+3              1              d+3
                         Rπ (nQ ) ≤ CnQ nQ + (κnP ) d+3+γ        log d+3 nQ + (κnP ) d+3+γ ,

where C > 0 is a constant only depending on constants CI , Cr , CLip , cγ and cQ . We complete the proof.

B.2. Auxiliary results
Lemma B.1. For Algorithm 1, at the beginning of the round t for t ≤ nQ , if ball B ∈ At , then under Assumptions 2.1 and
2.2 , we have that
                                
                             P |vt (B) − f (B) ≤ CLip r(B) + conft (B) ≥ 1 − ϵr̃ ,

where CLip > 0 is defined in Assumption 2.1 and
                                                                 d+3
              
              
                18n−2Q r̃
                           −2
                               log(nQ ),         if nQ ≥ (κnP ) d+3+γ ,
                                                                                               d+3
                                                                                n 8 log (κn ) d+3+γ     1
                                                                                                     o d+3+γ
                              d+3                                 d+3
         ϵr̃ = 3{(κnP ) d+3+γ      }−2
                                       ,         if n Q < (κnP ) d+3+γ and r̃ ≥
                                                                                            p
                                                                                                             ,         (46)
              
                                                                                        CE κnP
                                           d+3
              18n−2 r̃−2 log (κn ) d+3+γ
              
                                               , otherwise.
                      Q                  p

Here CE = cγ cQ with constants cγ defined in Definition 2.3 and Assumption 2.2, respectively.

Proof. Fix time t and a ball B ∈ At , and recall its centre as c(B). Let StQ (B) be the set of times s ∈ [t − 1] when ball B
was selected for the target data, with |StQ (B)| = nQ             P
                                                      t (B). Let S (B) be the set of times s ∈ [nP ] when ball B was fallen
for the source data, with |S (B)| = nB (D ). Note that nt (B) = nQ
                            P           P    P                                  P    P
                                                                      t (B) + nB (D ) and
                                                          X                        
                                                    1                     X
                                                                                  P
                                      vt (B) =                    Ys +          Ys .
                                                 nt (B)       Q             P
                                                                 s∈St (B)            s∈S (B)


Denote                                                                                                       
                                             1            X                            X
                              ṽt (B) =                             f (Xs , ps ) +               f (XsP , pP
                                                                                                           s )  .
                                          nt (B)
                                                        s∈StQ (B)                    s∈S P (B)

By Lemma B.2, it holds that
                 n                                                            o
               P vt (B) − ṽt (B) > U nQ       P   P              P    P nP           Q
                                                              
                                       t (B), nB (D ), δ1 , δ2 {(Xt , pt )}t=1 ≤ 8δ1 TB + 2δ2 ,


where TBQ is defined in (11) and
                                                                  r
                                                                         2 log(1/δ1 )
                                                                  
                                                                      Q          P   P
                                                                                                   if nQ
                                                                                                       t (B) > 0,
                           U nQ       P   P
                                                                 = q nt (B)+nB (D )
                                                             
                              t (B), nB (D ), δ1 , δ2
                                                                     2 log(1/δ    )
                                                                                2
                                                                                                   if nQ
                                                                                                       t (B) = 0.
                                                                  
                                                                       P     P
                                                                            nB (D )

                                          d+3
Let δ1 = n−2
          Q and δ2 = {nQ ∨ (κnP )
                                  d+3+γ }−2 . By (8), we have that


              n                                              o                          d+3
                                                          nP       −2 Q                d+3+γ }−2 .
             P vt (B) − ṽt (B) > conft (B) {(XtP , pPt )}t=1 ≤ 8nQ TB + 2{nQ ∨ (κnP )                                 (47)

                                                                       18
                             Transfer Learning for Nonparametric Contextual Dynamic Pricing

Furthermore, note that
                                                                                                                            
                                  1           X                                         X
             ṽt (B) − f (B) ≤                           f (Xs , ps ) − f (c(B)) +                f (XsP , pP
                                                                                                            s ) − f (c(B))
                               nt (B)
                                            s∈StQ (B)                                 s∈SP (B)

                             ≤CLip r(B),                                                                                         (48)

where the second inequality follows form Assumption 2.1. Finally, combining (47) and (48), we have that
                                n                                                          o
                                                                                       nP
                              P vt (B) − f (B) > CLip r(B) + conft (B) {(XtP , pP t )} t=1
                                                                    d+3
                                  Q
                            ≤8n−2
                               Q TB + 2{nQ ∨ (κnP )
                                                    d+3+γ }−2 .                                                                  (49)

In what follows, we consider different cases in (46).
                                                        d+3
Case 1. In this case, we consider nQ ≥ (κnP ) d+3+γ . Then, we have that
                                              d+3
                   Q
              8n−2
                Q TB + 2{nQ ∨ (κnP )
                                     d+3+γ }−2 ≤8n−2 ω(B) + 2n−2 ≤ 8n−2 r(B)−2 log(n ) + 10n−2
                                                  Q           Q      Q              Q       Q

                                                              ≤8n−2
                                                                 Q r̃
                                                                      −2
                                                                         log(nQ ) + 10n−2
                                                                                       Q

                                                              ≤18n−2
                                                                  Q r̃
                                                                       −2
                                                                          log(nQ ),                                              (50)

where the first inequality follows from (11), the second inequality follows from (12), and the third inequality follows from
r(B) ≥ r̃. Then combining (49) and (50), we have that
                                n                                          o
                              P vt (B) − f (B) > CLip r(B) + conft (B)
                                h n                                                             oi
                                                                                            nP
                            =E P vt (B) − f (B) > CLip r(B) + conft (B) {(XtP , pP     t )} t=1

                           ≤18n−2
                               Q r̃
                                    −2
                                       log(nQ ).                                                                                 (51)

                                                        d+3
Case 2. In this case, we consider nQ < (κnP ) d+3+γ , and
                                                             d+3      1
                                                                     d+3+γ
                                                 8 log (κnp ) d+3+γ
                                         r̃ ≥                               .
                                                        CE κnP
Define the event
                                                                                         
                                            EB =        nP
                                                         B
                                                                P
                                                              D ) ≥ CE κnP r(B)   d+γ+1
                                                                                              .

By Lemma B.4, we have that
                                                                    d+3
                                                         ≤ {(κnP ) d+3+γ }−2 ,
                                                      c
                                                    P EB                                                                         (52)

and that under the event EB , we have TBQ = 0. Then it holds that
            n                                           o
           P vt (B) − f (B) > CLip r(B) + conft (B)
            h n                                                            oi
                                                                       nP
         =E P vt (B) − f (B) > CLip r(B) + conft (B) {(XtP , pP   t )}t=1
            h n                                                                 o                       i
                                                                       nP                       P nP
         =E P vt (B) − f (B) > CLip r(B) + conft (B) {(XtP , pP   t )} t=1 , EB  P  EB {(Xt
                                                                                           P
                                                                                             , pt )} t=1
                   h n                                                                o                       i
                                                                          P nP                             nP
                                                                     P              c     c
               + E P vt (B) − f (B) > CLip r(B) + conft (B) {(Xt , pt )}t=1 , EB P EB {(Xt , pP    P
                                                                                                       t )}t=1
            h n                                                                 oi
                                                                       nP
         ≤E P vt (B) − f (B) > CLip r(B) + conft (B) {(XtP , pP
                                                                                       c
                                                                  t )} t=1 , EB    + P EB
                     d+3
        ≤3{(κnP ) d+3+γ }−2                                                                                                      (53)

                                                                     19
                            Transfer Learning for Nonparametric Contextual Dynamic Pricing

where the second inequality follows from (49) and (52).
                                                  d+3
Case 3. In this case, we consider nQ < (κnP ) d+3+γ , and
                                                             d+3      1
                                                                     d+3+γ
                                                 8 log (κnp ) d+3+γ
                                         r̃ <                               .
                                                        CE κnP
Then, we have that
                                                                d+3
                                   Q
                              8n−2
                                Q TB + 2{nQ ∨ (κnP )
                                                     d+3+γ }−2

                                                          d+3
                            ≤8n−2
                               Q ω(B) + 2{(κnP )
                                                    d+3+γ }−2

                                                       d+3                     d+3
                            ≤8n−2       −2
                                           log (κnp ) d+3+γ + 8n−2            d+3+γ }−2
                                              
                               Q r(B)                           Q + 2{(κnP )
                                                    d+3              d+3
                            ≤16n−2   −2
                                        log (κnp ) d+3+γ + 2{(κnP ) d+3+γ }−2
                                            
                                Q r̃
                                                    d+3
                            ≤18n−2   −2
                                            
                                Q r̃    log (κnp ) d+3+γ ,                                                           (54)
where the first inequality follows from (11), the second inequality follows from (12), the third inequality follows from
                                                            d+3
r(B) ≥ r̃ and the last inequality follows from nQ < (κnP ) d+3+γ . Then combining (49) and (54), we have that
                               n                                         o
                             P vt (B) − f (B) > CLip r(B) + conft (B)
                               h n                                                          oi
                                                                                        nP
                           =E P vt (B) − f (B) > CLip r(B) + conft (B) {(XtP , pP   t )}t=1
                                                     d+3
                           ≤18n−2     −2
                                            
                                 Q r̃    log (κnp ) d+3+γ .                                                          (55)

Finally, combining (51), (53) and (55), we complete the proof.
Lemma B.2. Let {Xi }i≥1 be bounded martingale difference sequence with Xi ∈ [−1, 1]. Then for any δ1 , δ2 > 0, and
integers T ≥ 0 and n ≥ 1, it holds that
                                       n
                                        X      n+t
                                               X                            
                      P ∃0 ≤ t ≤ T :      Xi +       Xi > U (t, n, δ1 , δ2 ) ≤ 8T δ1 + 2δ2 ,
                                            i=1         i=n+1

where                                                 (p
                                                         2(n + t) log(1/δ1 ) if t > 0,
                                  U (t, n, δ1 , δ2 ) = p
                                                         2n log(1/δ2 ),      if t = 0.

Proof. The proof here is a minor modification of Lemma 12 in Cai et al. (2024a). For completeness, we provide the details.
We start with the case T = 0. Following the Azuma–Hoeffding inequality (e.g. Corollary 2.20 in Wainwright, 2019), it
holds that
                                         X n      p
                                                                  
                                      P       Xi > 2n log(1/δ2 ) ≤ 2δ2 .                                       (56)
                                              i=1


We consider the case T > 0. Note that
                                 Xn       n+t
                                           X                          
                 P ∃0 ≤ t ≤ T :       Xi +     Xi > U (t, n, δ1 , δ2 )
                                   i=1        i=n+1
                   n
                  X
                         p
                                                       n+t
                                                         X       p
                                                                                      
               ≤P    Xi > 2n log(1/δ2 ) + P ∃0 < t ≤ T :     Xi > 2(n + t) log(1/δ1 )
                      i=1                                               i=1
                                   n+t
                                    X       p
                                                                
               ≤2δ2 + P ∃t ∈ [T ] :     Xi > 2(n + t) log(1/δ1 ) ,                                                   (57)
                                      i=1


                                                                20
                                Transfer Learning for Nonparametric Contextual Dynamic Pricing

where the second inequality follows from a union bound argument and the final inequality follows from (56).
It remains to control the second term in (57). Note that for any δ > 0 and T ′ > 0, by Azuma–Hoeffding inequality (e.g.
Corollary 2.20 in Wainwright, 2019), we have that
                                                               ′
                                   n+t                        T
                                                                                         δ2                                  δ2
                                  X                         X                                                                    
                            ′
                P ∃t ∈ [T ] :            Xi > δ           ≤         2 exp         −                  ≤ 2T ′ exp       −                 .   (58)
                                   i=1                        t=1
                                                                                      2(n + t)                            2(n + T ′ )

Note that
                                             n+t
                                              X       p
                                                                           
                                P ∃t ∈ [T ] :     Xi > 2(n + t) log(1/δ1 )
                                                    i=1
                                ⌊log2 (T )⌋                                  n+t                                         
                                   X                                          X           p
                                                    j               j+1
                           ≤                  P ∃2 ≤ t ≤ 2                :           Xi > 2(n + t) log(1/δ1 )
                                   j=0                                        i=1
                                ⌊log2 (T )⌋
                                                                   n + 2j
                                   X                                                  
                           ≤                  2j+2 exp        −2             log(1/δ 1 )
                                   j=1
                                                                  n + 2j+1
                                ⌊log2 (T )⌋
                                   X
                           ≤                  2j+2 δ1 ≤ 2log2 (T )+3 δ1 = 8T δ1 ,                                                           (59)
                                   j=1


where the second inequality follows from (58) and the third inequality follows from the fact that (n + 2j )/(n + 2j+1 ) ≥ 1/2
for any integers n, j ≥ 0.
Combining (57) and (59), we complete the proof.


Lemma B.3. For any t ∈ [nQ ],
                                                          Z ⊂ ∪B∈At dom(B, At ).                                                            (60)
Moreover, for any two different balls B1 , B2 ∈ AnQ with the same radius r, their centres are at a distance of at least r.

Proof. Note that for any t ∈ [nQ ],
                                                    ∪B∈At dom(B, At ) = ∪B∈At B,
By construction, Z ⊂ ∪B∈At B. This completes the proof of (60).
For the second part, consider two distinct balls B1 , B2 ∈ AnQ with radius r. By construction, they cannot be activated at
the same time t ∈ [nQ ]. Without loss of generality, let B1 be activated at time t, with parent B par , and B2 be activated
earlier. Denote the centre of B1 as (x⊤ , p)⊤ . We have that (x⊤ , p)⊤ ∈ dom(B par , At \{B1 }). Since r(B par ) > r(B2 ) and
B2 is activated earlier, we have that (x⊤ , p)⊤ ∈/ B2 , which establishes the required separation between B1 and B2 , and
completes the proof.
Lemma B.4. For any t ∈ [nQ ] and B ∈ At , denote
                                          n                                o
                                   EB = nP   B D P
                                                   ) ≥ CE (κnP )r(B) d+γ+1
                                                                            ,

where CE = cγ cQ . Under Assumption 2.2, it holds that
                                                        n                      o
                                          P EB ≥ 1 − exp − 4−1 CE (κnP )r̃d+γ+1 .
                                           
                                                                                                                                            (61)

                                 d+3
Furthermore, if nQ < (κnP ) d+3+γ and
                                                                          d+3      1
                                                                                  d+3+γ
                                                              8 log (κnp ) d+3+γ
                                                   r̃ ≥                                  ,                                                  (62)
                                                                    CE κnP

                                                                              21
                                Transfer Learning for Nonparametric Contextual Dynamic Pricing

we have that                                                        d+3
                                                P EB ≥ 1 − {(κnp ) d+3+γ }−2 ,
                                                 
                                                                                                                     (63)
and under the event EB ,
                                                           TBQ = 0,                                                  (64)
where TBQ is defined in (11).

Proof. Fix time t and a ball B ∈ At, and recall its centre as c(B) = (x⊤       ⊤
                                                                        B , pB ) . By Step 8 of Algorithm 1, we have that
                              P  P
xB ∈ supp(QX ). Note that nB D is a sum of i.i.d. zero mean Bernoulli random variables with
                                                                                            
               E nP      P
                          
                    B D       =nP µ(B) = nP µ [pB − r(B), pB + r(B)] × BX xB , r(B)
                              ≥2nP κr(B)PX BX (xB , r(B)) ≥ 2cγ nP κr(B)γ+1 QX BX (xB , r(B))
                                                                                                       

                                  ≥2cγ cQ nP κr(B)d+γ+1 = 2CE κnP r(B)d+γ+1 ,
where the first inequality follows from Definition 2.4, the second inequality follows from Definition 2.3 and the third
inequality follows from Assumption 2.2. As a consequence, by Chernoff’s bound, we have that
                                                                         
                                   c        P    P                  d+γ+1
                                                   
                               P{EB =P nB D < CE nP κr(B)
                                                                                       
                                             P P            P   P
                                                                         P P
                                      ≤P E nB D           − nB D > E nB D            /2
                                                                      
                                      ≤ exp − 4−1 CE κnP r(B)d+γ+1 .

Since r(B) ≥ r̃, it holds that
                                                      n                    o
                                                 ≤ exp − 4−1 CE κnP r̃d+γ+1 ,
                                              c
                                            P EB                                                                     (65)

which completes the proof of (61).
Now we consider the case where
                                                                                  d+3      1
                                                                                          d+3+γ
                                                d+3                   8 log (κnp ) d+3+γ
                                 nQ < (κnP )   d+3+γ   and r̃ ≥                                  .
                                                                            CE κnP
Note that
                                                     d+3      1
                                                             d+3+γ                 d+3      1
                                                                                            d+1+γ
                                         8 log (κnp ) d+3+γ             8 log (κnp ) d+3+γ
                      r(B) ≥ r̃ ≥                                   ≥                              .                 (66)
                                               CE κnP                         CE κnP
Combining (65) and (66), it holds that
                                                                  d+3
                                                       ≤ {(κnp ) d+3+γ }−2 ,
                                                    c
                                                  P EB
which proves (63). Under the event EB , we have that
                               ω(B) − nP       P
                                                 
                                          B D
                                           d+3
                               log (κnp ) d+3+γ
                             ≤                       + 1 − CE κnP r(B)d+γ+1
                                     r(B)2
                                           d+3
                               log (κnp ) d+3+γ
                             ≤                       + 1 − CE κnP r̃d+γ+1
                                        r̃2
                                 d+3+γ  2
                                 CE                    2       d+1+γ        d+3
                             ≤                (κnP ) d+3+γ log d+3+γ (κnp ) d+3+γ + 1
                                  8
                                        d+1+γ      2            2      d+1+γ        d+3
                                   − 8 d+3+γ CEd+3+γ (κnP ) d+3+γ log d+3+γ (κnp ) d+3+γ
                                             2            2       d+1+γ         d+3
                             ≤1 − 21/2 CEd+3+γ (κnP ) d+3+γ log d+3+γ (κnp ) d+3+γ < 0,

                                                              22
                                Transfer Learning for Nonparametric Contextual Dynamic Pricing

where the first inequality follows from (12) and the event EB , the second inequality follows from r(B) ≥ r̃ and the third
inequality follows from (62). Thus by (11), we have under the event EB , TBQ = 0, which proves (64).



C. Proof of Theorem 4.4
The proof of Theorem 4.4 is in Appendix C.1 with all necessary auxiliary results in Appendix C.2.

C.1. Proof of Theorem 4.4
Proof. Let r̃ ∈ (0, 1/2) be specified later and define
                          n                                                                                o
                  SX ,r̃ = x = (x1 , x2 , . . . , xd ) ∈ X | xi = (ki − 1/2)2r̃, ki ∈ [⌊1/(2r̃)⌋], ∀i ∈ [d] ,

with cardinality ⌊1/(2r̃)⌋d . We define a grid set of covariates as
                                                SX ,r̃ = x∗1 , . . . , x∗⌊1/(2r̃)⌋d .
                                                         

Next, define the integer m = ⌊cm /r̃⌋d for s constant 0 < cm < 1/2. Using Varshamov-Gilbert bound (e.g. Lemma 2.9 in
Tsybakov, 2009), we can find a set of well-separated vectors Ωm = {ω (i) }M         m
                                                                          i=0 ⊂ {±1} such that
                                         m                            m
                            log2 (M ) ≥        and ρ(ω (i) , ω (j) ) ≥ , ∀0 ≤ i < j ≤ M,                        (67)
                                          8                           8
where ρ(ω, ω ′ ) = |{k ∈ [m] : ωk ̸= ωk′ }| is the Hamming distance between ω and ω ′ .
In the same spirit of SX ,r̃ , we define the grid set for price as
                                             n                       o n                      o
                                    SP,r̃ = (k − 1/2)r̃, k ∈ [⌊1/r̃⌋] = p∗1 , . . . , p∗⌊1/r̃⌋ .

In the following proof, we first construct a collection HΩm = {(Qω       ω   ω
                                                                    X , µ , f ) | ω ∈ Ωm } of probability distributions, where
  ω
QX is a probability distribution over X representing the covariate distribution in target data, µω is a probability distribution
over Z representing the joint distribution of covariate-price pairs in source data, and f ω : Z → [0, 1] is the reward function
for both target and source data. We then verify the constructed HΩm ⊂ I(γ, cγ , κ, CLip , cQ ), from which the lower bound
follows by applying Proposition C.1, which is Proposition 1 in Kpotufe & Martinet (2020).

Step 1. Constructing the distribution collection HΩm = {(Qω    ω   ω
                                                          X , µ , f ) : ω ∈ Ωm }.

Constructing the target covariate distribution. Let the target covariate distribution be independent of ω, with the density
denoted by qX , defined for any x ∈ X as follows
                                               
                                                                m         ∗
                                               q1 , if x ∈ ∪i=1 BX (xi , r̃/4),
                                               
                                      qX (x) = q0 , if x ∈ X \ ∪i=1 BX (x∗i , r̃),
                                                                   m                                                   (68)
                                               
                                                 0, otherwise,
                                               

where
                                          cQ r̃d                                 1 − mcQ r̃d
                              q1 =                           and    q0 =                              ,
                                     Leb BX (x∗1 , r̃/4)                                     ∗
                                                         
                                                                           Leb X \ ∪m
                                                                                    i=1 BX (xi , r̃))
with cQ > 0 defined in Assumption 2.2.

Constructing the source covariate-price pair distribution. Let the distribution of the source covariate-price pairs be
independent of ω. The density of the source covariate, denoted by pX , is defined for any x ∈ X as follows
                                                                       ∗
                                         γ                  m
                                        cγ r̃ q1 , if x ∈ ∪i=1 BX (xi , r̃/4),
                                        
                                                     if x ∈ ∪i=1 BX (x∗i , r̃)\BX (x∗i , r̃/2),
                                                             m
                                        
                                        δ,
                              pX (x) =                                        ∗
                                                                                                                  (69)
                                        q0 ,
                                        
                                                    if x ∈ X \ ∪m
                                                                 i=1 BX (xi , r̃),
                                          0,
                                        
                                                     otherwise,

                                                                   23
                             Transfer Learning for Nonparametric Contextual Dynamic Pricing

where
                                                       ∗                                ∗
                                                                                              
                           1 − cγ r̃γ q1 Leb ∪m                                     m
                                              i=1 BX (xi , r̃/4) − q0 Leb X \ ∪i=1 BX (xi , r̃)
                        δ=                                    ∗         ∗
                                                                                                .
                                            Leb ∪mi=1 BX (xi , r̃)\BX (xi , r̃/2)


Let p̃ ∈ SP,r̃ be defined later. The density of the conditional distribution of the source price p ∈ [0, 1] given the source
covariate x ∈ X is defined as                     (
                                                    κ,      if p ∈ [p̃ − r̃/2, p̃ + r̃/2],
                                      pP (p|x) = 1−r̃κ                                                                  (70)
                                                     1−r̃ , otherwise.


Constructing the reward distributions. For both target and source data, let the random reward, conditional on the covariate
x and price p, be a Bernoulli random variable with parameter f ω (x, p). The reward functions {f ω }ω∈Ωm are constructed as
follow. First, define the function ϕ : R+ 7→ [0, 1] by
                                                    
                                                    1,
                                                             if 0 ≤ z < 1/4,
                                           ϕ(z) = 2 − 4z, if 1/4 ≤ z < 1/2,
                                                    
                                                       0,     otherwise.
                                                    

Next, define the function φ : Z 7→ [0, 1/4] via

                                            φ(x, p) = Cφ r̃ϕ ∥(x⊤ , p)⊤ ∥∞ /r̃ ,
                                                                              


where Cφ = (CLip ∧ 1)/4. For any ω ∈ Ωm , the reward function f ω : Z 7→ [0, 1] is defined as follows
                                                   m
                                                         ωi φ x − x∗i , p − p̃ 1 x ∈ BX (x∗i , r̃)
                                                   X
                              f ω (x, p) = 1/2 +
                                                                               
                                                                                                                          (71)
                                                   i=1

By construction,  Smwe note that if x ∈ BX (x∗i , r̃/4) for some i ∈ [m], then f ω (x, p) only depends on the value of p and ω;
and if x ∈ X \ i=1 BX (x∗i , r̃/2), f ω (x, p) = 1/2 for any p and ω.
For any ω ∈ Ωm and x ∈ X , let pω,∗ (x) = min p′ ∈ arg maxp∈[0,1] f ω (x, p) be the optimal price. Furthermore, recall
                                                     

that p̃ ∈ SP,r̃ , we define the function h : [0, 1] → {0, 1} as
                                                         n                        o
                                               h(p) = 1 p ∈ (p̃ − r̃/2, p̃ + r̃/2] .


We now make the following remarks:

                            Sm         ∗
                                                            S⌊1/r̃⌋
  • For any ω ∈ Ωm , x ∈      i=1 BX (xi , r̃/4) and p ∈        [p∗i − r̃/4, p∗i + r̃/4],
                                                              i=1

                                   f ω x, pω,∗ (x) − f ω (x, p) =Cφ r̃1 h pω,∗ (x) ̸= h(p) .
                                                                                    
                                                                                                                          (72)

    To see this, we first note that x ∈ BX (x∗i , r̃/4) for some i ∈ [m]. If ωi = −1, we have pω,∗ (x) = 0 ̸∈ (p̃ −
    r̃/2, p̃ + r̃/2], and h(pω,∗ (x)) = 0. Therefore, f ω x, pω,∗ (x) − f ω (x, p) = Cφ r̃1 |p − p̃| ≤ r̃/2 = Cφ r̃h(p) =
    Cφ r̃1 h pω,∗ (x) ̸= h(p) where the first equality holds since p ∈  i=1 [p∗i − r̃/4, p∗i + r̃/4].Next, if ωi = 1, we
                                                                         S⌊1/r̃⌋

    have pω,∗ (x) = p̃ − r̃/4,       h(pω,∗ (x)) = 1. Hence f ω x, pω,∗ (x) − f ω (x, p) = Cφ r̃[1 − 1 |p − p̃| ≤ r̃/2 ] =
                               andω,∗
    Cφ r̃[1 − h(p)] = Cφ r̃1 h p (x) ̸= h(p) .
                                               Sm
  • For any ω ∈ Ωm , p ∈ [0, 1], if x ∈ X \ i=1 BX (x∗i , r̃/2),

                                                           f ω (x, p) = 1/2.                                              (73)

  • For any ω ∈ Ωm and x ∈ X , if p ∈ [0, 1]\[p̃ − r̃/2, p̃ + r̃/2],

                                                           f ω (x, p) = 1/2.                                              (74)

                                                                24
                               Transfer Learning for Nonparametric Contextual Dynamic Pricing

   • For any two different ω ̸= ω ′ ∈ Ωm , if x ∈ BX (x∗i , r̃/4) for some i ∈ [m] such that ωi ̸= ωi′ ,
                                                                        ′
                                                      h pω,∗ (x) ̸= h pω ,∗ (x) .
                                                                              
                                                                                                                          (75)


Step 2. Verifying HΩm ⊂ I(γ, cγ , κ, CLip , cQ ).

                                                                                   ∗                           ∗
Transfer exponent. Recall that the support of QX is the union of the set ∪m                           m
                                                                          i=1 BX (xi , r̃/4) and X \ ∪i=1 BX (xi , r̃).
Therefore, we only need to check Definition 2.3 for x in these sets.
First, if x ∈ BX (x∗i , r̃/4) for some i ∈ [m], and r ≤ 3r̃/4, by (68), it holds that

                                     QX BX (x, r) = q1 Leb BX (x, r) ∩ BX (x∗i , r̃/4) .
                                                                                     


By (69), it follows that

                                    PX BX (x, r) ≥cγ r̃γ q1 Leb BX (x, r) ∩ BX (x∗i , r̃/4)
                                                                                           

                                                  ≥cγ rγ QX BX (x, r) .
                                                                      


                                  ∗
Second, for any x ∈ X \ ∪m
                         i=1 BX (xi , r̃) and r ≤ 3r̃/4, by (68), it holds that

                                                                                      ∗
                            QX BX (x, r) = q0 Leb BX (x, r) ∩ X \ ∪m
                                                                                           
                                                                             i=1 BX (xi , r̃) .

By (69), it holds that
                                                                     ∗
                     PX BX (x, r) ≥ q0 Leb BX (x, r) ∩ X \ ∪m
                                                                                         
                                                            i=1 BX (xi , r̃)  = QX BX (x, r) .

Thus, for small r ≤ 3r̃/4, the transfer exponent defined in Definition 2.3 equals γ with respect to the constant 0 < cγ ≤ 1.
Furthermore, since we set
                                       PX BX (x∗i , r̃) = QX BX (x∗i , r̃) ,
                                                                         
                                                                                  ∀i ∈ [m],
we can verify that the above inequalities hold for 3r̃/4 < r ≤ 1. Thus, the transfer exponent of the constructed source
covariate distribution with respect to the target covariate distribution is γ, with the corresponding constant cγ .

Exploration coefficient. For any x ∈ X , r ∈ (0, 1] and p ∈ [r, 1 − r], we have that
                                                                                   
                                                                          1 − r̃κ                 
             µ [p − r, p + r] × BX (x, r) ≥ PX BX (x, r) 2r min κ,                    = PX BX (x, r) 2rκ,
                                                                             1 − r̃

where the first inequality follows from (70) and the final equality holds beacuse

                                                         1 − r̃κ   κ−1
                                                   κ−            =        ≤ 0.
                                                          1 − r̃   1 − r̃
As a result, the exploration coefficient defined in Definition 2.4 for the constructed source covariate-price pair distribution
equals κ.

Lipschitz condition. By the construction in (71), it suffices to show that the function φ : Z 7→ [0, 1/4] satisfies Assump-
tion 2.1 with respect to the Lipschitz constant CLip > 0. For any (x, p), (x′ , p′ ) ∈ Z, we have that

                           |φ(x, p) − φ(x′ , p′ )| = Cφ r̃ ϕ(∥(x⊤ , p)⊤ ∥∞ /r̃) − ϕ(∥(x′⊤ , p′ )⊤ ∥∞ /r̃)                 (76)

Since ϕ is a Lipschitz function with Lipschitz constant 4, it follows that

                |φ(x, p) − φ(x′ , p′ )| ≤4Cφ r̃ ∥(x⊤ , p)⊤ ∥∞ /r̃ − ∥(x′⊤ , p′ )⊤ ∥∞ /r̃
                                        ≤4Cφ ∥(x⊤ , p)⊤ − (x′⊤ , p′ )⊤ ∥∞ ≤ CLip ∥(x⊤ , p)⊤ − (x′⊤ , p′ )⊤ ∥∞ ,

                                                                 25
                                Transfer Learning for Nonparametric Contextual Dynamic Pricing

where the first inequality follows from the triangle inequality and the last inequality holds since Cφ = (CLip /4) ∧ (1/4).
Thus, for any ω ∈ Ωm , the reward function f ω satisfy Assumption 2.1 with respect to the Lipschitz constant CLip > 0.

Lower-bounded density. It is straightforward to see that

                                                                         cQ r̃d
                                                                q1 =            = 2d cQ ,
                                                                        (r̃/2)d

and
                                1 − mcQ r̃d   1 − ⌊cm /r̃⌋d cQ r̃d       ⌊cm /r̃⌋d r̃d (2d − cQ )
                         q0 =               =                      = 1 +                          > 1.
                                1 − m(2r̃)d   1 − ⌊cm /r̃⌋d (2r̃)d        1 − ⌊cm /r̃⌋d (2r̃)d
Thus, we confirm that the constructed target covariate distribution satisfies Assumption 2.2.

Step 3. Applying Proposition C.1. We now verify the conditions required for applying Proposition C.1.

Step 3.1. Verification of condition (i) in Proposition C.1. For any admissible price policy π = {pπ1 , . . . , pπnQ } and for
ω ∈ Ωm , let
                                                          nQ
                                                          X
                                                                Eω f ω Xt , pω,∗ (Xt ) − f ω (Xt , pπt ) ,
                                                                                     
                                      Rπ,ω (nQ ) =
                                                          t=1

where Eω denotes the expectation under the distribution (Qω    ω   ω
                                                          X , µ , f ). Note that for any price policy π, if there exists a
            ′
time point t ∈ [nQ ] such that

                                                ⌊1/r̃⌋
                                                 [
                                       pπt′ ∈            [p∗i − r̃/2, p∗i + r̃/2]\[p∗i − r̃/4, p∗i + r̃/4],
                                                i=1

then there exists a policy π ′ with
                                                                  ⌊1/r̃⌋
                                                           ′       [
                                                         pπt′ ∈            [p∗i − r̃/4, p∗i + r̃/4],
                                                                  i=1
              ′
and pπt = pπt for all t ̸= t′ , which satisfies

                                            Rπ′ ,ω (nQ ) ≤ Rπ,ω (nQ ),                      for any ω ∈ Ωm .

To see this, suppose pπt′ ∈ [p∗i − r̃/2, p∗i + r̃/2]\[p∗i − r̃/4, p∗i + r̃/4], for some i ∈ [⌊1/r̃⌋]. If ωi = −1, then one simply
            ′
chooses pπt′ ∈ [p∗j − r̃/4, p∗j + r̃/4] for some j ̸= i; otherwise if ωi = 1, then one chooses the same index j = i. Furthermore,
             Sm
if x ∈ X \ i=1 BX (x∗i , r̃), then f ω (x, p) = 1/2 is universal for all p ∈ [0, 1] due to (73).
                                                                                   ⌊1/r̃⌋
Therefore, it suffices to consider price policies where pπt ∈ ∪i=1 [p∗i − r̃/4, p∗i + r̃/4] for all t ∈ [nQ ]. By (72), we have
that
                                           nQ       h                                                    i
                                                  Eω 1 h pω,∗ (Xt ) ̸= h(pπt ) 1 Xt ∈ ∪m
                                           X
                                                                                                ∗
                                                                               
                     Rπ,ω (nQ ) =Cφ r̃                                                    B
                                                                                       i=1 X (x i , r̃/4)
                                           t=1
                                           nQ m             h                                                i
                                                          Eω 1 h pω,∗ (Xt ) ̸= h(pπt ) 1 Xt ∈ BX (x∗i , r̃/4) .
                                           X  X                                        
                                 =Cφ r̃
                                           t=1 i=1

                                                                              ′
Let Π denote the space of all price policies. For any pπ , pπ ∈ Π, define the semi-metric
                                                 nQ m            h                                           i
                                                               Eω 1 h(pπt ) ̸= h(pπt ) 1 Xt ∈ BX (x∗i , r̃/4) .
                                  ′              X  X                    ′
                         ρ̄(pπ , pπ ) =Cφ r̃
                                                                                        
                                                 t=1 i=1


                                                                                  26
                                 Transfer Learning for Nonparametric Contextual Dynamic Pricing

For any ω ∈ Ωm , denote p̃ω,∗ = {pω,∗ (X1 ), . . . , pω,∗ (XnQ )}. For any ω, ω ′ ∈ Ωm we have that

                                     n
                                     Q m   h                                                      i
                                         Eω 1 h pω,∗ (Xt ) ̸= h pω ,∗ (Xt ) 1 Xt ∈ BX (x∗i , r̃/4)
                          ′         X X                          ′
            ρ̄ p̃ω,∗ , p̃ω ,∗ =Cφ r̃
                                                                           
                                     t=1 i=1
                                     nQ m
                           (a)                   h                                   i
                                               Eω 1 Xt ∈ BX (x∗i , r̃/4) )1 ωi ̸= ωi′
                                     X  X                                  
                           ≥ Cφ r̃
                                     t=1 i=1

                           (b)                               (c)                 m   C φ cQ
                            =Cφ cQ nQ r̃d+1 ρ(ω, ω ′ ) ≥ Cφ cQ nQ r̃d+1            =        nQ r̃d+1 ⌊cm /r̃⌋d ≥ Cρ nQ r̃,   (77)
                                                                                 8     8
where (a) holds by (75), (b) follows from (68), (c) is derived from (67), and Cρ > 0 is a constant only depending on constant
Cφ , cQ and cm .

Step 3.2. Verification of condition (ii) in Proposition C.1.
Fix a policy π, for any u ∈ [⌊1/r̃⌋], let
                                                      nQ
                                                            1{pπt ∈ [p∗u − r̃/2, p∗u + r̃/2]}.
                                                      X
                                            Ou =                                                                             (78)
                                                      t=1

Since
                                                   M ⌊1/r̃⌋
                                                   X  X
                                                                   Eω(i) (Ou ) ≤ M nQ ,
                                                      i=1 u=1

it follows that for at least ⌊M/2⌋ elements in {ω (i) }M
                                                       i=1 , there must exist at least one index u ∈ [⌊1/r̃⌋] such that

                                                                             2nQ
                                                            Eω(i) (Ou ) ≤          .                                         (79)
                                                                            ⌊1/r̃⌋

                                                                                                 ⌊M/2⌋
Therefore, we can choose one such u and without loss of generality, assume that {ω (i) }i=1 satisfy (79). Define p̃ = p∗u to
construct the density of the conditional distribution of the source price given the source covariate in (70) in Step 1.
                                                                             n              P nP
Denote the target data and source data by DnQQ = {Xt , pπt , Yt }t=1Q
                                                                       , DP = {XtP , pP
                                                                                      t , Yt }t=1 , respectively. For each
                                                                                                       (i)
                                                                                                            ω (i)      (i) 
ω (i) ∈ Ωm , let Θi be the joint distribution of the random variables in DnQQ and DP induced by Qω    X ,µ        , f ω , i.e.
under Θi :

   • the target data DnQQ follow the target covariate distribution QX with density qX , the price policy π is represented by its
                                                                                (i)          
     conditional density π̃(·|Xt , Ft−1 ) and rewards drawn from Bernoulli f ω (Xt , pπt ) , whose likelihood is denoted by
     θf ω(i) ;

                                                                                                       (i)
   • the source data DP follow the source covariate distribution PX (the marginal from µω ) with density pX , the source
                                                               (i)
                                                                                                          ω (i)
                                                                                                                           
     price distribution with conditional density denoted by pω
                                                             P (·|Xt ) and rewards drawn from Bernoulli f       (XtP , pP
                                                                                                                        t )
     again with likelihood denoted by θf ω(i) .


We denote by θi the density corresponding to Θi , then
                                                nQ
                                                Y
                          θ (DnPP , DnQQ ) =
                           i
                                                      qX (Xt )π̃ pπt Xt , Ft−1 θf ω(i) Yt Xt , pπt
                                                                                                  
                                                t=1
                                                          nP
                                                          Y
                                                                pX (XtP )pP pP  P           P P    P
                                                                                                    
                                                      ×                      t Xt θf ω(i) Yt Xt , pt   .                     (80)
                                                          t=1


                                                                       27
                                    Transfer Learning for Nonparametric Contextual Dynamic Pricing
                                                               
Note that the densities involving the policy π̃ pπt Xt , Ft−1 are identical since π is fixed. For any i ∈ [⌊M/2⌋], and
ω (0) ∈ Ωm ,
                                         nQ
                                                                        ) n                               )
                                                    θf ω(i) Yt Xt , pπt               θf ω(i) YtP XtP , pP
                 (                 )            (                                   (
                   dΘi P        Q
                                        X                                   X P
                                                                                                         t
             log       (D , D ) =           log                          +     log                         .
                   dΘ0 nP nQ            t=1
                                                   θf ω(0) Yt Xt , pπt      t=1
                                                                                      θf ω(0) YtP XtP , pP
                                                                                                         t

Taking the expectation with respect to Θi , we obtain
                               " nQ                              ) n                                     )#
                                            θf ω(i) Yt Xt , pπt                  θf ω(i) YtP XtP , pP
                                         (                                     (
                                                                         P
                i    0
                                X                                      X                              t
           KL(Θ , Θ ) =Eω(i)         log                          +       log                           
                                 t=1
                                            θf ω(0) Yt Xt , pπt        t=1
                                                                                 θf ω(0) YtP XtP , pP  t
                               " nQ                               )#                                             )#
                                            θf ω(i) Yt Xt , pπt                           θf ω(i) YtP XtP , pP
                                         (                                    "n        (
                                                                                  P
                                X                                              X                               t
                       =Eω(i)        log                       π
                                                                     + Eω(i)       log               P X P , pP
                                                                                                                 
                                 t=1
                                            θ f ω (0) Yt Xt , pt
                                                                                i=1
                                                                                          θ f ω (0) Yt     t   t

                             =KLQ + KLP .                                                                                   (81)

Note that
                               " nQ                                        )#
                                                     θf ω(i) Yt x, pπt
                  Z                              (
                                X
            Q
        KL =           Eω(i)             log                   qX (x)dx
                   X               t=1
                                           θf ω(0) Yt x, pπt
                                              " nQ                                                          )#
                                                                                         θf ω(i) Yt x, pπt
                  Z                                                                    (
                                                    1 pπt ∈ p∗u − r̃/2, p∗u + r̃/2 log
                                               X                                
                = S                     Eω(i)                                                                 qX (x)dx
                    m
                    j=1 B X (x ∗ ,r̃/4)
                               j                t=1
                                                                                         θf ω(0) Yt x, pπt
                       X
                                      QX BX (x∗j , r̃/4) Eω(i) (Ou )KL Bernoulli(1/2 + Cφ r̃), Bernoulli(1/2 − Cφ r̃)
                                                                                                                       
                ≤
                             (i)    (0)
                  j∈[m] : ωj ̸=ωj
                                     X
                ≤32Cφ2 r̃2                                 QX BX (x∗j , r̃/4) Eω(i) (Ou )
                                                                             
                                           (i)       (0)
                             j∈[m] : ωj ̸=ωj
                              nQ
                ≤64Cφ2 cQ           mr̃d+2 ≤ CQ nQ r̃d+3 m,                                                                 (82)
                             ⌊1/r̃⌋
where

   • the second equality follows from (68), (73), (74) and p̃(x) = p∗u ,
   • the first inequality follows from (71) and (78),
   • the second inequality follows from Lemma 15 in Cai et al. (2024a),
   • the third inequality follows from (68) and (79),
   • and CQ > 0 is a constant only depending on constants Cφ and cQ .

We also have that
                                                            )#
                                         θf ω(i) YtP x, pP
                          "n          (
                Z              P
           P
                            X                            t
        KL =        Eω(i)         log                         pX (x)dx
                  X         t=1
                                        θf ω(0) YtP x, pPt
                                                                                                     )#
                                                                                   θf ω(i) Yt x, pP
                                           "n                                    (
                Z                              P
                                                                                                  t
                                                 1 pt ∈ pu − r̃/2, pu + r̃/2 log
                                             X     P  ∗            ∗
                                                                            
              =                      Eω(i)                                                              pX (x)dx
                  ∪m        ∗
                   j=1 BX (xj ,r̃/4)         i=1
                                                                                   θf ω(0) Yi x, pP
                                                                                                  t
                             X
                                        PX BX (x∗j , r̃/4) KL Bernoulli(1/2 + Cφ r̃), Bernoulli(1/2 − Cφ r̃)
                                                                                                            
              ≤κnP r̃
                                     (i)         (0)
                          j∈[m]:ωj ̸=ωj
                                                 X
                 ≤32Cφ2 nP κr̃3                                   PX BX (x∗i , r̃/4)
                                                                                    
                                                     (i)    (0)
                                     j∈[m]:ωj ̸=ωj

                 ≤32Cφ2 cQ cγ nP κmr̃d+γ+3 = CP κnP r̃d+γ+3 m,                                                              (83)
where

                                                                                 28
                              Transfer Learning for Nonparametric Contextual Dynamic Pricing

   • the second equality follows from (69), (73) and (74),

   • the first inequality follows from (70) and (71),

   • the second inequality follows from Lemma 15 in Cai et al. (2024a),

   • the third inequality follows from (69),

   • and CP > 0 is a constant only depending on constants Cφ , cQ and cγ .

Combining (81), (82) and (83), it holds that

                                       [⌊M/2⌋]
                                        X
                            ⌊M/2⌋−1              KL(Θi , Θ0 ) ≤CQ nQ r̃d+3 m + CP κnP r̃d+γ+3 m.                              (84)
                                         i=1

Now set
                                                                            1
                                                                         − d+3
                                                                    d+3
                                               r̃ = cr nQ + (κnP ) d+3+γ        ,                                             (85)

where cr > 0 is a sufficiently small constant. From (67), it holds that

                                                  [⌊M/2⌋]
                                                    X
                                     ⌊M/2⌋−1                KL(Θi , Θ0 ) ≤ α log2 (⌊M/2⌋).
                                                    i=1

where 0 < α < 1/8.

                                                                                             ⌊M/2⌋
Step 3.3. We have verified that all conditions of Proposition C.1 hold for the family {Θi }i=0       . By applying Proposition C.1,
Markov’s inequality, (77) and (85), we obtain that
                                                                                       d+3       1
                                                                                             − d+3
                            inf        sup           Rπ,I (nQ ) ≥ cnQ nQ + (κnP ) d+3+γ               ,
                             π I∈I(γ,c ,κ,C ,c )
                                      γ    Lip Q



where c > 0 is a constant only depending on constants CLip , cγ and cQ . This completes the proof.



C.2. Auxiliary results
For completeness, we include Proposition 1 from Kpotufe & Martinet (2020) below, as it is a key tool for establishing the
minimax lower bound.
Proposition C.1 (Proposition 1 in Kpotufe & Martinet (2020)). Let {Θh }h∈H be a family of distributions indexed by a
subset H of a semi-metric space (F, ρ̄). Assume that there exists h0 , . . . , hM ∈ H, with M ≥ 2, such that

 (i) ρ̄(hi , hj ) ≥ 2s > 0, ∀0 ≤ i < j ≤ M ,

(ii) Θhi ≪ Θh0 , ∀i ∈ [M ] and the average KL-divergence to Θh0 satisfies

                                        M
                                    1 X
                                          KL(Θhi , Θh0 ) ≤ α log M,          where 0 < α < 1/8.
                                    M i=1


Let Z ∼ Θh and let ĥ : Z → F denote any improper learner of h ∈ H. It holds that
                                                    √                  s          !       √
                                                  M                      2α       3−2 2
                    sup Θh ρ̄ ĥ(Z), h ≥ s ≥          √      1 − 2α −               ≥       .
                    h∈H                          1+ M                     log(M )       8

                                                                 29
                                             Transfer Learning for Nonparametric Contextual Dynamic Pricing

D. Additional details in Section 5
D.1. Additional results in Section 5.1

Scenario 1. The simulation results for Configuration 2 of Scenario 1, as described in Section 5.1, are presented in Figure 3.

Scenario 2. The simulation results for Configurations 1 and 2 of Scenario 2, as described in Section 5.1, are presented in
Figure 4 and Figure 5, respectively.
To assess robustness of TLDP, we conducted additional simulations under Configuration 1 in Scenario 1, using a list of
mis-specified values of tuning parameters (κ, γ), while keeping the true values fixed at κ = 0.6 and γ = 1. The results,
presented in Figure 6, indicate that our method remains robust under moderate misspecification of these parameters.


              A                                                        B
                        3000                                                    400

                                                                                                                                Method (Panel A)
               Regret




                                                                       Regret
                        2000                                                    300
                                                                                                                                    TLDP
                                                                                                                                    Target−Only TLDP
                        1000                                                    200
                                                                                                                                    ABE
                                                                                                                                    ExUCB
                          0
                               10000   20000   30000   40000   50000                   0      10000     20000   30000   40000
                                                nQ                                                       nP

              C                                 γ                      D                                 CI
                               0.5      1       1.5     2      2.5                    0.25        0.5   0.75      1     1.25
                        190
                                                                                500
                        180

                        170                                                     400
                                                                       Regret




                                                                                                                                Method (Panels B, C & D)
               Regret




                        160
                                                                                300                                                 TLDP (varies w/ bottom axis)
                        150                                                                                                         TLDP (varies w/ top axis)
                                                                                200
                        140

                        130                                                           0.15    0.20      0.25    0.30    0.35
                               0.2     0.4      0.6    0.8     1.0
                                                κ                                                        Cr


Figure 3. Results for Configuration 2 in Scenario 1. Panel (A) and (B): varying source data size nP and target data size nQ , respectively.
Panel (C) varying the transfer exponent γ (top axis) and the exploration coefficient κ (bottom axis). Panel (D): varying the index constant
CI (top axis) and the exploration radius constant Cr (bottom axis). For Panels (B), (C) and (D), we fix nQ = 10000.


D.2. Additional results in Section 5.2
In this subsection, we present samples of the processed auto loan dataset and the corresponding results in Tables 2 and 3,
respectively.




                                                                                             30
                                             Transfer Learning for Nonparametric Contextual Dynamic Pricing




               A                                                        B
                        7500                                                     1000

                                                                                                                                    Method (Panel A)
               Regret




                                                                        Regret
                        5000                                                     800
                                                                                                                                        TLDP

                                                                                 600                                                    Target−Only TLDP
                        2500
                                                                                                                                        ABE
                                                                                 400                                                    ExUCB
                               10000   20000    30000   40000   50000                     0         10000   20000   30000   40000
                                                 nQ                                                          nP

               C                                  γ                     D                                    CI
                                0.5      1       1.5     2       2.5                     0.25        0.5     0.75     1     1.25

                        1600                                                     1500


                                                                                 1250
                        1200                                            Regret                                                      Method (Panels B, C & D)
               Regret




                                                                                 1000
                                                                                                                                        TLDP (varies w/ bottom axis)

                        800                                                      750                                                    TLDP (varies w/ top axis)


                                                                                 500
                        400
                                                                                         0.15       0.20     0.25    0.30   0.35
                                0.2     0.4      0.6     0.8     1.0
                                                 κ                                                           Cr


Figure 4. Results for Configuration 1 in Scenario 2. Panel (A) and (B): varying source data size nP and target data size nQ , respectively.
Panel (C) varying the transfer exponent γ (top axis) and the exploration coefficient κ (bottom axis). Panel (D): varying the index constant
CI (top axis) and the exploration radius constant Cr (bottom axis). For Panels (B), (C) and (D), we fix nQ = 10000.




               A                                                        B
                        5000                                                     700

                                                                                 650
                        4000                                                                                                        Method (Panel A)
               Regret




                                                                        Regret




                                                                                 600
                        3000                                                                                                            TLDP
                                                                                 550                                                    Target−Only TLDP
                        2000
                                                                                 500                                                    ABE
                        1000
                                                                                                                                        ExUCB
                                                                                 450
                               10000   20000    30000   40000   50000                    0      10000       20000   30000   40000
                                                 nQ                                                          nP

               C                                 γ                      D                                    CI
                               0.5      1       1.5      2      2.5                     0.25        0.5     0.75      1     1.25

                                                                                 900


                        800                                                      800
                                                                        Regret




                                                                                                                                    Method (Panels B, C & D)
               Regret




                                                                                                                                        TLDP (varies w/ bottom axis)
                                                                                 700
                        700                                                                                                             TLDP (varies w/ top axis)

                                                                                 600

                                                                                        0.15        0.20    0.25    0.30    0.35
                               0.2     0.4      0.6     0.8     1.0
                                                 κ                                                           Cr


Figure 5. Results for Configuration 2 in Scenario 2. Panel (A) and (B): varying source data size nP and target data size nQ , respectively.
Panel (C) varying the transfer exponent γ (top axis) and the exploration coefficient κ (bottom axis). Panel (D): varying the index constant
CI (top axis) and the exploration radius constant Cr (bottom axis). For Panels (B), (C) and (D), we fix nQ = 10000.



                                                                                               31
                                        Transfer Learning for Nonparametric Contextual Dynamic Pricing




                    450                                                                     450



                    400                                                                     400



                    350                                                                     350
                                                             Method                                                             Method
           Regret




                                                                                   Regret




                                                                TLDP                                                               TLDP
                    300                                         Target−Only TLDP            300                                    Target−Only TLDP



                    250                                                                     250



                    200                                                                     200

                          0.25   0.50        0.75     1.00                                        0.5   1.0   1.5   2.0   2.5
                                         ^
                                         κ                                                                    ^γ




Figure 6. Results for Configuration 1 in Scenario 2. Left panel: Varying the estimated κ with true fixed at κ = 0.6. Right panel: Varying
the estimated γ with true value fixed at γ = 1. In both panels, the target data size is fixed at nQ = 10000 and the source data size at
nP = 2nQ , and we set the index constant CI = 1 and the exploration radius constant Cr = 1/4.




                                                                              32
     D IVISION                 P RICE       FICO      C OMPETITION RATE   A MOUNT APPROVED   P RIME RATE     T ERM      R EWARD
     W EST S OUTH C ENTRAL   0.26497654   0.4007937      0.9421965           0.31578947      0.7396567     1.0000000   0.00000000
     W EST S OUTH C ENTRAL   0.03455228   0.5912698      0.5664740           0.14842105      0.7396567     0.0000000   0.03455228




33
     E AST N ORTH C ENTRAL   0.08328724   0.7032520      0.8265896            0.2144407      0.7396567     0.3333333   0.00000000
     E AST N ORTH C ENTRAL   0.08203698   0.4227642      0.7687861            0.1620701      0.7396567     0.6666667   0.00000000
     E AST S OUTH C ENTRAL   0.09374806   0.2490119      0.9421965           0.03204972      0.7396567     1.0000000   0.00000000
     E AST S OUTH C ENTRAL   0.04983916   0.5731225      0.8265896           0.08330877      0.7396567     0.3333333   0.00000000
                                                                                                                                                                                                                                               Transfer Learning for Nonparametric Contextual Dynamic Pricing




                                                                                                                                    Table 2. Sample of the normalized auto loan dataset, including key covariates, prices and reward values.
                                Transfer Learning for Nonparametric Contextual Dynamic Pricing




Table 3. Results for the auto loan dataset with East South Central data as the target division. Columns correspond to the source divisions
utilized in TLDP. Here, nP represents the number of the source data utilized in TLDP and n denotes the total number of source
observations. Each cell reports the mean and standard deviation over 100 simulations.

           M ETHODS                  M OUNTAIN       E AST N ORTH C ENTRAL        W EST S OUTH C ENTRAL            PACIFIC
           ABE                      70.81 (1.40)           70.81 (1.40)                  70.81 (1.40)           70.81 (1.40)
           E X UCB                  64.91 (5.31)           64.91 (5.31)                  64.91 (5.31)           64.91 (5.31)
           TLDP(nP = 0)             71.95 (2.87)           71.95 (2.87)                  71.95 (2.87)           71.95 (2.87)
           TLDP(nP = 0.25n)         55.63 (8.04)           56.80 (8.59)                  53.95 (8.26)           51.61 (8.89)
           TLDP(nP = 0.5n)          54.29 (7.06)           55.31 (8.60)                  54.07 (7.44)           51.44 (7.12)
           TLDP(nP = 0.75n)         51.38 (6.92)           51.52 (7.43)                  50.67 (7.19)           49.40 (7.40)
           TLDP(nP = n)             50.23 (7.34)           51.92 (7.09)                  49.85 (7.97)           48.72 (8.27)




                                                                   34
