instruction
stringlengths
9
38.7k
I'm getting a 100% accuracy for my decision tree. What am I doing wrong? This is my code: import pandas as pd import json import numpy as np import sklearn import matplotlib.pyplot as plt data = np.loadtxt("/Users/Nadjla/Downloads/allInteractionsnum.csv", delimiter=',') x = data[0:14] y = data[-1] from sklearn.cr...
I am measuring metal holes drilled with a spherical drill using point laser. Since this is a hole, only about quarter of the points are visible: The method used is linear regression with Huber's estimation. Radius seems to be very sensitive to the height of the spherical segment: Graph shows average radius [mm] dep...
In relation to the following figure Kline (2016) writes on p194: The numerals (1) in Figure 9.3(b) that appear next to paths from the factors to one of their indicators are scaling constants, or unit loading identification (ULI) constraints. The specifications that $A \rightarrow X_1 = 1.0$ and $B \rightarrow X...
I'm currently taking a statistical analysis and quality control class, and we are talking about 2 sample t-tests currently. I've been having issues since 1 sample z-tests on understanding what $\mu$ actually means or how to find it. Like in a t-test. Did the mean compaction value in 2014 meet the target compaction p...
I have a situation when I try to see if my data set ("sample") is a good representation of a larger data set ("population") that I have. In Stata, I use the cluster command on the both data sets trying to detect patterns that can be later compared for similarity in order to decide if the sample is indeed representative...
I want to implement an LSTM neural network to do forecasting in a multivariate time series setting and I am kind of lost when it comes to certain details regarding the structure of the network and the corresponding implementation in Python's Keras library. I have a $d$-dimensional time series $X_t = (X^1_t,...,X^d_t)$...
I have two groups: Students (1) who did and (2) who did not successfully complete an ENG-101 course within two years of taking an ENG-102 course. I would like to see if there is a difference in their success in ENG-102 (Success = A,B,C; Unsuccessful = D,F,W). Further, I would like to look at three groups: (A) Student...
When training a deep CNN on CIFAR-100, what are the factors that make the l2-loss increase instead of decrease during training? The regularization loss looks kind of funky like this, where there's decay in learning rate at step 40k: The training(dark blue) and test(light blue) - performances are: As you can see in th...
I'm new to canonical correlation analysis. I'm running a sparse canonical correlation analysis in R using the PMA package. My first question is why the correlation coefficients associated to the canonical dimensions Cor(Xu,Zv) do not strictly decrease. My second question is whether there is a way to select the most ...
Imagine I am working for a "fictional" company and they have given me a list of objectives to measure their managers' performance. An example of how they are measuring them is as follows: 2016 Profit: $100 2017 Profit Objective: $150 2017 Profit: $170 --------- Objective Success Rate: 100% The way they look at it, the...
I'm currently trying to model the number of deaths for each region and gender, for some years. See the data here. I've explored the data, and the distribution of the number of deaths is similar across years. The distribution between the number of deaths and gender and between the number of deaths and regions seem to va...
I have temporal twitter data, and I want to calculate propensity score for the treatment and control group. The problem is, the treatment happened at different time for different user, and I want to compare aggregated values for covariates. For example, for user a1, treatment occurred after six months of account creati...
What do you mean by a distribution is homoscedastic (i.e. $ σ(Y|X = x) = σ$) in the context of simple linear regression? Why do we need this assumption in simple linear regression? What will happen to the regression if a distribution is not homoscedastic?
I hope you can help me with a theoretical question about how to proceed in my analysis. I have come across many posts discussing differences between Type II and III SS Anovas, however, because I don't know which effects impact on my response variable, I am interested in finding out about interactions as well as 'single...
I'm wondering if columns in the hidden layers can be forced to be orthogonal in a simple MLP. A simple example : Let's say my input and output are : $X$ shape $(10,3)$ and $Y$ shape $(10,1)$. With two weight matrix : $W_1$ shape $(3,2)$ and $W_2$ shape $(2,1)$ Lets define $V$ as $V = XW_1$ shape $(10,2)$ Is there a...
Theory tells me that random variable $Z$ distributes with known mean $\mu$, over support $(1,\infty)$. Unfortunately, I cannot observe $Z$. However, I do observe $X$, which sample mean is $\bar u$, over support $(0,1)$. Importantly, theory tells me that when $X=0$, $Z=1$, and that when $X=1$, $Z=\infty$. I am looking f...
I've simulated three normal distributions with different means and standard deviations. Assume these are three groups of subjects. I wanted to see how a normal lm() would compare with a brm() regression. The model was Score ~ Group + (+1|Subject). I haven't added a random intercept by group on purpose. set.seed(2) df ...
As above, why does the sum of the product of the Z scores always equal n - 1 in a perfectly correlated scenario ??
In many books, articles and comments on this website I read that the variance of the autocorrelation of a white noise process is $\frac{1}{T}$ when T is sufficiently large. Often this characteristic is used to calculate the confidence bounds in an ACF plot, where the bounds are calculated by: $b = \pm 1.96 \frac{1}{\sq...
Imagine we have a categorical variable, A—for example, whether somebody owns a dog or not—and a quantitative variable, B—for example, how many days a person is sick in a given year. Assume that our measurements are valid and correct and the assumptions for a t-test are met. Imagine we have two studies: In the first st...
I have 2 model $M_1$ and $M_2$ which both have a gamma distribution and the same priors $H_0 : \quad x_i \sim M_1 \\ H_a: \quad x_i \sim M_2$ Both $M_1$ and $M_2$ have prior $\sim Ga(7,3000)$ but my posteriors are $M_1 \sim Ga(191,116665.4) \\ M_2 \sim Ga(192, 116188.9)$ I get the values of my posterior via simulated ...
I have a dataset with count variable of 50 observation and 260 independent variables. As the variance exceeds mean, I want to use Negative Binomial distribution. My objective is to build a model that can be used for future prediction. So, a model validation is required. Given that my p exceeds n, I need to use penalize...
I have estimated a DUEM model estimated as a RE with GLS of the forum Yit = a + BXit + Yit-1 +Ci + ui where u is an error and ci is unobserved heterogeneity, X is a vector of covariates. Under this model according to Wooldridge text Ci and Xit are allowed to be arbitrarily correlated. and uit to be correlated with futu...
Background: My son has been ill a few times this academic year and has missed some school. The authorities get involved when attendence is low, and they're basically suggesting he's malingering, which he's not. So one of the things they're implying is that he's been off a suspicious number of Fridays. I'd like to prod...
What is an asymptotics of the expectation of the order statistics of the standard normal distribution $$e(r:n) \approx \Phi^{-1}\Big(\frac{r-\alpha}{n-2\alpha+1}\Big)$$ as $n\rightarrow\infty$? By asymptotics, it is usually understood that the sought-after function is a "simpler" and more "elementary" function, usuall...
I will teach an online course on Intro Stats at an Economics Department of a non-flagship public university in the US. I want to cover descriptive stats, basic probability (with common discrete and continuous distributions), hypothesis testing, and possibly Anova. Most practical exercises will probably be done in Excel...
I was trying to understand the mathematical claim that: $$ \mathbb{1}\{ \hat y \neq y \} \leq \max_{j \in \{1,...,K \} } \left( \mathbb{1}\{ i \neq y\} + W^T_jx - W^T_y x \right) $$ I tried showing it was true but got stuck. The part I do understand is when $\hat y = y$. In that case its trivial to show the bound beca...
I am following Patrick Billingsley, Probability and measure (1995). He says that there exists a central limit theorem if the sequence is stationary $\alpha$-mixing with $\alpha_n = O(n^{-5})$. He goes on to saying that $\alpha_n = O(n^{-5})$ is stronger than necessary. $\rho$-mixing (asymptotic uncorrelated) is strong...
I have the lasso regression formula: $\left \| y-X\beta \right \|_2^2 st. \left \| \beta \right \|_1$ in a loop I am computing the value of $\beta$ until the algorithm stops. Sometimes the algorithm is not stopping because it is reaching a local minimum and is computing the same values of $\beta$. At that moment I wan...
In a random effects regression across 2 waves of panel data in Stata (or really any statistical program) like below: xtreg health_y age_y income_y, cluster(current_county_y1) re robust When respondents are in 1 but not both waves are these respondents included in the random effects regression? Or are they dropped? Do ...
I normally work with linear regression, but came across a need to use logistic regression. I started with glm(y ~ x1 + ..., data, family = binomial()). Almost none of my variables were showing large coefs, which is fine. Just for kicks I ran the same model, but excluded the intercept glm(y ~ x1 + ... - 1, data, family...
I'm a huge newbie when it comes to statistics and R. I'm trying to make sense of all of these functions as someone who hasn't taken statistics before. In R, from what I've understood, with dbinom, you enter the number of trials, the probability of success, and a number of successes n, all as arguments, and it returns ...
I have some rather basic questions that I suspect I know the answer to but would like to confirm. I have a simple experiment measuring the number of a certain insect growth stage in the proportional presence of a dietary treatment. I have modeled the data using a binomial glmm. I would now like to plot a probability cu...
I have a covariance matrix, S, which I use Cholesky decomposition to find A. It is stated that AA'=S, however, I am not recovering S when I do AA'. The example code in R is as follows. S <- matrix(c(1.091385, 1.949606, 1.949606, 4.520746), 2, 2) A <- chol(S) T <- t(A) R <- A %*% T As can be seen, S is as follows. 1.0...
I have data on market share. I would like to compare a firm's mean market share before and after an event. The data is quarterly and I have only been provided with 16 observations, 8 before the event and 8 after the event. The data looks to be non-normal (most likely due to small number of observations). The varianc...
I am trying to determine the appropriate effect size for a Wald's test. Does anyone know what effect size is typically reported for a Wald's test?
I have two samples both bigger than 99999 and I get the following result in Python: MannwhitneyuResult(statistic=2395063024.0, pvalue=2.3093898533164459e-128) U critical = 135807.32 If I understand it correctly, I cannot reject the null hypothesis that samples (distributions) are the same because U obtained > U critic...
I saw this thread (Effect of binary variables on binary outcomes) and I saw the user used Fisher Exact Test. My research is as follows, does a high quality photo lead to the sale of a product in an online webshop (X = quality of photo; 0 = bad, 1 = good; Y = sale; 0 = no, 1 = yes). I am not familiar with the Fisher Exa...
I have a set of data and I used binary logistic regression for finding the significant parameters as well as the coefficient of the parameters. I did the analysis for two stages. First, At the first stage around half of the dependent variables were 1 and the rest of them were 0. Second, For the other stage, the rest o...
I've collected some interesting data from a fairly complex Python program I've written and I'm curious to figure out the mathematics behind it; or, at least, the empirical mathematics. Analyzing the program itself is far beyond my skills, so I'm wondering if there's a specific technique that may be helpful for fitting...
I'm coming across a metrics for model evaluation which I had never seen before and I don't know how to further research (since I don't know its proper name). I'm using someone else's code, whose goal is to perform cross-validation to choose the best tree-based algorithm for a binary classification. It is probably worth...
This might be more appropriate for the Data Science stack exchange, but I'm fairly interested in the most 'scientific' or statistically sound approach. This is probably a fairly routine scenario in some areas, but I've never encountered it in my training. The Problem Say we're running a promotional campaign in an attem...
I'm looking to do a pre-posttest RCT comparing difference of means through a t-test, however I'm completely unsure how to calculate a required sample size using power, confidence level, and standardized effect size. From my understanding I need to use this formula: Then using this d value I can use a table to find the...
I was trying to understand where the loss function: $$ l (W,(x,y)) = \max_{j \in \{1 , ... , k \} } \{ \mathbb{1}\{ j \neq y \} + W^T_j x - W^T_y x \}$$ come from? The reason that I ask is that its easy to see that the usual hinge loss for 2 classes is a convex surrogate function for the indicator function. For example...
I have a time series data which increases by a certain value and then remains constant for certain period of time. The increase may be very high or a normal increase. I have to forecast the values for next two years. I have used ARIMA and Holt-Winters Method. Should i select the best fit model by minimum MASE value? Is...
Let $h$ a function and $X$ a random variable with CDF $F$. We say that $X$ is stable by $h$ if $h(X)$ follows $F$. I would like to know if there is a literature for those kind of random variables? (Note: Stable distributions are not closely related). For example, existence and unicity under some conditions. Examples: ...
I'd like to know whether the occurence of certain keywords in a long document is representative or is it limited to a few paragraphs and the primary topic of the document is something different. I think this can be verified by clustering the locations of the keyword matches in the document. We can use a word index for ...
I have a dataset where there exists 16 different classes. Each class has about 400 rows of 12 attributes(iowait, read_bytes, write_bytes, etc). Using tsfresh, I have generated about 45 features(iowait_mean, iowait_max, iowait_variance, etc) for each class, so I ended up with 16 rows where each row corresponds to a vec...
I applied PCA on MNIST data and found that the first 64 components are able to retain 86% of variance. Is there any problem while applying pca to a big dataset like MNIST. Because in most of the papers I have read to take the components which can explain upto 99% of variance. But it would be pointless to apply pca if ...
I am trying to model a user's behavior through an app and have come across the idea of Markov Chains to do the modeling. A similar problem in marketing seems to be the multi-channel attribution problem. What I don't quite understand is how to attribute the positive outcome's result to each node along the way since my p...
How do I Differentiate between Ordinal and Nominal variables using Python? The code needs to be dynamic and must be able to identify the difference for any data set that comes in. Is it possible to achieve this using python program? The output must be the type of the variable (Nominal or Ordinal).
I'm fitting a penalized logistic regression model using the rms package in R. When I print the result, the penalty in the model likelihood ratio test is different from the penalty I used to fit the model. Why is this? library(datasets) library(rms) fit = lrm(Species ~ Sepal.Width, data = iris, x=T, y=T) pen = pentrace(...
In the literature I read that the observation $\epsilon_n$ depends both on the hidden process $\Delta_n$ and the lagged observations $\epsilon_{n−1}$, it is called Markov Switching Model. So graphically I built up this representation which shows the relationship. However in the application some papers when they condit...
On page 3 of the GAN paper in the caption of Figure 1 there is this expression: $D^{*}(x) = \frac{p_{data}(x)}{p_{data}(x) + p_{g}(x)}$ where $p_{data}$ is the distribution of the training data and $p_{g}$ is the distribution of the generator. What is the difference between $p_{data}(x)$ and $p_{data}$ ? Does $D^{*...
In my dataset time is nested within person. I have done a multilevel analysis with time on the first level and subject on the second level. There is a significant fixed effect of time on the dependent variable. I interpret this as that there is a significant increase in Y over time. There is also a fixed effect of a se...
According to Wikipedia, the Kruskal-Wallis test statistic H is approximately Chi Square distributed under the null hypothesis. However I can’t find any resources explaining why that’s the case. I’m curious what the connection between the sum of squared normal distributions and H is.
I am performing a generalized least squares regression based on a design matrix $X$, a response vector $Y$ and a (non-diagonal) covariance matrix $C$, assuming Gaussian errors. I'm not sure what goodness-of-fit tests are applicable. As a first step I could go for a simple chi-squared approach, using the usual formula $...
Theorem: By the Strong Markov Property, for a stopping time T and a Markov chain at state $X_{T_{n}} = y$, the state $X_{T_{n}+k}$ for $k\geqslant 0$ is independent of $X_{T_{n}}$ or $X_{T_{n}+k}$ is equivalent to the Markov chain with initial state $y$. Clearly, the above theorem implies that any two or more states ...
I am performing a meta-analysis study of proportions in Stata using the metaprop command. My data includes 10 studies for which I have the variables: study, ntotal, nobserved, region, age. Using metaprop is not a problem, but I want to add two additional analyses: an analysis of the possible moderators region, mean a...
I am in the process of working with multitask gaussian processes (the ones introduced by Bonilla et al in this paper). I am now interested in applying the MGP to multiple multivariate time series. More concretely, I have multiple patients, each of them is "described" by a multivariate time series (for example the pat...
I currently have a quite ok model fitting my data with Regression Tree and a Random Forest. However, while trying to move on to a Neural Network (to evaluate other models), I have been struggling to put above average R2_score results. Even though my RF model could put good results. So far I: Tested several combination...
It's a Prove/Disprove question. Given $\mathrm{E}(Y|X)=X$ and $\mathrm{E}(X|Y)=Y$ and both $\mathrm{E}(X^2)$ and $\mathrm{E}(Y^2)$ are finite, then $$P(X=Y)=1$$ If we somehow get $\mathrm{Var}(X-Y)=0$, the above statement could be true. So, $\mathrm{Var}(X-Y)=\mathrm{Var}(X)+\mathrm{Var}(Y)-2\mathrm{Cov}(X,Y)$ $\qqua...
I have a data frame in python where I need to find all categorical variables. Checking the type of the column doesn't always work because int type can also be categorical. So I seek help in finding the right hypothesis test method to identify if a column is categorical or not. I was trying below chi-square test but I...
I am trying to estimate the causal effect of a treatment on an outcome. I would like to consider one control variable and a time dimension (week). The sample looks as follows: +------------+---------+---------+-----------+---------+---+ | individual | week | control | treatment | outcome | | +------------+--------...
To quote Kevin Murphy in his book "Machine Learning - A probabilistic perspective", correlation is "a very limited measure of dependence". He talks about this before he introduces the concept of mutual information. Why is the correlation coefficient "a limited measure of dependence"? Are there some assumptions associat...
I often read blogs from professors of statistics talking about how they prefer to teach models from a "distribution-centric" perspective rather than otherwise. However, I've never really been able to understand this point and it's differences from other methods of communicating models. Could anyone provide an explanat...
I have the following problem and some help would be wonderful. I have 50 origins for tree seeds. Each origin has several recorded climate variables like average temperature, precipitaion, wind etc. After a few years of experienting I have an averaged "bud break"-point in time like "day 109.87" for each origin group. No...
I have looked at the answers at: Difference between logit and probit models Interpretation of simple predictions to odds ratios in logistic regression In a linear regression, you regress $Y$ on $X$. For each subject, $i$, you have a $X_i$ and $Y_i$. Assuming I want to do the transformation in a logistic regression by...
I am testing the parallel lines assumption of an ordered probit model by running a likelihood-ratio test against a model where the coefficients can vary for each step of the ordinal response variable. As far as I understand the underlying concept, the ordered probit model can be considered as nested into the latter one...
I'm trying to create two matrices one that can be filled with 0's and 0.25's and another with 0's and 1's. vector <- c() for(i in 1:1000){ dummy_qt <- as.data.frame(matrix(sample(c(0, 0.25), 44, replace = TRUE), 4, 11)) colnames(dummy_qt) <- c(2005:2015) boot_qt <- dummy_qt %>% summarise_all(funs(sum)) %>% ...
Suppose we have two regression trees (tree A and tree B) that map input $x \in \mathbb{R}^d$ to output $\hat{y} \in \mathbb{R}$. Let $\hat{y} = f_A(x)$ for tree A and $f_B(x)$ for tree B. Each tree uses binary splits, with hyperplanes as the separating functions. Now, suppose we take a weighted sum of the tree outputs:...
My understanding of SVM is that (a) it is better to transform your target variable such that it is symmetrically distributed, and (b) that it is better to scale all variables to some range e.g. by subtracting mean and dividing by std dev, or by a linear scaling to between [0 .. 1]. This raises a few questions, when you...
I have huge multivariate time series to analyze (Terabytes of data) and I need fast, scalable algorithms for mainly two tasks: finding similar patterns among time series. For example, imagine I identify a certain pattern in a reference time series. I have a group of different time series, and I want to know in which o...
Satellite tagged eagles are going missing in Scotland, and the table above shows the tag fate by tag model. I am particularly interested in those tags that are "Stopped - no malfunction", because it is possible that these birds are also being killed and the bodies and tags are being disposed of. I have seen it stated...
I executed some experiments to find the influence of x on z. It shows that z is also correlated to y. To find the influence of x without ignoring y's influence, I tried to find a model z(x,y) with polynomial terms (max. 3rd power): I compared some fits and chose fit1: z = B0 + B1*x + B2*x² + B3*y + B4*y² This fit seem...
I'm calculating the average rating from a selection of people where they rate something out of 5 stars. The mean is $4.73$ with a standard deviation of $0.55$. The breakdown is roughly: 5* | 4* | 3* | 2* | 1* 76% | 20% | 3% | 0% | 1% Am I correct in saying that the margin of error for the mean is $0.55$? Ca...
I was hoping for some guidance on the appropriateness of my modeling approach to the following problem. Problem: I'd like to know whether the days receiving nutrition support (cumulative days on support; i.e., SuppSum) in Hospital bears any influence on the risk of developing an infection (Status). In addition, I wante...
I am looking at relevance of my dataset features using the random forest implementation from Scikit learn. I get some results which are making sense, but some others don't. Some features have very sparse data. Only a few examples have 1 (about 1%), 99% have 0 as value. These features are extremely relevant in the class...
I used NMDS axes of an ecological community as proxys for the community similarity in the different samples. I would like to "quantify" the importance of the different NMDS axis according to the stressreduction. Now my question is: If I calculate an NMDS with one dimension would the NMDS axis of that be the same as the...
I've recently asked this question (two days ago). I'm still a bit unsure on some parts and I need help clarifying some points. Previous question: Finding likelihood: Bayes Theorem I'm unsure on what exactly this part of the answer given by the user meant: P(X = 4|H0) = .5^4(1-.5)^0 I understand only a part of the answe...
In the recent years, the field of object detection has experienced a major breakthrough after the popularization of the Deep Learning paradigm. Approaches such as YOLO, SSD or FasterRCNN hold the state of the art in the general task of object detection [1]. However, in the specific application scenario where we are giv...
I have a question on a multiple choice that went something like the following: Sometimes we can reject null hypotheses even though they are true because by chance the sample data generates a relatively extreme test statistic. If we conduct 4 separate tests of statistical significance, then the probability of obt...
Will log transformation always mitigate heteroskedasticity? Because the textbook states that log transformation often reduces the heteroskedasticity. So, I want to know in which cases it won't lessen heteroskedasticity.
I am using logistic regression to produce the logit, etc. I am using daily stock market price data as a basis for the binary dependent variable. The 10-day future price difference is recorded in percentage terms and associated with the current date. So today the dependent variable value would be equal to the price t...
I have a conceptual question regarding the use of the rolling window approach for training and validating a recurrent neural network (LSTM or GRU) on time series data. I have daily time series data from 2013 to 2018 (~1800 time steps). So far I used the rolling window approach only for training the model. In particula...
The sample space of the experiment of throwing a green and a red dice has 36 elements. The event, say $A$, that the sum $x+y>8$ in $(x,y)$, where $x$ is an outcome of the green die and $y$ that of red die will occur has the probability: $$P(A)=\frac{10}{36}=\frac{5}{18}$$ And the probability of the event, say C, that ...
This is probably an elementary question. Let's see. Say variable $y_t$ depends on two other processes, as follows: $$y_t=x_tz_t$$ I observe these variables in period 0 and period 1. I want to evaluate how much did $x$ and $z$ contribute to the change in $y$. For any variable $w$, we can define: $$ \frac{w_1}{w_0} = 1+g...
So I was reading Christian P. Robert's The Bayesian Choice, going through the constellation of results related to complete class theorems, and I don't see why all of them are necessary. In particular, in Theorem 8.4.3, a result is proven that I think comes from Wald. By invoking the Riesz(-Markov-Kakutani) representati...
I would like to know if you can do better than Kaplan-Meier when you know the censor distribution. I searched google but I could not find anything. This problem seems to be quite natural/useful when you are doing hypothesis testing and your Null includes information about the censor distribution. Thanks
I was asked something like the following on a m/c. "A researcher comes to you and wants to know whether birds poop more on the roof of cars of a certain colour than others. The researcher gathered a data set on the number of cars observed of a certain colour (red, blue, black, white etc) and whether each car surveyed ...
I have several distributions that can be pretty skewed, like the example. I can use KS test to asses if they are different but I'm also interested in testing the single tails separately. What would be the best approach if I want to answer the question is red distribution different than black regarding negative values ...
Is there a known distribution, $f(x|\theta_1,\theta_2,\theta_3,\theta_4)$, with the following properties: $E(X^n)=\theta_n$ for $n \in \{1, 2, 3, 4\}$. If $\theta_3=0$ and $\theta_4=3\theta_2^2$, then $f$ is the normal density with mean $\theta_1$ and variance $\theta_2-\theta_1^2$. $f$ is a continuous function in eac...
I would be thankful for some advise on this issue: I want to test whether the skewness for two distributions is significantly different from each other. (I know that skewness is often not the best parameter to compare distributions but it is necessary in this case to go with skewness. The choice of another parameter is...
In the book Functional Data Analysis with R (Ramsay&Silverman) there is described the possibility to do the "positive smoothing" if it’s needed instead of the "normal smoothing". In the books Chapter 5.4.1 ist says: ...function w(t) is now the logarithm of the data-fitting function x(t) = exp[w(t)], and consequently i...
I have a query related to a transformation of variables question; the images of which I have attached here. I have solved the question almost, but there seems to be a problem with the distribution that I have derived in the last line of the solution. I would greatly appreciate any kind of help. Thanks in advance. N.B.:...
I want to obtain the probability estimates for an SVM to calculate its perplexity - what is the correct way to do this? 1) do k-fold cross-validation and average the probability estimates? 2) train on e.g. 80% of the data and get probability estimate from remaining 20% in a single instance? 3) train on all the data and...
I am taking on deep Q-learning and I am stuck at understanding one particular thing. I have googled multiple deep Q-learning examples, but literally everyone posting tutorials uses a cart-pole game to present the algorithm and this game does not encounter similar issues to my problem. The original Deepmind's Volodymyr ...
Let's say we have a regression problem in which we would like to predict some score $y_i$ for person $i$. As predictor data we have two variables: country $c_i$ and gender $g_i$. If we now assume that gender has three different classes (male, female, miscellaneous) but we only have historical score data for males and f...
We are given independent and identically distributed random variables $X,Y$ with probability density function $f(\cdot)$ that is symmetrical about $0$. We need to prove that $P(|X+Y|\leq 2|X|) > \dfrac{1}{2}$ Starting with $P(|X+Y|\leq 2|X|)=P((X+Y)^2\leq 4X^2)=P(-3X^2+Y^2+2XY\leq 0)$ Now, $-3X^2+Y^2+2XY=0$ represents ...
I am looking for ways how to approach this problem. let say we have person A that tells me how many boxes I will receive this week. but this person A cannot be trusted, he always lies and maybe miscount his number. but I can say for sure his number is always higher than the number of actual boxes I receive each week. ...