We introduce a statistical simulation method for dynamic portfolio valuation and risk management building on machine learning with kernels. We learn the dynamic value process of a portfolio from a finite sample of its terminal cumulative cash flow. The learned value process is given in closed form thanks to a suitable choice of the kernel. We develop an asymptotic theory and prove convergence and a central limit theorem. We derive dimension-free sample error bounds and concentration inequalities. Numerical examples show good results for a relatively small training sample size. Keywords: dynamic portfolio valuation, kernel ridge regression, learning theory, reproducing kernel Hilbert space, portfolio risk management MSC (2010) Classification: 68T05, 91G60 JEL Classification: C15, G32 1 Introduction Valuation, risk measurement, and hedging form an integral task in portfolio risk management for banks, insurance companies, and other financial institutions. Portfolio risk arises because the values of constituent assets and liabilities of the portfolio change over time in response to changes in the underlying risk factors, e.g., interest rates, equity prices, real-estate prices, foreign exchange rates, credit spreads, etc. The quantification and management of this risk requires a stochastic model of the dynamic portfolio value process.In the absence of a liquid market for price discovery of such a portfolio, its value has to be derived from the cash flow that it generates. Examples of such portfolios include path-dependent options, structured products, such as barrier reverse convertibles, mortgage-backed securities, and life insurance products featuring mortality and longevity risks. More formally, we henceforth assume that all financial values and cash flows are discounted by some numeraire, e.g., the money market account that earns the short-term interest rates.