Tidy Finance with Python

Tidy Finance with Python
Author: Christoph Scheuch
Publisher: CRC Press
Total Pages: 262
Release: 2024-07-12
Genre: Mathematics
ISBN: 1040048617

This textbook shows how to bring theoretical concepts from finance and econometrics to the data. Focusing on coding and data analysis with Python, we show how to conduct research in empirical finance from scratch. We start by introducing the concepts of tidy data and coding principles using pandas, numpy, and plotnine. Code is provided to prepare common open-source and proprietary financial data sources (CRSP, Compustat, Mergent FISD, TRACE) and organize them in a database. We reuse these data in all the subsequent chapters, which we keep as self-contained as possible. The empirical applications range from key concepts of empirical asset pricing (beta estimation, portfolio sorts, performance analysis, Fama-French factors) to modeling and machine learning applications (fixed effects estimation, clustering standard errors, difference-in-difference estimators, ridge regression, Lasso, Elastic net, random forests, neural networks) and portfolio optimization techniques. Key Features: Self-contained chapters on the most important applications and methodologies in finance, which can easily be used for the reader’s research or as a reference for courses on empirical finance. Each chapter is reproducible in the sense that the reader can replicate every single figure, table, or number by simply copying and pasting the code we provide. A full-fledged introduction to machine learning with scikit-learn based on tidy principles to show how factor selection and option pricing can benefit from Machine Learning methods. We show how to retrieve and prepare the most important datasets financial economics: CRSP and Compustat, including detailed explanations of the most relevant data characteristics. Each chapter provides exercises based on established lectures and classes which are designed to help students to dig deeper. The exercises can be used for self-studying or as a source of inspiration for teaching exercises.

Reproducible Finance with R

Reproducible Finance with R
Author: Jonathan K. Regenstein, Jr.
Publisher: CRC Press
Total Pages: 248
Release: 2018-09-24
Genre: Mathematics
ISBN: 1351052608

Reproducible Finance with R: Code Flows and Shiny Apps for Portfolio Analysis is a unique introduction to data science for investment management that explores the three major R/finance coding paradigms, emphasizes data visualization, and explains how to build a cohesive suite of functioning Shiny applications. The full source code, asset price data and live Shiny applications are available at reproduciblefinance.com. The ideal reader works in finance or wants to work in finance and has a desire to learn R code and Shiny through simple, yet practical real-world examples. The book begins with the first step in data science: importing and wrangling data, which in the investment context means importing asset prices, converting to returns, and constructing a portfolio. The next section covers risk and tackles descriptive statistics such as standard deviation, skewness, kurtosis, and their rolling histories. The third section focuses on portfolio theory, analyzing the Sharpe Ratio, CAPM, and Fama French models. The book concludes with applications for finding individual asset contribution to risk and for running Monte Carlo simulations. For each of these tasks, the three major coding paradigms are explored and the work is wrapped into interactive Shiny dashboards.

Text Mining with R

Text Mining with R
Author: Julia Silge
Publisher: "O'Reilly Media, Inc."
Total Pages: 193
Release: 2017-06-12
Genre: Computers
ISBN: 1491981628

Chapter 7. Case Study : Comparing Twitter Archives; Getting the Data and Distribution of Tweets; Word Frequencies; Comparing Word Usage; Changes in Word Use; Favorites and Retweets; Summary; Chapter 8. Case Study : Mining NASA Metadata; How Data Is Organized at NASA; Wrangling and Tidying the Data; Some Initial Simple Exploration; Word Co-ocurrences and Correlations; Networks of Description and Title Words; Networks of Keywords; Calculating tf-idf for the Description Fields; What Is tf-idf for the Description Field Words?; Connecting Description Fields to Keywords; Topic Modeling.

Tidy Finance with R

Tidy Finance with R
Author: Christoph Scheuch
Publisher: CRC Press
Total Pages: 275
Release: 2023-04-05
Genre: Business & Economics
ISBN: 1000858782

