Questions tagged [monte-carlo]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

Combining monte carlo with deep learning to improve the estimation

I am in situation where i need to estimate the attenuation of an EM wave . we consider EM wave as collection of photons. These photons when strike with some dust particles they scatter in different ...
user7341333's user avatar
0 votes
0 answers
18 views

Sample Size for Adaptive Lasso

Be gentle, I'm learning here. I have a fairly simple adaptive lasso regression that I'm trying to test for a minimum sample size. I used cross-validated mean squared error as the "score" of ...
JRDubbleu's user avatar
0 votes
1 answer
46 views

Hamiltonian Monte Carlo - Is it generally a good method for obtaining random variables in Machine Learning?

I once saw the Hamiltonian Monte Carlo method for use in machine learning. But It seems to me that it is not actually a random sampling; It follows the dynamical equation of motion. Is it generally a ...
K.R.Park's user avatar
  • 103
1 vote
1 answer
79 views

CDF/PDF vs Monte Carlo

I’m a developer reading the book Bayesian statistics the fun way In chapter 15 they use hypothesis testing using Monte Carlo simulation to pick random values from two intercepting beta distributions I ...
SamTheGoodOne's user avatar
0 votes
0 answers
21 views

Mplus Monte Carlo Sim w/Covariates

I have an Mplus INP file with which I am running a Monte Carlo sim for a latent class analysis. I have the class solution working properly, but I genuinely cannot figure out how to add in covariates ...
JRW's user avatar
  • 1
1 vote
0 answers
20 views

Calculating an integral with as few grid points as possible

