instruction stringlengths 9 38.7k |
|---|
I have a data set consisting of a competitive, semi-deterministic game.
It records all the moves and the final outcome.
I would like to derive a value for each move.
I already know it is wrong to use "probability of winning given a certain move".
That is because if this is a good move, then conditioning on this move al... |
Two crucial sources for time series analysis differ in a critical formula for equivalence between simple exponential smoothing (SES) and ARIMA(0, 1, 1).
From Hyndman's F:PP:
$\theta_1 = \alpha - 1$
and from R. Nau's Statistical Forecasting:
$\theta_1 = 1- \alpha$
Can someone help me understand the apparent discrepancy?... |
I'm trying to understand how the $p$-value defined as $p = P(D\ge d\ |\ H_0)$ where $D$ is a discrepancy statistic, $d$ is the observed discrepancy, and $H_0$ is the null hypothesis.
As I understand it, $D$ gives a measure of how "inconsistent" the observed data is with the null hypothesis. $D = 0$ corresponds for the ... |
I have been following multiple posts on this same topic and understand why I have NA's in my summary table. I am wondering what is an appropriate course of action in order to conduct a post hoc analysis on the data using R Studio.
Background:
I am conducting an experiment looking at how various factors affect insect ma... |
If the goal is anomaly detection on time series data, then over-fitting my forecast model on the data is just what I want. If the historical data is fit really well, then I should expect some error from this over-fit model to be large enough to signal an anomaly. Is this true? If not, why so?
|
Let $X_1, X_2$ be zero-mean, unit variance Random Variables with correlation coefficient $\rho$ then
$$
P(|X_1|\le\epsilon,|X_2|\le\epsilon) \ge 1-\epsilon^{-2}(1+\sqrt{1-\rho^2})
$$
I tried to used $P(|X_1|\le\epsilon,|X_2|\le\epsilon) = P(|X_1|\le\epsilon) + P(|X_2|\le\epsilon) - P((|X_1|\le\epsilon)\cup(|X_2|\le\ep... |
I have run a neural net model and the plot for acutals vs. predicted was as follows:
The residuals plot looks weird as well:
I was wondering why my predicted values were confined to a narrow range (4.75-7) instead of ranging from 2-9 as in actuals.
|
A situation I frequently encounter is that I have multiple time series of observations which I'd like to analyze using a linear regression model. The time series contain many very similar observations and some rather unusual phases, which are not to be considered as outliers but rather as providing particularly interes... |
I'm new with clustering. I have this 3 algorithms and I want to figure out which algorithm has the best algorithm for clustering. I posted an image below, to show my clusters. I am confused on how to distinguish which one has the best clustering. Is it DBSCAN because there's 8 clusters? Compared to k-means, which has 3... |
I've read in various places (see e.g. the comments on this question) that the concept of Type 1 error is incompatible with Bayesian paradigms for hypothesis testing.
Why is that exactly? I can't seem to put the different pieces and definitions of what "Bayesian hypothesis testing" actually means in order to see how Typ... |
Suppose that people, indexed by $j$, must choose between options $i$ according to
$$ max_i ~~(a_i +\epsilon_{ij})$$
Where $\epsilon_{ij}$ is an Extreme value Type I random variable (error term), and $a_i$ is a value between 0 and 1.
Now, define $S_i \in \{0,1\}$ as an indicator that option $i$ is chosen at least by o... |
First question on stackexchange =)
Originally a homework assignment, but my question is one of curiosity. I have one dependent variable (customer satisfaction in % 0->100), and several independent variables (such as age, income), some of which are categorical (for example, level of education). The assignment starts: ch... |
I have a linear model $Y = AX_1 + BX_2 + e$ where $e$ is noise, $Y$ is the dependent variable, $A$ & $B$ are coefficients, and $X_1$ & $X_2$ are variables.
Suppose that we know in the real world $A$ is the opposite sign of $B$ (say $A$ is negative and $B$ is positive) and $X_2$ has a larger impact on $Y$ than $X_1$. Al... |
Suppose I have some sample data $x_i$ then I can estimate the quantile $Q_p(x_i)$ using for example the quantile() function in R.
Now suppose I add some random noise to the data: $y_i=x_i+\epsilon_i$ (keeping the $x_i$ unchanged) where $\epsilon_i$ are i.i.d. and drawn from some distribution with zero mean.
Is there an... |
I have a dataset with approximately $70,000$ entries and $8$ features. Some of them are ordinal and the rest are nominal. The task is a binary classification task; however, the class I am interested in is represented only by $5\%$ in my dataset (highly imbalanced classes).
Some of the nominal features have many levels,... |
I am using an AR(p) model and an ARIMA model to produce a time series of temperatures (with StatsModels for Python). I use a rolling forecast (I mean: I train the model on a training set, make a prediction, then the training set is increased with the new (exact) observation taken from the test set, the model is retrain... |
I’ve got a dataset of medical diagnoses -for each encounter I have the list of conditions the patient has. I want to generate a list of diagnoses the patient DOESN’T have (or at least that aren’t listed) that are most likely, given the list they DO have. I think I know how to do this for pairwise analysis, but I want t... |
Let's say I have a time series data set consisting of features that may correlate to whether or not the price of a stock will go up or down. Say these data points are at 5 minute intervals. I build an LSTM that takes in two hours of these sequential data points (24 time steps) and then attempts to predict if the price ... |
I've been reading a bunch of posts that advise people to not include test data when preprocessing. So I've proceeded by first setting aside a test dataset to be used to assess how well my classifier at the final stage.
I have two sources of data: clinical data and gene expression data. Since the gene expression data h... |
This question is an attempt to re-frame another question on this forum that was of interest to a user dealing with two-dimensional image data from two scanners. If I have misunderstood the linked question then I still wish to pose this as an independent question.
Suppose you have two black-and-white scanners that can... |
Suppose I'm using dropout, and at test time I decide to do "weight scaling inference" (the method of predicting using the full network with weights multiplied by $p$, where $p$ is the probability of their origin node being included).
There's something that's always confused me about this. When a weight gets too large b... |
The problem in question is 4.
For the life of me I cannot figure out the solution, can someone explain how its done? From my attempts it appears that nothing is d-separated from A if evidence in B and E, but this is wrong.
|
287 participants are asked to rate a piece of music. Each participant rated 4 pieces of music on four categories using a four-point Likert scale
This resulted in each participant giving 16 answers
I want to compare the four categories based on which score highest, which lowest, etc.
Additionally, I want to compare male... |
I'm building a simulation that outputs data in distributions and I need a metric to know how similar they are to ground-truth data. Specifically, I output things like this, which is a distribution of overweight/obesity levels in the population:
That image is from national data and is therefore "the truth." My simulat... |
When calculating gradients for backpropagation, a surprising result is that the gradient of the weights in a ReLU-activated layer ends up being a diagonal matrix. I am seeking to understand how this makes sense intuitively, in terms of gradient descent.
Does this mean that weights in the non-diagonal positions don't ha... |
I have a very simple model built using Keras.
What strikes me as surprising is that the very same training configs converge (i.e. training loss goes down with every epoch) when the model uses the adagrad optimizer but it diverges when I use adadelta!
Could somebody help me understand what's going on here?
model = Seq... |
Theoretically if one variable (Black and White Imagery) does not significantly correlate with another variable (Perceived Usability), in practice (real world situation) does this mean that there is no relationship between the two variables; in other words, can I say that the Black and White Imagery is considered to be ... |
If you toss a fair coin four times, the probability of any specific outcome is the same. Consider the following example:
Event A: Heads, Tails, Heads, Tails
Event B: Heads, Heads, Heads, Heads
P(A) = P(B) = 0.5^4 = 6.25%
However, the chance of having any Tails in the sequence is : P(Any Tails) = 1 - P(B) = 1 - 0.0625 =... |
Say my output is continuous on the interval $[-1, 1]$. Is there a standard technique to deal with this? Do I just use logistic function, same as in logistic regression, but for actual regression rather than classification? What are other options, what is the standard approach?
|
I was reading this which tries to find $a_n$ and $b_n$ such that
$$F\left(a_n x+b_n\right)^n\rightarrow^{n\rightarrow\infty} G(x) = e^{-\exp(-x)},$$
where $F$ is the cdf of a standard normal.
The answer from Alecos states that
$$a_n = \frac 1{n\phi(b_n)},\;\;\; b_n = \Phi^{-1}(1-1/n)$$
I am trying to get a sense of ho... |
I am measuring a variable (continuous, unknown distribution) on a new assessment tool. There is no gold standard to compare to. I can take 2 measures per participant only. There is no intervention performed between measurements and so ideally, the same value would be returned. I can vary the number of participants. Wha... |
Does it mean given an input to the neural network an output is produced ? In the recently launched iPhone X there is a neural engine that can perform 600 billion operations in a sec. Are those operations like outputs at the nodes of a neural network ?
|
I'm new to data science and currently trying to learn and understand decision tree algorithm. I have a doubt, how the algoritham works when we have some continuous variables in a classification problem and categorical variables in regression problems. Usually algo works on the basis of gini index in classificaton probl... |
Given two continuous random variables $X$ and $Y$, the joint cumulative distribution function $F_{X,Y}$ is defined as:
$$F_{X,Y}(x,y)=\mathbb{P}(X\le x, Y\le y)=\displaystyle\int_{-\infty}^{x}\int_{-\infty}^{y} f_{X,Y}(t_1,t_2)\mathrm{d}t_1\mathrm{d}t_2,$$
where $f_{X,Y}$ is the joint probability density function of $X... |
I understand Gibbs sampling is a means of statistics inference, and it seems that sometimes certain variables can be integrated out in the sampling process, known as collapsed Gibbs sampling. I really want to know in what circumstances the collapsed Gibbs sampling can be applied, and which variables can be integrated o... |
I have a somewhat theoretical question regarding the "learning" in supervised regression problems.
From my understanding, the "learning" in most ML algorithms contains creating a hypothesis, that best fits the training data. This is done by adjusting the weights associated to the independent variables in such way, that... |
I am looking for a formal mathematical definition of a Regression Tree. My current idea would look like this:
"A Regression Tree is a function $T(X\in\mathbb{R}^n)$ that splits the feature space $\mathbb{R}^n$ into $K\in\mathbb{Z}^+$ mutually exclusive and exhaustive subsets $S_k,\quad S_i\cap S_j=\emptyset,\quad\cup_{... |
I set up a small project using a random forest to estimate the treatment effect between a control and action group and used IPTW the get propensity scores to make the two groups comparable. Using a random forest has the advantage that it gives us an estimated treatment effect per observation that might vary based on th... |
I'm new to neural networks and I think I now have a good grasp of the fundamentals, but I have a question relating to normalization and activation functions.
I see places that say to normalize between -1 and 1, and some that say between 0 and 1. I also see many people recommending using the ReLU activation function for... |
I have a sample of 200 observations and need to test $H_0: X \sim Geom(p)$ vs. $H_1: X \sim Pois(\lambda)$. Prior distributions are $U[0, 1]$ and $U[0, 20]$. I need to construct a bayes test to distinguish $H_0 $ from $H_1$ with different significance levels (0.05, 0.1, 0.01) using modeling.
My approach is to calculate... |
In the following paper:
Greedy Function Approximation: A Gradient Boosting Machine
https://statweb.stanford.edu/~jhf/ftp/trebst.pdf
on page 9 it tries to find the optimal step size $\gamma$ on equation (23) by approximating by a single Newton-Raphson step.
Why a single step and not more steps in order to get closer... |
I have a CNN model with user-defined loss function.
The model can not be optimized by SGD, but with AdaDelta, it converges to its theoretical value in less than 100 loops on MNIST, CIFAR, and SVHN datasets.
In some papers, it says it always takes several hundreds and thousands loop before convergence when training a m... |
I'm doing a project which involves multiple regression, and I'm aware (as far as I understand) that the residuals should be normally distributed with a constant variance. From my study, the residuals look as follows
However, the second plot (the QQ-plot) indicates that the residuals are not normally distributed. I've... |
Given a linear model
$$
y = \beta_0 + \beta_1x_1 + \beta_2x_2+\beta_3x_3 + \beta_4x_4
$$
we can perform an $F$-test for the null hypothesis
$$
H_0: \beta_1 = \beta_2 = \beta_3 = \beta_4 = 0
$$
However, what test is appropriate for a subset of these coefficients being zero in the same model?
$$
H_0': \beta_1 = \beta_4 =... |
I am new in the machine learning world and currently I am working on Computer Vision project. I am confused about HoG feature vector. In my understanding, the feature vector should contain magnitude and orientation of gradients. The gradient is a vector of partial derivations $v = \{ \frac{\partial F}{\partial x}, \fra... |
I read in this course material on b-splines that:
number of b-splines = number of knots - degree of b-splines - 1
But when I run bs(speed, knots=c(14, 20), degree=2) in R, 4 b-splines are created. According to the above formula, there should be -1 b-splines, which obviously makes no sense. What am I misunderstanding?... |
For zero-mean RV $X$ with finite fourth moment, prove that
$$
P(X>0)\ge \frac{\mathbb{E}(X^2)^2}{4\mathbb{E}(X^4)}
$$
I tried Chebyshev with adding $t$ to both sides, but I could not get fourth moment.
|
I am trying to model credit risk for retail loans, with my dependent variable being a default flag. I have 15 independent factors, which I need to cut down, using principal component analysis. While I have conducted PCA, I am not really sure as to how do I identify the final variables based on the principal factors gen... |
Background
Consider a channel $\Gamma$ with input $\mathcal A$ and output $\mathcal B$ (I'm following the notation in Jones and Jones).
We define the input and output entropies as
$$H(\mathcal A)=\sum_i p_i \log\frac{1}{p_i}, \qquad
H(\mathcal B)=\sum_i q_j \log\frac{1}{q_j}.
$$
One can then define the conditional en... |
I am calculating the "substantive significance" of my most important independent variable in my logistic regression. Using a simulation to assess the strength of my independent variable for my dependent variable, I follow the process of seeing how a one standard deviation change in my independent variable changes the p... |
I've been recently working with 2x2 contingency tables, where majority of researchers in my field use FET to assess significance. I saw, that in R, one can also use the monte carlo variation of this test.
I can't seem to understand what is being sampled in that scenario, or when is this applicable. To employ FET, one ... |
Suppose I have three random variables $X_1$, $X_2$, and $X_3$ that are i.i.d $N(0,1)$ distributed. The chance that $X_3$ is larger than $X_2$, given that $X_3$ is also larger than $X_1$ should equal $\frac{2}{3}$ in theory. However, when trying to calculate this conditional probability, I always end up with an probabil... |
The following describes summary statistics for performance in examination
of a random sample of 50 students from a population of 250
students of a certain school.
$$
\begin{array}{c|lcr}
& \text{Passed in English} & \text{Failed in English} & \\
\hline
\text{Passed in Maths} & 23 & 17 \\
\text{Failed in Maths} & 3 ... |
I have a question related to standardization of binary features within a regularized logistic regression. Suppose that you have a model where all the features are binary (the result of applying the hashing trick) so, it's not necessary to apply it.
The problem comes when I try to train the model using LBFGS, why does t... |
I am running a simple one-way ANOVA of a continuous dependent variable and my two-level categorical independent variable. n value = 408; 198 in my control condition and 210 in my experimental condition (the two-level categorical variable). I've run some diagnostics on the model outcome and the Q-Q plot is looking ver... |
I'm getting very different results when looking at the slopes from standard linear regressions and a linear mixed model and it would be great to see if I'm going wrong somewhere! I have a set of measures over time in different locations. I first ran standard linear regressions separately for each location, lm(y ~ year)... |
Let $X_1,...,X_n$ be independent and identically distributed random variables with commom cdf F. Let $X_{(i)}$ be the ith order statistics of $X_i^,s$.Then prove that for $j>i, \{X_{(j)}|X_{(1)}=x_1,X_{(2)}=x_2,...,X_{(i)}=x_i\}$ and $\{X_{(j)}|X_{(i)}=x_i\}$ have same distibution. Anybody has any idea how to find the ... |
Suppose $X \sim U(a,b)$. Find the mean and variance of $X$.
I tried to solve the exercise by computing the moment generating function and then substitute 0 to the ts but it doesn't work. How should I solve it?
Edit:
This is what I've done so far:
$m'_x(t)$ = $\frac{be^{tb} - ae^{ta} - (b-a)(e^{tb} - e^{ta})}{(t(b-a... |
I have a dataset reporting a number of incidents for a given population, such as:
Country Nb incidents Population Rate
A 1 30 3.33%
B 71 15000 0.47%
C 4 2000 0.20%
D 1 600 0.17%
E 19 ... |
In meta-analyses, funnel-plot asymmetry tests are usually based on the association between effect size and its standard error (or variance, that in case of rank-tests are the same) or, alternatively, sample size (that is strongly associated with SE but prevents the problem of the association between the estimates of ef... |
I want to know if is it possible to build a neural network with inputs with different units.
For example, can I build a neural network using as inputs temperatures and percentage of a chemical product?
If not, is it possible to split a neural network into different neural networks and combine the results or something l... |
Currently, I need to work on a binary classification project (e-commerce), where the buyer class (class 1) is a minority class and is the class of interest. Building a classification model has two types of error;
predicting as a non-buyer a buyer
predicting as a buyer a non-buyer.
For the minority class class 1:
FP ... |
I think this is an "old" question about cross validation. I benefit from reading the post and the thread from How do you use test data set after Cross-validation, What is the difference between test set and validation set?, and Why only three partitions? (training, validation, test). But I still have the following ques... |
For many people I know, they do not think sampling from a given distribution is a hard problem in general. For example, many software provide functions do to sample from normal distribution or uniform distribution.
How can I teach to other person that, in general, sampling is hard (in terms of time complexity), which i... |
I have a survey with 129 respondents, no missing data and I have 3 independent variables (Communication, legitimacy and rewards system) and 1 dependent variable (Organization breakdown)
Communication and legitimacy were measured in a 5 point-Likert scale. Reward system was measured with binary data and Organization bre... |
In a permutation test I calculate all of the permutations that could have given rise to an effect assuming exchangeability. In the case of a two-tailed test it makes sense to check the proportion of all of the effects from the permutations that are greater than the original effect and less than negative the original ef... |
I have a factor with eight levels but have only have five comparisons I want to make. I create a matrix with all of the relevant contrasts, however, I need to invert this matrix prior to passing it to the contrasts() function in order to generate correct estimates. Given that I need a square matrix, is it possible to a... |
I run a poisson regression by hand and now want to investigate plots whether overdispersion might be a problem or not. What should I plot against each other?
|
I was wondering if anyone had any advice on comparing two groups where the variance in once group is high and the variance in the other group is low.
Specifically, I am attempting differential gene expression analysis using EdgeR. I have been using the glmLRT function however while playing with other functions I disco... |
Suppose we have many agents $j\in \{1,..,J\}$ choosing over options $i$ to maximize their outcome of the form
$$ max_i ~~Y_{ij} = \beta x_i + u_{ij} $$
where $u_{ij}$ is an error term.
The options, however, are exclusionary (each one can only be taken by one agent). Is there a way to think about this problem, particul... |
The 2-by-2 contingency table test provides an alternate hypothesis testing approach to the $z$ test for proportion difference. Conveniently enough, a 2-by-k contingency table test provides an omnibus test for proportion difference, akin to the one-way ANOVA's test for mean difference:
One-way ANOVA $H_{0}: \mu_{1} = \m... |
New to the concept of sufficient statistics. Does it follow, in general, from the factorization theorem that any injective statistic is necessarily a sufficient statistic? I cannot find anything citing/stating this (probably obvious) result, and so I don't trust myself...
|
I was wondering why I get a different kind of regression equation when I do the same data in a different way(create DOE in the minitab vs type the data myself ).
For example, when I do the job as the picture below:
I can get the regression equation.
However, If I create a new factorial design as the picture below,
I g... |
I am watching the online lectures of Machine Learning by Hastie and Tibshirani, which are quite good. But they discussed $k$-fold cross-validation and there is something confusing me. As they describe it, the analyst will divide the dataset into $k$ equal partitions and then use $k-1$ partitions to train the model. Onc... |
For the data (0,0), (1,1), (2,2), (3,3), (4,4) and (5,c), where c can vary, it is clear that the value of Pearson's r in a simple linear regression will be 1 if and only if c = 5.
There is some interval of c values such that 0.9 < r < 1. My intuition was that this interval should be symmetric about c = 5, but this is n... |
When information about the state is not fully known, POMDPs are used for obtaining policies. Are these policies optimal ?
|
In «New Introduction to Multiple Time Series», page 90, we have the following formulas for the ML estimators of a stable Gaussian VAR$(p)$ process:
where $\tilde \alpha = vec(\tilde A_1,...,\tilde A_p)$.
And here is exactly where my doubt resides. If for $\tilde \alpha$ estimator, I need $\tilde \mu$ estimator, but th... |
I have a sample of n=77 change over time scores (T2-T1). In a lot of cases a score of 0 (no change over time) is modal, at times 33% of the sample. I am wondering if this impacts the assumption of normality at all, due to the high frequency, compared to other scores. I should note that when I make the bins smaller, the... |
I am asked to compute the MLE of the parameter p of the geometric distribution and then apply it to some given data. It is easy to find the MLE:
But how do I apply it to these data:
+-------------------------------+
| Count 1 2 3 4 5 ≥6 |
+-------------------------------+
| Freq 902 403 106 38 16 4 ... |
I just saw someone compute a p-value directly for a contingency table. Let's assume we have the observations $a$ and $\bar{a}$, and $b$ and $\bar{b}$. Obviously, $N = a + \bar{a} + b + \bar{b}$. The question was if there is a significant difference between $a$ and $b$.
The equation they used is (as far as I can tell)
... |
I have a bunch of text documents of varying lengths (100k words to just thousands). I want to compare similarities of these vectors, specifically, cosine similarities.
While I understand that cosine similarity, unlike euclidean distances, for example, reduce the effects of the initial document length, the similarity me... |
Assume $m$ independent binary classifiers with probability $p$ to be correct $p>0.5$. Show that the probability of a voting, e.g. decision is made by the majority of classifiers is correct with probability $q>p$.
I think this problem as equivalent to showing that the Binomial cumulative distribution $\text{CDF}(k,n,p)$... |
So this is more of a theoretical question, no dataset or code that I can share. It just came up in a discussion and I was not sure of the answer.
Let's say I have 2 GBM models, model A and B, trained on the same training set, predicting some 0/1 dependent variable. And let's say we have a test set in which we can asses... |
I'm reading an article in machine learning and healthcare. This author has a total of 1500 patients, but used only 36 patients for test. He did use 5-fold cross validation for classification using KNN and SVM. I think the test set is too low. Or is it okay to have such low test set - only 2.5%?
|
I am not very familiar with path analysis, but was wondering why you would select this analysis to assess the relationships among variables rather than just fitting a generalized linear (or non-linear) model with a selection criteria?
|
Consider the following hidden markov model:
$X_t =F X_{t-1} + e_t$; $Z_t = H X_t + v_t$; $X_t \in \mathbb{R}^n, Z_t \in \mathbb{R}^m, e_t \sim N(0,Q), v_t \sim N(0,R)$.
Suppose that the process $X_t$ has unit roots. How does the presence of unit roots in the true Data-Generating Process affects evaluation of likeliho... |
I'm currently reading Gaussian processes for machine learning and I don't understand something (or need an intuitive explaination) in the following paragraph:
To make the above notation clearer, from pp. 8-9 of that book, the function we are predicting is the dependent variable $\mathrm{y_*} = f^*(\boldsymbol{\mathrm{... |
I have the following transition matrix for my Markov Chain:
$$
P= \begin{pmatrix}
1/2 & 1/2 & 0&0&0& \cdots \\
2/3 & 0 & 1/3&0&0&\cdots \\
3/4 & 0& 0&1/4&0&\cdots \\
4/5 & 0&0&0&1/5&\cdots\\
5/6&0&0&0&0&\cdots\\
\vdots&\vdots&\vdots&\vdots&\vdots&\ddots
\end{pmatrix}
$$
defined by
$$ P_{ij} =
\begin{c... |
I am looking to measure the contribution of variables in an OLS model. I have been using the "relimp" package to measure it. However, some of the variables in the model are logged, while some are not. Does anyone have information on how to specify which variables are logged to get the exact contribution of the variable... |
I am conducting a difference in difference analysis for the changes in wages in a treatment and control group before and after a policy change (treatment group = class of workers impacted by a labor law change, control = workers in a similar field who were not).
I am using Stata and have the following variables:
aidet... |
Suppose we observe panel data
$$y_{it} = \alpha_i + \beta_i\,t + \epsilon_{it}$$
where $i$ indexes organizations, $t$ is time, and $\epsilon_{it}$ is i.i.d noise. The terms $\alpha_i$ and $\beta_i$ are organization-specific constants and organization-specific time trends, respectively.
A simple approach to estimating ... |
For the following randomly generated data with 1 feature, I plot the learning curves.
Data generation
m = 500
X = 6 * np.random.rand(m, 1) -3
# y = f(x) + gaussian noise
y = 0.5 * (X**2) + X + 2 + np.random.randn(m, 1)
function to plot learning curves
from sklearn.metrics import mean_squared_error
from sklearn.model_s... |
In its most basic form, given a finite state space, transition probabilities, actions and a reward function, we can use value iteration or policy iteration to find the optimal policy. For continuous state space we can use discretization.
How are the cases with continuous time handled ? For eg. in the case of a continuo... |
I am experimenting with two shooting formats in basketball practice with our team. One format is competitive shooting, and the other one is non-competitive shooting (all same shots, except the motivations are different). I have the following statistics:
Makes Takes Average 95%-Co... |
This is more of a general question and not ml-algorithm specific, are there any algorithms/tools/papers on the topic of 'selecting' training-data-entries?
Often you will have lack of training data and so it is advisable to use all of it or even try to find more data.
It seems that many people focus and developed many m... |
I understand that using $R^2$ in time series models may not be the best as $R^2$ is non-decreasing.
I also read this post: What is the problem with using R-squared in time series models? on the problems with $R^2$
However, is there a mathematical way of proving why $R^2$ may not be the most useful in time series data?... |
I'm looking for the time from the first event to the second event in one year from the first event.
If the individual has the second event after one year from the first event or didn't have the second event then the individual will be censored. So, each individual will have a different end study date.
Does it correct t... |
If I generate 100 random integer, each sampled from 1 to 100 with equal probability, how many unique numbers do I expect to get?
I simulated on Python, run 1E6 experiments and it seems that they result is around 63.39.
I just want an analytical solution to this problem. Thanks
|
is possible to have a deterministic trend and no stochastic trend? With the dickey fuller test i got a significative p value so it doesn´t have a stochastic trend but i found a deterministic trend. Then how is possible for a time series to be stable with a deterministic trend.
Thank you.
|
I am a teacher working on a simple research with the aim of studying whether the set of lesson designs I created can improve student performance. I have two groups with 15 students each. I divided them into the two groups making sure that each group has the same number of low, average, and high performing students. I h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.