This textbook shows how to bring theoretical concepts from finance and econometrics to the data. Focusing on coding and data analysis with R, we show how to conduct research in empirical finance from scratch. We start by introducing the concepts of tidy data and coding principles using the tidyverse family of R packages. We then provide the code to prepare common open source and proprietary financial data sources (CRSP, Compustat, Mergent FISD, TRACE) and organize them in a database. We reuse these data in all the subsequent chapters, which we keep as self-contained as possible. The empirical applications range from key concepts of empirical asset pricing (beta estimation, portfolio sorts, performance analysis, Fama-French factors) to modeling and machine learning applications (fixed effects estimation, clustering standard errors, difference-in-difference estimators, ridge regression, Lasso, Elastic net, random forests, neural networks) and portfolio optimization techniques. Highlights 1. Self-contained chapters on the most important applications and methodologies in finance, which can easily be used for the reader’s research or as a reference for courses on empirical finance. 2. Each chapter is reproducible in the sense that the reader can replicate every single figure, table, or number by simply copy-pasting the code we provide. 3. A full-fledged introduction to machine learning with tidymodels based on tidy principles to show how factor selection and option pricing can benefit from Machine Learning methods. 4. Chapter 2 on accessing and managing financial data shows how to retrieve and prepare the most important datasets in the field of financial economics: CRSP and Compustat. The chapter also contains detailed explanations of the most relevant data characteristics. 5. Each chapter provides exercises that are based on established lectures and exercise classes and which are designed to help students to dig deeper. The exercises can be used for self-studying or as a source of inspiration for teaching exercises.

Reproducible Finance with R

Reproducible Finance with R
Author: Jonathan K. Regenstein, Jr.
Publisher: CRC Press
Total Pages: 249
Release: 2018-09-24
Genre: Mathematics
ISBN: 1351052616

Reproducible Finance with R: Code Flows and Shiny Apps for Portfolio Analysis is a unique introduction to data science for investment management that explores the three major R/finance coding paradigms, emphasizes data visualization, and explains how to build a cohesive suite of functioning Shiny applications. The full source code, asset price data and live Shiny applications are available at reproduciblefinance.com. The ideal reader works in finance or wants to work in finance and has a desire to learn R code and Shiny through simple, yet practical real-world examples. The book begins with the first step in data science: importing and wrangling data, which in the investment context means importing asset prices, converting to returns, and constructing a portfolio. The next section covers risk and tackles descriptive statistics such as standard deviation, skewness, kurtosis, and their rolling histories. The third section focuses on portfolio theory, analyzing the Sharpe Ratio, CAPM, and Fama French models. The book concludes with applications for finding individual asset contribution to risk and for running Monte Carlo simulations. For each of these tasks, the three major coding paradigms are explored and the work is wrapped into interactive Shiny dashboards.

The Book of R

The Book of R
Author: Tilman M. Davies
Publisher: No Starch Press
Total Pages: 833
Release: 2016-07-16
Genre: Computers
ISBN: 1593276516

The Book of R is a comprehensive, beginner-friendly guide to R, the world’s most popular programming language for statistical analysis. Even if you have no programming experience and little more than a grounding in the basics of mathematics, you’ll find everything you need to begin using R effectively for statistical analysis. You’ll start with the basics, like how to handle data and write simple programs, before moving on to more advanced topics, like producing statistical summaries of your data and performing statistical tests and modeling. You’ll even learn how to create impressive data visualizations with R’s basic graphics tools and contributed packages, like ggplot2 and ggvis, as well as interactive 3D visualizations using the rgl package. Dozens of hands-on exercises (with downloadable solutions) take you from theory to practice, as you learn: –The fundamentals of programming in R, including how to write data frames, create functions, and use variables, statements, and loops –Statistical concepts like exploratory data analysis, probabilities, hypothesis tests, and regression modeling, and how to execute them in R –How to access R’s thousands of functions, libraries, and data sets –How to draw valid and useful conclusions from your data –How to create publication-quality graphics of your results Combining detailed explanations with real-world examples and exercises, this book will provide you with a solid understanding of both statistics and the depth of R’s functionality. Make The Book of R your doorway into the growing world of data analysis.

