instruction
stringlengths
9
38.7k
I have a dataset containing 30 million rows and 500 columns. A simple 32x32 MLP appears to overfit the data, in that the training error goes down nicely but the test error goes up. Given that my training set is so large, I suspect the overfitting is occurring because my training examples are too similar to each other. ...
In Reinforcement learning, learning without the need for the transition probability matrix is 'model free learning'. Instead of having the transition probabilities, we learn the q-values (state/action functions), eventually getting the optimal strategy. Why there is no transition probability in Q-Learning (reinforceme...
I have fitted a likelihood function with a dbeta function in WinBUGs as follows # likelihood for(i in 1:n){ FC[i] ~ dbeta(a[TREATMENT[i]], b[TREATMENT[i]]) } FC is an R array with values between 1 and 0 (1 and 0 included). However, my model throws an error and does not work as it seems I cannot include 1s or ...
How would you argument or prove that this is a valid kernel: $$ K_a(x, t) = \prod_{i=1}^{n} (1 + x_it_i + (1-x_i)(1-t_i)). $$ I know that there are two conditions that a kernel must satisfy to be a valid kernel: symmetry and positive-semidefiniteness. Clearly the first condition is satisfied. But I am not sure how to p...
I have used matlab hmmviterbi function in my code for calculating the most probable state sequence from observation sequence. Is there any way to derive the probability (score) of this calculated state sequence from the hmmviterbi code available in matlab or any other algorithm? (Because i've used two hmms for each obs...
I'm conducting a study in which I'm comparing 15 radiologists evaluations on a dichotomous variable to a gold standard, in a sample with 58 patients. Obviously I've calculated overall accuracy, sensitivity and specificity for each rater, generating 15 2x2 tables. BUT HOW DO I REPORT THESES INDICES WITH ALL RATERS COMBI...
I have my data in CSV file for a survey response. Gender is a non ordered factor with two levels (Male and Female) and Rating is an ordinal factor (1-5) Gender Rating M 1 M 2 F 5 M 4 F 3 and so on I want to find out if there is a statistically significant difference in the ratings between Male...
I have 3 different confusion matrices, with data in them. Initially, I was just going to analyze the data using specificity and sensitivity, however I stumbled upon a ROC curve which has plots for FP and TP. Problem is, I don't really understand how to plot it with the data I have?
I am confused about the re-erstimation procedure for emissions in HMMs with Baum-Welch (still). I posted two questions concerning this general topic already and I thought I had cleared up my confusion, but not so. At least not in its entirety. The remaining issue I have is this: Say I have a HMM with some number of sta...
Sorry, I work a little isolated and I am seeking confirmation/disapproval for my approach. I hope that fits in here: First let me try to explain the study design: At location “a” I measured at randomly distributed points the physical condition and plant occurrence and then divided the habitat availability by their util...
I would like to classify user comments in reply to articles on news portals, especially in my country. Many comments are tweet-like in length but others can be quite long (a few hundred words). I tried an example in R (example analysed tweets) that uses Naive Bayes but am not satisfied with the results. I have turned t...
I am looking into C.Bishop's Pattern Recognition and Machine Learning chapter 10. In section 10.1.1 (p.465) he's proceeding through an analysis of the evidence lower bound which goes on like so: \begin{align} \mathcal{L}(q) & = \int\prod_{i}q_i\{\ln{p(X, Z)}-\sum_{i}\ln{q_i}\}dZ \\ & = \int q_j\,\{\int{\ln{p(X,Z)}\prod...
I convert data from long-form to wide-form for my thesis. It makes sense intuitively for me to do so as I can easily see the relationship between every variable. However I was wondering is there a research paper out there that supports such a conversion?
I have conducted an exploratory factor analysis using principal axis factoring, with direct oblimin rotation. The results indicate two factors, in that there are two factors with eigenvalues above 1, and when I ran a parallel analysis the eigenvalues for these two factors were greater in my data than in the parallel a...
I'm sorry this may be very simple and stupid but I'm new to R. I've tried everywhere on the net to find a solution but nothing. I have this data set: Table <- read.table(text=" age education wantsMore notUsing using <25 low yes 53 6 <25 low no 10 4 <25 high ...
In my data set, I've run a 2-way ANOVA with interaction. Found the interaction term to be non-significant. I re-ran the ANOVA without the interaction, and got the results that both my explanatory variables are significant. In essence, the resulting plot looks like this: What would be an efficient way to recapitulate t...
I want to run a logistic regression on greyhound races. For each race I have a dummy variable (y) that takes value one when the dog wins and zero otherwise. Unfortunately the number of hounds in each race can vary as some are withdrawn for whatever reason. Currently I pool the data by vertically concatenating to create...
we have that the probability of winning a game is b and if you win you keep playing until you loose. And it says that the average number of consecutives wins is $1/(1-b)$, suppose infinite periods. Well what the way i was trying to solve this is using a geometric sum, because the answer looks a little bit like a geome...
I have a prediction task, in which I use DecisionTreeRegressor of scikit-learn to predict a target label, which is about a certain user behaviour in a web platform (and it has a range of 0-4). The features are generated based on users' other activities in the web platform. I have separate training and test sets. The tr...
I'm working on something about Least square estimation for Weibull distribution. After reviewing this paper, I'm pretty confused by the derivation of least square method. In this paper, the author rank the data before calculating the least square of the "linear equation $(Y_i = aX_i+b)$" , why is that? My second quest...
Each distribution is represented with an array of arrays with PMF values. UPD 1: I have $P=(p_1, ... , p_n)$ where $P$ is a distribution of distributions and $p_i=(p_i^1, ..., p_i^m)$. My task is to compute $D_{KL}(P, Q)$. UPD 2: Each $p_i$ is PMF and $\sum_j p_i^j=1$ for each i.
I understand that the standard error of the regression estimate is used over the variance because it's in the same units as the predictor, but I'm wondering if there may be a more intuitive statistic. When I'm doing regression analysis, I don't really have a good sense of what an acceptable standard error is, other th...
In the documentation for the R compositions package, and in reference to ternary diagrams, it is stated that: However the ternary diagram can only display compositions of three parts. In case of more parts a scatter plot matrix like matrix of ternary diagrams is displayed which selects two components against som...
I am auditing insurance claims for fraud. In my random sample, all the claims are fraudulent. Could I say for the population that the estimated proportion of fraud is 1? I know how to compute a confidence interval when p=1. But what should be the point estimate?
If I have this Neural network (fully connected) where the inputs are values from [0-1] (actual floats, not binary classification). And the output is a float value from [0-1] (actual float, not binary classification). Does anyone know what I should set each neuron's activation function? Is there some conventions or rule...
I'm working on a robust bayesian regression with a multivariate response. Right now i'm trying to set prior distribution for degrees of freedom of multivariate t-distribution I read here https://github.com/stan-dev/stan/wiki/Prior-Choice-Recommendations that a choice would be a gamma( it's referred to univariate case) ...
It is said that if $X\sim\chi^2_{(k)}$, then $Y=\frac{X-k}{\sqrt{2k}}$ converges to $Y\sim N(0,1)$ when $k$ tends to $\infty$. Is there a commonly used rule of thumb for a $k$ to be "big enough" to consider $Y$ standard normal? I'm looking for something analogous to the degrees of freedom greater than 30 for Student's ...
I have a data set I suspect can be modeled by some variation of the Erlang distribution, with shape a constant $k=2$, but the rate/scale a (known but not constant) function of the independent variable (time, in my case). I'm looking for a probability density function and cumulative distribution function for this case,...
I have estimated a binary logit and calculated the odds ratios and their LR confidence intervals as follows: As you see some of these intervals are extremely wide. I guess it is due to insufficient variability in those variables (but I am not sure). How should I interpret these in a research paper? Should I just say (...
I am running a zero inflated negative binomial model (zinb) and want to interpret the main and interaction effects. I have the following: People decide whether to purchase a good during a given week and I have their final purchase quantity (Min qty = 0 units and Max qty = 6 units observed from the data). Assume I am l...
Usually, when finding a confidence region for a bivariate mean, because the confidence ellipse uses the covariance between the two different components, we get a smaller region than the region defined by the Bonferroni intervals for each components. To get the inverse situation i.e., Bonferroni Region inside the ellips...
I am running a random forest classifier using a very large matrix: there are 20,000 incidents and 45,000 features. All of the features are numerical and very sparse. The input matrix thus looks something like this: Feature_1 Feature_2 Feature_3 Feature_4 ...etc. Incident 1 5 0 ...
I have a maybe really silly question about t-test. I know that t-test is a test for comparing means between two sets of data. But I also was taught that when 2 SD cross over with each between the data (ie 2 (mean +/- 1 SD) ranges overlap), it means there is no statistical difference in between two groups. But my result...
I have two sample Models M1 and M2 and a time series with 1000 observations of x, B, C and D. M1 is a nested model of M2. M1: x = a + b1*B + b2*C M2: x = z + y1*B + y2*C + y2*D I regress now both models to get two different coefficients of determination R². M1: R²M1 = 0.68 M2: R²M2 = 0.70 I calculate the difference ...
So I have this special project that had me evaluating for the levels of heavy metals in the surface soil and subsoil at the dumpsite in my local community. I've done all the experimental work already, and I have raw data for the concentrations of the metals in the surface and subsoil (8 sites, 2 samples per site surfac...
I'm trying out Ridge and Lasso for feature selection step in machine learning. I have below training data: input_cap output_cap cpu disk load ips 2016-07-01 1.34 4.43 18.1 11 2.75 4863 2016-07-02 1.41 4.56 14.5 11 2.71 4616 2016-07-03 1.37 4.43 16.8...
..Hi everyone.. I'm trying to think of an approach to classify (or, perhaps initially, cluster) a group of non-connected line segments (as shown in the two images below) into one of three classes: rectangle, triangle, and circle. My initial solution was creating an R-tree structure and performing an analysis of the geo...
What is an appropriate test of $\boldsymbol{H_{0}:RR = 1; H_{\bf{A}}: RR \ne 1}$? Assume that the data are paired (e.g., from a crossover trial with two treatments, and a dichotomous response), so that: ------------------------------------------------------- | Treatment Group A | | Trea...
I have a data set where I want to see how well the line y=x describes the variance of y as opposed to a standard regression that tries to examine the best fit, as from a theoretical stand point the best case scenario is that y does equal x, and I want to demonstrate how close the data is to accomplishing that. Essentia...
I know that the frequentist interpretation of probability is associated with classical statistics and maximum likelihood estimation, and that a subjective interpretation of probability is considered integral to Bayesian statistics. But are these interpretations of probability essential to the statistical methods, or ar...
I have a dataset where there are 100 features for a each data point, along with a "year" class ranging from 1965 to 2010. I have 1000 data points for each "year" class. I want to cluster the data point based on the 100 features, not including the "year" associated with it, but I want the year class to act as rules for ...
So I am doing a project where I have to find a method that uses a lot of both categorical and numerical variables collected from surveys to predict a child's "discretized" GPA values. For example, the x-variables include yes/no/don't know responses to questions such as "I often get nervous about taking tests", and nume...
Suppose we have the following causal relationships (I put $=$ but they can be $\leftarrow$ for causality). $$\tag{1} Z=\alpha_0 + \alpha_1 c + \epsilon_z $$ $$\tag{2}X = \beta_0 + \beta_1 \sqrt[3]{Z} + \epsilon_x$$ $$\tag{3} Y = \gamma_0 + \gamma_1 X + c $$ with $\epsilon_z,\epsilon_x,c$ all independent of eachother an...
I have longitudinal data on several countries, looking at GDP and CO2 Emissions. In ggplot2, it is easy to make the software do something HLM-ish by plotting relationships separately for every country: ggplot(dat, aes(x=CO2.Emissions, y=GDP, color=as.factor(Country))) + geom_point(shape=20) + geom_smooth(meth...
I would like to calculate the following expectation: $$E \left[\sin(\pi U )\sum_{k=1}^\infty \frac {1}{(2k+U)(2k+1+U)}\right]$$ where $U$ is uniformly distributed on the interval $[0,1]$. I want to show that it is equal to: $ \int_{1}^{\infty}\frac{\sin(2\pi x)}{x}dx $
Given an i.i.d. sequence $(\theta_{n}^{i})_{n,i\in\mathbb{N}}$ with binomial distribution $\mathcal{B}_{3,\frac{1}{3}}$ we define the Markov Chain $$X_{n+1}:= \sum_{i=0}^{X_{n}}\theta_{n}^{i}\:\:\: \mbox{mod }5.$$ Question: Calculate the transition matrix. Motivation of the question: In stochastic processes it is very...
Let $X$, $Y$ be two independent random variables from $U(0,1)$. Then find $P[Y>(X-1/2)^2]$. I initially tried drawing the figure but that seemed complicated. I then took expectation on both sides and got $P[E(Y)>V(X)]$. Am I right?
I am continuing the prepare for an exam by reviewing handouts from an old statistics course I took. The handout came with a set of solutions prepared by the instructor, but I suspect that one of the answers is wrong. If the answer the instructor provided isn't wrong, then I must be missing something, so I'd like to a...
I'm trying to solve a problem for my data structures class and am having problem computing the expectation for this scenario. I have wrote the question to be as independed from CS as possible I have a two tables $t_1$, $t_2$ each of size $N/2$ cells. Suppose I have two truely random functions $h_1$ that maps keys to ra...
How one can prove that Objective Function of Maximum Margin Classifier(MMC) is Convex in LP or QP? I've searched through the internet where derivation of objective function is provided and it says we know that f is convex but how it is convex? like in this link (http://svr-www.eng.cam.ac.uk/~kkc21/thesis_main/node12.ht...
I have imbalanced dataset and I want to perform undersampling. I have 2000 instances out of which 150 are positive and 1850 are negative. I have performed undersampling i.e., I have randomly selected 150 -ve instances. Now, I have total 300 instances. After applying machine learning classifiers on these 300 instances...
I have this data set. I have 4 individuos, Y binary dependent variable. I want calculate (prediction) the probability of sale of the car d (?%), in the years 2001, 2002, 2003. The variables macroeconomics is for each city, but for some the values it is the same, I want than the model capture this relation and can pred...
I am trying to find the posterior mode of a log likelihood in order to implement maximum a posteriori. The parameter I am trying to estimate is actually a vector. I can find the first and second derivative analytically. Now when I come to implement the Newton-Raphson scheme, the Hessian is not positive definite, and th...
Running a linear mixed effects model in R (lme4) using "lmer" function. Missing values are coded as "NA". Missing values are from the DV and some predictor variables also. By default how are these missing data treated when I run the model?
I'm interpreting the coefficients of a regression with all categorical variables and all but one make sense, in that I was expecting the association/direction from my descriptive statistics. I know that the regression controls for other variables, but one coefficient makes no sense - in other words the opposite to what...
This might be a silly question at first nut nonetheless a valid one. Is the exponential distribution with parameter $\theta$ actually a subexponential distribution. For an exponential pdf $$ f_X(x) = \theta e^{-\theta x} $$ They key is to prove that $$ E\left[ e^{s\left( X-\mu \right)} \right] =\frac{\theta e^{-s/\the...
I'm reading Rasmussen's GPML text and I am having trouble understanding the likelihood function and the underlying function itself. For C classes, it first treats the latent function as $$f = (f^1_1, \dots, f_n^1, f^2_1, \dots, f_n^2, \dots, f_1^C, \dots, f_n^C)$$ prior as: $$f\tilde{} N(0,K)$$ Likelihood as: $$p(y_i...
I was learning about GAN's and how it can be used for creating images of cat, dog, mouse and bird. This is how I think in supervised learning system we train the features and labels to generate images. cat,dog,mouse, bird = 0,1,2,3 X Y 1 dog.jpg 3 bird.jpg 0 cat.jpg 0 cat1.jpg . . . . train(X,Y) after trainin...
I'm quite a newb at statistics and interpolation, and I cannot understand how to interpret the error estimation computed by Kriging. For example, I performed kriging on temperature values (Celsius degrees) and I plotted this heatmap with the error estimation results, which I understand is kriging variance (right?). Wh...
Here is an algorithm for clustering that calls Clara. I did not understand the final step. I mean step 3, 4. For i ¼ 1 to 5, repeat the following steps: Draw a sample of 40+2k objects randomly from the entire data set,2 and call Algorithm PAM to find k medoids of the sample. For each object Oj in the entire data set...
What is advice of when to use one-vs-all logit or multinomial logit regressions? Most importantly, which one has a higher prediction power? Can one test hypothesis and estimate confidence intervals in one-vs-all approach? I came from economics and I have just recently started to dive into Machine Learning. I noticed th...
Currently, I have a likelihood function in the following form: $$L(\lambda|\mathbf{x})=\prod_{i=1}^{n}(x_i+(-1)^{x_i}e^{-\lambda})$$ with $x_i$ taking on values of $0$ or $1$, $\lambda>0$. I have tried taking $log$ and differentiating the likelihood function, but have been unable of finding the maximum likelihood estim...
I have traffic data from cars on a roadside view for 3 weeks Each line of data sets consists of Day, Time, and Track number of cars for 3 weeks. I want to make a forecast for the 4th week using these data and using the ARIMA model Here is an example of my data Time Data 2008-05-19-00 110 2008-05-19-01 25 2...
I am working with deep learning algorithms like CNN and RNN.I always wonder what is the best way to input wave form type data in to the deep learning algo. I know there are methods like wavelet or mel coefficient. But those things are man made things so like SIFT features in image processing.I'v seen some people take s...
I was reading the following blog post : http://epchan.blogspot.in/2013/01/the-pseudo-science-of-hypothesis-testing.html Basically the author is discussing about using hypothesis testing to evaluate trading strategies, and writes: You know the drill: the researchers first come up with a supposedly excellent strategy. I...
Is there a way to perform cross-validation obeying the time ordering of data in a problem where we are learning over a rolling fit - e.g. when fitting a predictive model in the history of football matches - so as to not use future examples in the parameter selection part of the training?
From course notes, I see that when working with a quantitative variable, we can standardize the sample mean to have a normal distribution (as per the central limit theorem) as long as the sample size is "large". As a result, the distribution of the sample means is normally distribution (whether we are working with $\si...
what effect varying $\sigma_{f}^2$ and $l^2$ has on a Gaussian process model with the following kernel? $\sigma_{f}^2 exp(-\frac{1}{2}\sum_{d=1}^{D}\frac{(x_{d}^{(m)}-x_{d}^{(n)})^2}{l^2})$. I do not see the connection between the parameters and the results. Thank you very much.
Trying to interpret these graphs in order to understand if this model meets the assumptions for multiple linear regression. Any thoughts?
Let $$Y_n=e^{\frac{-1}{n}\sum_{i=1}^nX_i}$$ with $X_1,...,X_n$ being $n$ i.i.d. Poisson random variables. In order to find the distribution of $Y_n$ as $n\to\infty$, I first calculate $$P(Y_n\le y)=P(e^{\frac{-1}{n}\sum_{i=1}^nX_i}\le y)=P(\ln{y^{-n}}\le \sum_{i=1}^nX_i)$$ Since $\sum_{i=1}^nX_i$ is Poisson distributed...
In making a document classifier with scikit-learn, I could easily do so with a straightforward Naive Bayes (NB) classifier like MultinomialNB. However, I also have numeric features related to these documents, which might hold greater or equal importance to the text itself. Let's suppose that a Random Forest classifier ...
I'm wondering the role of a MCMC algorithm. Is it to marginalize the likelihood function and the prior in order to get the posterior distribution? $$ P(A \mid B) = \frac{P(B \mid A) \, P(A)}{P(B)} $$ Since usually, the ${P(B)} $ is difficult to estimate, is the algorithm replacing the marginal by providing random prop...
I have some data set and need to use a few classification methods to make prediction. I first need to pre-process the data set. France is administratively divided in regions (13), and regions are divided in departments (96). Then at a smaller level you have towns. My data set contains quite a few predictors, including ...
For Bayes' rule, $P(a|x)=\frac{P(x|a)P(a)}{P(x)}=\frac{P(x|a)P(a)}{P(x|a)P(a)+P(x|a^c)P(a^c)}$, if we have $P(x|a)$ and $P(a)$ are discrete (e.g. both equal to 0.5), and $P(x|a^c)$ is continuous (e.g uniform(0,1)), could I just set $P(x|a^c)=1$? If not, how could calculate $P(a|x)$?
Does it make sense to express a list of p-values as a ROC curve? Suppose we have $N$ independent null hypotheses tested, with $p_i $ the corresponding $p$-values. For convenience, we assume that the null hypotheses are ordered from smaller to larger $p_i $. Let us also define $\bar p_i = 1-p_{N-i}$. We can build a cla...
My task is 'unemployment forecasting'. I have data with monthly ammount of unemployed. First as I do was : simple exp smoothing, holt's method, Holt-Winters method, ARMA model. All this models take only 1 series and build prediction based only on historical data. Now I need to forecast unemployment using such data as ...
An easy example: I have 2 persons. I want to assign them randomized to one of two groups (1 and 2). But at the end the groups need to have the same size - which means 1 person per group. I don't know how to realize this concaptualy. In R I am using library(random) randomNumbers(n=2, min=1, max=2, col=1) This could be ...
I have a dataset with more 15 independent variables trying explain a binary outcome. The results seemed dubious and the confidence interval profiling failed by providing lower bounds of the confint larger than the upper bounds-- I found the variable creating this mess which is a four category variable. Furthermore, I u...
I'm doing a question on cox proportional hazard models that at the very last step leaps from hazards to probabilities, and I'm not sure how it does this. I've paraphrased it below to keep it simple, but I'm confident I've not changed any important details. The question is what what I'd consider a fairly standard cox pr...
I have done a clustering in R using the Mclustpackage with a data set with 17 attributes and 2000 observations. the Mclustpackage is using EM algorithm to do the clustering. Is there any good way to visualize my clustering? My first thought is PCA.
Let $X\sim\chi_m^2$ and $Y\sim\chi_n^2$ be two independent variables. How to calculate or estimate the expectation of $\sqrt{aX+bY}$, where $a,b>0$?
I am building a question answering system that given a legal document attempts to answer questions related to the document. For example a tenancy agreement is given to the system and the user asks questions about the agreement. I am splitting the legal document into small segments and try to find the most similar segme...
About 18 % of the patients in a study are females. Is that enough for us to use Gender as a factor? More generally, how does one decide whether there are enough observations such that the factor should be included? What if it was only 10 %? 5 ? 2?
I'm going through elementary literature on measure theory from Shreve (Vol II) and having a hard interpreting the meaning of $\mathbb{E}[X|\mathcal{F(t)}]$ where $X$ is a random variable and $\mathcal{F(t)}$ is the sigma-algebra at time $t$. Usually in non-measure theoretic definition of conditional probability $\mathb...
I came across a question like this and I try it to solve it by 2 different methods. However, these 2 methods don't yield the same answer. So, I'd like to ask you what am I missing. I'm clearly doing something wrong. First method This is equal to the probabilities of getting a sum of 0, 1, 2 and 3. Let P(1) = 0.48 and P...
Is it possible to estimate variance of $Y$ if we don't know PMF of $X$? More over does it exist? To make question clear, let's assume some array of time stamps differences $ts_{diff} = ts(n) - ts(n-1)$. we can estimate mean and variance of these differences. But now we want to estimate Y = 1/X - frequency and it's mean...
When creating a new, $j$th learner using AdaBoost, the model for defining the weight of an example is: $$w_{j}^i = e^{-y_ih_{j-1}^i}$$ These weights are created in order that the new learner will focus on previously misclassified examples. How does multiplying the actual and expected outputs substitute for a loss funct...
There is negative correlation between two variables that I am studying but spss does not show it as a significant correlation (p values are coming out to be greater than .2). So the question is How do i interpret this insignificant correlations?
I'm doing survival analysis using medical record, so the design is non-prospective. Is it alright to do so and is there any specifics I should concern? Suppose we are focusing on how long it takes for a new tumor to recur after surgery. According to the guideline, patients should come back for reexamination in every 3...
I want to see whether the number of animals in a paddock has any effect on distance walked per day by the animals. I have data on the distance an animal walks (per day) against the number of animals in a paddock. [The distances are not independent (i.e how far one animal walks significantly affects how far all the ot...
I am working hard on a problem of Boolean model. In a example of Boolean model, points are scattered in the plane according to a homogeneous Poisson process of intensity λ. On each of these points a disc of fixed radius r is placed. My question is: What is the probability if a new disc of radius rh is placed without a...
For simplicity I will only discuss binary classification. If $p_k(x) = P(X \mid Y = k)$ for $k = 0,1$, then Bayes classifier $h$ minimizes the risk $P(h(x) \neq Y)$. It is well known that $$h(x) = 1\{ \frac{p_1(x)}{p_0(x)} > \frac{1 - \pi_1}{\pi_1} \},$$ where $\pi_1 = p_0(x)$. Bayes classifier seems to naturally fit ...
How does one derive the Bayesian average (https://en.wikipedia.org/wiki/Bayesian_average). As I understand it, this should derivable from the prior probability distribution for $\bar{x}$ and the likelihood function of a sample given a particular $\bar{x}$. However, I'm not able to figure out what prior and likelihood l...
I have a relatively big (50000 rows) dataset with 165 columns. The response variable is integer varying in the interval (200-900). The predictors are mixed integers and categorical variables. I try to decide what is the best method to apply for prediction since I need very low absolute error. Also the method is necess...
I'm trying to understand what is the right way to create density functions for time variables (e.g., hour). When I'm building a density function for hour, I'm getting values which exceeds 0 and 24 (which has no meaning in my case, where I want to check the probabilty that new data point where "taken" from my distributi...
I have a difficulty grasping the intuitive meaning of drawing independent Random Variable out of a Probability Distribution. A probability distribution assigns probabilities to discrete outcomes or probability densities to continuous outcomes commonly represented by a Random Variable. Therefore it seems that when I ...
I wasn't able to find this question in SE, possibly as I am new to ML: When deciding on an activation function, why is RELU preferred over a function such as ln(1 + exp(x))? The former has zero sensitivity for negative values and so one might get a "dead" neuron. With ln(1 + exp(x)) at least one wouldn't step into a f...
In a two-way ANOVA, what exactly does a non-significant interaction mean? e.g. variables A and B both have significant main effects but there is no significant interaction effect. Does this mean that performance on variable A is not related to performance on variable B?
I have a data set with the variables: y,n,date,x1,x2,x3. I'm trying to predict y through x1,x2,x3 - categorical variables. I'm building a linear regression model in python. I'm interested in using weights: n - number of observation per row date - give more weight to more recent data (will use some power function here...
If we were performing a forecasting exercise and found predictability (or Stambaugh Bias), what are a few approaches we could take to checking the robustness of our findings?