Notes
    
    This page contains some short notes I wrote for quick reads.
  
    
  
    
  
    
      
        Survey Sampling
        
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          5 minute read
        
      
    
  
    
  Result: Using Rcpp with OpenMP can accelerate the simulation about 70 times in R.
  
 
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          3 minute read
        
      
    
  
    
  Result: On average, using Rcpp can be about 4.5 times faster than just using R.
  
 
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          2 minute read
        
      
    
  
    This short simulation study 
examines the coverage probability of 95% confidence intervals 
of the Horvitz-Thompson estimator of the population mean 
under s...
  
 
          
         
        Back to top ↑
      
    
  
    
  
    
      
        Simulation
        
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          5 minute read
        
      
    
  
    
  Result: Using Rcpp with OpenMP can accelerate the simulation about 70 times in R.
  
 
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          3 minute read
        
      
    
  
    
  Result: On average, using Rcpp can be about 4.5 times faster than just using R.
  
 
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          2 minute read
        
      
    
  
    This short simulation study 
examines the coverage probability of 95% confidence intervals 
of the Horvitz-Thompson estimator of the population mean 
under s...
  
 
          
         
        Back to top ↑
      
    
  
    
      
        R
        
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          5 minute read
        
      
    
  
    
  Result: Using Rcpp with OpenMP can accelerate the simulation about 70 times in R.
  
 
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          3 minute read
        
      
    
  
    
  Result: On average, using Rcpp can be about 4.5 times faster than just using R.
  
 
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          3 minute read
        
      
    
  
    What is a class system?
R is an object-oriented programming language with 
four object-oriented class systems.1 In other words, there are four ways to write ...
  
 
          
         
        Back to top ↑
      
    
  
    
  
    
  
    
  
    
  
  
    
  
    
  
    
  
    
  
    
  
    
  
    
      
        Rcpp
        
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          5 minute read
        
      
    
  
    
  Result: Using Rcpp with OpenMP can accelerate the simulation about 70 times in R.
  
 
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          3 minute read
        
      
    
  
    
  Result: On average, using Rcpp can be about 4.5 times faster than just using R.
  
 
          
         
        Back to top ↑
      
    
  
    
      
        C++
        
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          5 minute read
        
      
    
  
    
  Result: Using Rcpp with OpenMP can accelerate the simulation about 70 times in R.
  
 
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          3 minute read
        
      
    
  
    
  Result: On average, using Rcpp can be about 4.5 times faster than just using R.
  
 
          
         
        Back to top ↑
      
    
  
    
  
    
  
  
    
      
        Machine Learning
        
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          less than 1 minute read
        
      
    
  
    I wrote this article for a course. The link to the article is 
here.
  
 
          
         
        Back to top ↑
      
    
  
    
      
        Forecasting
        
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          less than 1 minute read
        
      
    
  
    I wrote this article for a course. The link to the article is 
here.
  
 
          
         
        Back to top ↑
      
    
  
    
  
    
      
        Coverage Probability
        
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          2 minute read
        
      
    
  
    This short simulation study 
examines the coverage probability of 95% confidence intervals 
of the Horvitz-Thompson estimator of the population mean 
under s...
  
 
          
         
        Back to top ↑
      
    
  
    
  
    
  
    
  
    
  
    
      
        OpenMP
        
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          5 minute read
        
      
    
  
    
  Result: Using Rcpp with OpenMP can accelerate the simulation about 70 times in R.
  
 
          
         
        Back to top ↑
      
    
  
    
      
        Parallel Computing
        
          
            
  
    
    
    
  
    
    
    
      
      
      
        
        
          5 minute read
        
      
    
  
    
  Result: Using Rcpp with OpenMP can accelerate the simulation about 70 times in R.
  
 
          
         
        Back to top ↑