Suppose I have a function $f\colon [0,1] \to \mathbb{R}$ which is maybe continuous (it's at least in $L^1$). I have a sample of $N$ points $\{x_i\}$ taken from the domain $[0,1]$ randomly from some ...
math_guy's user avatar
  • 111
0 votes
0 answers
56 views

Monte Carlo simulation of (potentially) correlated multiple time series

I am seeking help on how to perform Monte Carlo simulations on (potentially) correlated time series. I have a single product (e.g., men's wallets) that are sold out of seven stores in the same city. I ...
Ralph Asher's user avatar
0 votes
0 answers
24 views

Random walk through Bootstrap

I'm performing a Bootstrap Random Walk over a set of points which is a time series with a certain pattern. Right now, I took the set of points and then resample it with replacement. ...
Carlos Trujillo's user avatar
1 vote
1 answer
113 views

How can I deal with a computationally expensive simulator method in Sequential Monte Carlo/Approximate Bayesian Computation?

I am doing Approximate Bayesian Computation with Sequential Monte Carlo with PyMC in a way that is similar to what is described in this example of the ...
lm1909's user avatar
  • 11
0 votes
1 answer
75 views

Quantifying the performance of Stepwise Regression ran on Monte Carlo generated datasets & comparing them to your method of interest

The source data files and scripts referenced here and from whom lines of code are included here can be found in my GitHub Repository for this collaborative research project exploring the properties of ...
Marlen's user avatar
  • 167
0 votes
1 answer
25 views

A simple way to store the factors selected by (BE) Stepwise Regression n run on N datasets via lapply, a For Loop then an lapply, or a function?

I am currently doing research with a coauthor and collaborator comparing a new optimal model selection procedure he has proposed via Monte Carlo Simulation of the new procedure vs 2 benchmarks, LASSO &...
Marlen's user avatar
  • 167
2 votes
2 answers
446 views

Which Model for predicting flight delays is appropriate except Random Forest and Decision Tree? (Monte Carlo?)

Im studying M.Sc Data Science and in the module "Decision Support Systems" me and my group have to make a presentation. Our Proposal is the following: Background With generally high demand ...
wayne's user avatar
  • 21
1 vote
0 answers
12 views

Confusion regarding which distribution Monte Carlo considers for sampling

Considering Bayesian posterior inference, which distribution does Monte Carlo sampling take samples from: posterior or prior? Posterior is intractable because the denominator (evidence) is an ...
Curious's user avatar
  • 151
1 vote
0 answers
43 views

Monte Carlo Markov Chain

I was trying to figure out what is a Monte Carlo Markov Chain. From what I understand it is a way of computing an approximation of a probability distribution, which cannot compute exactly. So we ...
Turned Capacitor's user avatar
1 vote
0 answers
59 views

How to resolve IndexError while doing Monte Carlo for 1000 runs? [closed]

Below code runs without any problem, however when I run the same code using Monte Carlo Analysis for 1000 runs, it gives IndexError. Can someone explain why this happens. Thanks ...
Mathew's user avatar
  • 31
0 votes
0 answers
20 views

Is it a good idea to use the mean and standard deviation of coefficients from other models as my prior in Bayesian Regression?

I have a dataset that I’ve been playing around with for school I have gotten very good results with a bunch of methods (Ridge, Lasso, ElasticNet, SVM, Bagging, Stacking and NN even) Now I’m having a ...
Oliver's user avatar
  • 123
1 vote
0 answers
21 views

MCMC algorithm -- understanding some paremeters

I am trying to understand an MCMC program. I manage to run it, but I am trying to understand the meaning of the some parameters in the analysis. The code is something like this ...
seVenVo1d's user avatar
  • 123
0 votes
1 answer
28 views

What is the most common practice of generating (X,Y) from an arbitrary CDF or PDF?

So I can generate X from arbitrary CDF F(x) by the procedure above. Can it be generalized to two variables? How, exactly? If not, what's the best way to generate <...
Paw in Data's user avatar
0 votes
1 answer
109 views

Pull Random Numbers from my Data (Python)

Let's imagine I have a series of numbers that represents cash flows into some account over the past 30 days in some time window. This data is non-normal but it does represent some distribution. I ...
Oliver Foster's user avatar
1 vote
0 answers
28 views

How can I build a simulation environment that assess different risk policies? [closed]

I work in fin-tech and would like to build some sort of simulation program to assess how different inputs will impact net revenue. For example, if we create new policies based on ML scores, how would ...
Kevin's user avatar
  • 11
0 votes
1 answer
265 views

Test data for statistical t-test in Python

first of all sorry if this is not the proper place to ask but i have been trying to create some dummy variables in order to run a students t-test as well as a welch t-test and then run a monte-carlo ...
Luca Marinescu's user avatar
2 votes
1 answer
531 views

Having a reward structure which gives high positive rewards compared to the negative rewards

I am training an RL agent using PPO algorithm for a control problem. The objective of the agent is to maintain temperature in a room. It is an episodic task with episode length of 9 hrs and step size(...
chink's user avatar
  • 555
0 votes
1 answer
189 views

How to handle differences between training and deploying of an RL agent

Hi I am training an RL agent for a control problem. The objective of the agent is to maintain temperature in a zone. It is an episodic task with episode length of 10 hrs and actions being taken every ...
chink's user avatar
  • 555
1 vote
1 answer
1k views

Different results every time I train a reinforcement learning agent

I am training an RL agent for a control problem using PPO algorithm. I am using stable-baselines library for it. The objective of an agent is to maintain a temperature of 24 deg in a zone and it ...
chink's user avatar
  • 555
3 votes
1 answer
5k views

Evaluating a trained Reinforcement Learning Agent?

I am new to reinforcement learning agent training. I have read about PPO algorithm and used stable baselines library to train an agent using PPO. So my question here is how do I evaluate a trained RL ...
chink's user avatar
  • 555
1 vote
0 answers
22 views

Best Method for Data Analysis on a 100 numerical IVs and 200 numerical DVs

I think I might need the help of this valuable community for a task. I have been given a dataset for 100 numerical independent variables (IVs) that predict output for 200 numerical values (from monte ...
UKadir's user avatar
  • 11
1 vote
1 answer
203 views

How to formulate reward of an rl agent with two objectives

I have started learning reinforcement learning and trying to apply it for my use case. I am developing an rl agent which can maintain temperature at a particular value, and minimize the energy ...
chink's user avatar
  • 555
2 votes
1 answer
316 views

MCMC for finding Bayesian Neural Network

Is someone familiar with such an approach: Suppose I want to build a bayesian neural network, with distributions over my parameters instead of point estimates. First I train my network with standard ...
Andreas Look's user avatar
5 votes
1 answer
283 views

Estimating the value of $\pi$ with a Monte Carlo dartboard: $<$ or $\leq$?

I'm trying to figure out which is the proper way to estimate $\pi$ using the Monte Carlo method randomly distributing points in a square that also contains an inscribed circle. Some sources say to ...
I_Don't_Code's user avatar
2 votes
1 answer
79 views

What is the intuition behind using Monte Carlo to solve a differential equation

Conceptually, I understand how a numerical method like Monte Carlo is used to solve a definite integral. Because integral of a function is the area bounded by the curve, the ratio of random points ...
Victor's user avatar
  • 611
1 vote
1 answer
152 views

Evaluating value functions in RL

I'm working my way through the book Reinforcement Learning by Richar S. Sutton and Andrew G. Barto and I am stuck on the following question. The value of a state depends on the the values of the ...
buydadip's user avatar
  • 179
24 votes
1 answer
19k views

What is Monte Carlo dropout?

I understand how to use MC dropout from this answer, but I don't understand how MC dropout works, what its purpose is, and how it differs from normal dropout.
Arka Mallick's user avatar
1 vote
1 answer
196 views

Why not use max(returns) instead of average(returns) in off-policy Monte Carlo control?

As I understand it, in reinforcement learning, off-policy Monte Carlo control is when the state-action value function $Q(s,a)$ is estimated as a weighted average of the observed returns. However, in ...
Meldgaard's user avatar
1 vote
1 answer
45 views

In first visit monte carlo are we assuming the environment is the same over episodes?

Watching this video (11:30) that presents the simplest algorithm for reinforcement learning: Monte Carlo Policy Evaluation, which says in general: The first time a sate is visited: increment N(s): N(...
Gulzar's user avatar
  • 196
1 vote
1 answer
387 views

How is Importance-Sampling Used in Off-Policy Monte Carlo Prediction?

In the section, "Off-Policy Prediction via Importance Sampling", found in the chapter on monte carlo methods of the second edition of Sutton and Barto's, "Reinforcement Learning: An Introduction", the ...
Jack's user avatar
  • 43
1 vote
0 answers
263 views

How to use pymc3 to sample the mean of a Pareto random variable?

I Have a variable which is Pareto-ly distributed 'x', with unknown alpha and m. I want to find out the distribution of its mean, so I use the following model: ...
Guy's user avatar
  • 11
-1 votes
1 answer
1k views

Parameter estimation for a model with multiple input parameters

So I've this model that simulates an ecosystem and outputs its attributes, like its chemistry, temperature etc. There are lots of input parameters to the model. My job is to write a program to figure ...
Alex's user avatar
  • 1
4 votes
1 answer
1k views

What visualization I should choose for Monte Carlo simulations in timeline events?

I wasn't sure if I should open this question in Cross Validated or here. But since the question belongs to a bigger project related with Data Science, I chose this one. I will present a simplified ...
Tasos's user avatar
  • 3,920