Tidy Modeling with R

Tidy Modeling with R
Author: Max Kuhn
Publisher: "O'Reilly Media, Inc."
Total Pages: 384
Release: 2022-07-12
Genre: Computers
ISBN: 1492096458

Get going with tidymodels, a collection of R packages for modeling and machine learning. Whether you're just starting out or have years of experience with modeling, this practical introduction shows data analysts, business analysts, and data scientists how the tidymodels framework offers a consistent, flexible approach for your work. RStudio engineers Max Kuhn and Julia Silge demonstrate ways to create models by focusing on an R dialect called the tidyverse. Software that adopts tidyverse principles shares both a high-level design philosophy and low-level grammar and data structures, so learning one piece of the ecosystem makes it easier to learn the next. You'll understand why the tidymodels framework has been built to be used by a broad range of people. With this book, you will: Learn the steps necessary to build a model from beginning to end Understand how to use different modeling and feature engineering approaches fluently Examine the options for avoiding common pitfalls of modeling, such as overfitting Learn practical methods to prepare your data for modeling Tune models for optimal performance Use good statistical practices to compare, evaluate, and choose among models

Modeling Financial Time Series with S-PLUS

Modeling Financial Time Series with S-PLUS
Author: Eric Zivot
Publisher: Springer Science & Business Media
Total Pages: 632
Release: 2013-11-11
Genre: Business & Economics
ISBN: 0387217630

The field of financial econometrics has exploded over the last decade This book represents an integration of theory, methods, and examples using the S-PLUS statistical modeling language and the S+FinMetrics module to facilitate the practice of financial econometrics. This is the first book to show the power of S-PLUS for the analysis of time series data. It is written for researchers and practitioners in the finance industry, academic researchers in economics and finance, and advanced MBA and graduate students in economics and finance. Readers are assumed to have a basic knowledge of S-PLUS and a solid grounding in basic statistics and time series concepts. This Second Edition is updated to cover S+FinMetrics 2.0 and includes new chapters on copulas, nonlinear regime switching models, continuous-time financial models, generalized method of moments, semi-nonparametric conditional density models, and the efficient method of moments. Eric Zivot is an associate professor and Gary Waterman Distinguished Scholar in the Economics Department, and adjunct associate professor of finance in the Business School at the University of Washington. He regularly teaches courses on econometric theory, financial econometrics and time series econometrics, and is the recipient of the Henry T. Buechel Award for Outstanding Teaching. He is an associate editor of Studies in Nonlinear Dynamics and Econometrics. He has published papers in the leading econometrics journals, including Econometrica, Econometric Theory, the Journal of Business and Economic Statistics, Journal of Econometrics, and the Review of Economics and Statistics. Jiahui Wang is an employee of Ronin Capital LLC. He received a Ph.D. in Economics from the University of Washington in 1997. He has published in leading econometrics journals such as Econometrica and Journal of Business and Economic Statistics, and is the Principal Investigator of National Science Foundation SBIR grants. In 2002 Dr. Wang was selected as one of the "2000 Outstanding Scholars of the 21st Century" by International Biographical Centre.

PRAC QUANTITATIVE FINANCE W/R

PRAC QUANTITATIVE FINANCE W/R
Author: Jack Xu
Publisher: Unicad
Total Pages: 420
Release: 2016-08-12
Genre: Business & Economics
ISBN: 9780979372575

The book provides a complete explanation of R programming in quantitative finance. It demonstrates how to prototype quant models and backtest trading strategies. It pays special attention to creating business applications and reusable R libraries that can be directly used to solve real-world problems in quantitative finance.