Giter Site home page Giter Site logo

estimate-mean-with-betting's Introduction

Estimate-mean-with-betting

In this project, we implemented two simulations to show the performance of betting method compared with the emperical Berstein method and boostrap method to construct the confidence sequence. The code is written in R langauge. Two main files are 1-synthetic.R and 2-baseball.Rmd. The detailed implementation of betting, boostrap, and emprical Berstein methods are in the utils folder. All figure results are in the fig folder.

1. Synthetic data with Beta(10,30) distribution

Data Generation: $1\times 10^4$ data points are randomly sampled from a Beta distribution $\text{Beta}(10,30)$ to construct a $95%$ confidence sequece.

R 1-synthetic.R

2. Baseball batting data

Data Description: We created the first 45 random batting sequences $S_{i}$ based on the first given 45 bats MLE where $$S_{i} = [x_{i}^{s}| \sum_{s=1}^{45} x_{i}^{s}=p_{i}, x_{i}^{s}={0,1}], \text{for } i = 1,2,..., n$$

Here $n =18$ represents the 18 players and $p_{i}$ represents the batting MLE. Our goal is to construct confidence interval for the true batting level $p_{i}^{*}$ of each player.

estimate-mean-with-betting's People

Contributors

likelyt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.