instruction stringlengths 9 38.7k |
|---|
I have been suggested to train my model with a single labeled internet traffic and then test it with both traffic type I.e., Nirmal and Ddos traffic.
Is it possible to train the model with just one type of data. Data is labelled as Ddos and Normal already..
|
I am trying to understand the following formula for the standard error of the population mean as estimated through stratified sampling. On the CRAN site, the formula given is $$
S_{\bar{x}_{\textit{str}}} = \sqrt{
\sum_h
\left(1 - \frac{n_h}{N_h}\right)
\left( \frac{N_h}{N} \right)^2
\left( \frac{S_h^2}{n_h} \right)
}
... |
I am working on a multiclassification problem using time series data. I am using a hybrid model (such as LSTM, CNN, attention, etc.). I tried two optimizers, ADAM with 0.001 learning rate and SGD with 0.01. The following figures illustrate the trend in training and validation performance:
SGD with 0.01 Learning Rate
A... |
I want to modify Yolov5 and see how it performs. Here's the yaml file https://github.com/ultralytics/yolov5/blob/master/models/yolov5s.yaml
How do the make the changes in the yaml file if I want to introduce some transformers or some other layers of CBAM and so on. I saw some papers were changing the model. But how do ... |
Suppose I have the following dataset that contains measurements on different patients (each unique ID is a unique patient) - "x" variables represent covariates and "y" variables represent outcomes:
id x_1 x_2 x_3 x_4 x_5 y_1 y_2 y_3 y_4 y_5 y_6 ... |
My understanding is that unsupervised methods like PCA, autoencoders and K-means shape a data space such that the modified representation of the data either nicely separates different families of data points, or allows us to represent the data with using fewer dimensions.
My understanding is also closely tied to the vi... |
I gather RNA-seq transcriptomic data from multiple cancer datasets. The datasets are about a treatment of cancer, we check Response vs NoResponse samples.
The RNA-seq data I gather is before the patients get the treatment, and I have the labels if they responded or not when they got it.
After normalizing and everything... |
I have this question below , and I am unable to understand what is internal consistency, can anyone please tell the concept , I have read its wiki page but I couldn't understand how to solve a numerical using that theory , also I couldn't find anything on this platform about this concept .
Examine , after deducing ne... |
I think what I need may be called reverse regression. Usually, linear regression is to lm(y~x1+..x2) so that to find the estimated coefficients of each variable. Then we can write the formula which is y = constant + coef1 * x1 +coef2*x2 +...+coefn*xn. But I think the reverse way is that we modify the some values of coe... |
My supervisor told me that to carry out a t-test on two different models to see which one is statistically better I needed to carry out a normality test (or just find if the data is normally distributed by graphical means) on the difference between the two data sets.
There are two data sets, Model A and Model B which c... |
I have four regressions I performed on four disjoint sets of my data (for background on why I did this, see this question). Happily, they all look quite similar. I'm happy to put all sets of regression coefficients in a table, but I would also like to present one composite analysis with one graph and one set of confi... |
The parameters $\phi_{1}, \phi_{2}, \ldots, \phi_{p}$ of an AR(p) process
$$ z_{t} = \phi_{1} z_{t-1} + \cdots + \phi_{p} z_{t-p} + a_{t} $$
or
$$ (1-\phi_{1}B-\cdots-B^{p}) z_{t} = \phi(B) z_{t} = a_{t} $$
whre $B$ is the back shift operator. This general AR(p) process can be written as
$$ z_{t} = \phi^{-1}(B) a_{t... |
If we are have calculated multiple P values from independent tests, we can correct for the False Discovery Rate by using:
Ps <- c(0.04,0.02,0.8,0.9,0.004)
stats::p.adjust(Ps, method = "BH", n = length(Ps))
Tied p-values are adjusted in the same way:
Ps <- rep(c(0.0001,0.02,0.8,0.9,0.004), 2)
stats::p.adjust(Ps, method... |
This is related to the post How much do we know about p-hacking "in the wild"?. The post does not clearly delineate the boundary between forking or not forking to me.
Suppose I have a count model with some predetermined covariates. Assume there is a bunch of zeroes in count as well but I do not know whether I should us... |
I'm working on a binary classification model over the RAVDESS dataset with a CNN model.
These are the performances on the train and validation set
and these are the performance on the test set
for the unbalanced class distribution, the metrics that I need to check are recall, fscore, and precision. This is the class ... |
Problem: Impact of weather severity index on # of days delayed for a shipment sample.
X, weather severity index = 1-10, 10 being the most severe (e.g. Hurricane)
y, # of days delayed = (Actual delivery days) - (Expected delivery days)
Roughly 5% of the sample is delayed (actual > expected), so 95% is on-time. However, ... |
I'm trying to augment the data of the RAVDESS dataset. I still performed many techniques over the data such as:
pitch tuning
stretching
shifting
noise adding
do you know any other way to augment the dataset? I've got almost 8000 samples at the moment.
|
For a sports league, the objective is to pick games that end in a tie. The bettor picks 8 games from a list of 45 or more. For each game, the bettor gets 3 points if there is a tie, 2 points if the visiting team wins, and 1.5 points if the home team wins. The set of chosen 8 games with the highest point total wins. In ... |
I'm using Cox survival analysis to find predictors of mortality in a health dataset.
Although Cox assumes proportional hazards of the variables, my reading tells me that "slight violations" of this assumption are not a big deal.
I would like to know what qualifies as "slight" in this case.
It seems that log-log plots... |
$x$ is a $n\times 1$ random vector,$A$ is a $m\times n$ matrix. Given that $x$'s linear transform $z = Ax$ follows a multivariate normal distribution:
$$
z = Ax \sim N(\mu_z,\Sigma_z)
$$
The question is, what is the distribution of $x$?
Is it also multivariate normal? If yes, what are the corresponding mean and covaria... |
I am studying the link between a linguistic feature (the specifics doesn't really matter but for any given language there are two options, the language either has the feature or it doesn't) and gender disparity in a given country. I am planning to only include countries where a significant portion of the population (sa... |
The Exploratory Factor Analysis has the following mathematical formulation as in the screenshot from wikipedia (https://en.wikipedia.org/wiki/Factor_analysis):
That means the factors in F are centered to zero and the mean values of the observations are in X.
For my analysis, I would like to compare the resulting facto... |
I recently came across the concept of Differential Privacy in Machine Learning / Deep Learning. As far as I understand, usually, noise is added to gradients during the training epochs (also called Stochastic Gradient Descent Differential Privacy,SGD-DP).
Assume that we have a standard classification task. What is the i... |
I'm looking for resources on lasso regression at the undergraduate mathematics level. All I can find is a lot of complex texts on variable selection, concentration inequalities, etc. I would like to understand more about how the lasso selects variables and works. I would also like to learn more about when the lasso sho... |
I am using the random forest for classifing if it will rain (1) or not (0) in my daily rain dataset with a small quantity of data (8103 tuples). Currently running a walking foward evaluation looking at the recall metric and getting a mean of 83.
I'm using a multivariate approach with the following columns:
I know the ... |
I hope I can clearly articulate my stats troubles! I am having difficulty interpreting findings related to a significant three-way interaction. My study includes one between-subject variable (Group 1 and 2) and three within-subject variables (B with 3 levels, C with 2 Levels, and D with 2 levels). The DV is accuracy. I... |
"Essentially, all models are wrong, but some are useful."
--- Box, George E. P.; Norman R. Draper (1987). Empirical Model-Building and Response Surfaces, p. 424, Wiley. ISBN 0471810339.
There is a great post on this topic in a previous post
What is the meaning of "All models are wrong, but some are useful"
I just wante... |
I want to calculate a same effect size from a linear regression and a logistic regression to be able to compare them. More specifically, I would like to calculate standardized mean-difference (SMD).
I used the same variables (1 binary and 1 continous) for both linear and logistic regression when trying to check if my S... |
Usually it is called over-fitting when the test error is higher than the training error. Does that imply that it is called under-fitting when the training error is higher than the test error? Also what is the difference between test error and validation error?
|
I have the value of production waste (m3/day) and also the consumption (kwh/day) of some locations. You can see in the output that I have total information for locations 1 to 10. However, I don't have a consumption value for units 11 to 15. Therefore, I would like to know if it is possible to find these values, based o... |
I have a linear model where one dv is predicted by one categorical with 4 levels. I want to check if the intercept differs from the average of the other 3 conditions.
I fit the model
m1 <- lm(DV ~ categorical, data = data)
Then I perform contrast analysis by specifying
K <- matrix(c(3, -1, -1, -1), 1)
t <- glht(m1, l... |
Suppose I have products A, B and C with the following weight distributions:
A~N(5,2)
B~N(10,4)
C~N(8, 9)
Suppose a car is loaded with 5 units of A, 3 units of B, and 4 units of C.
Suppose further that the car weighs 600 kg.
What is the distribution of the car's total weight?
I tried to solve it as follows, but I don't ... |
I recently discovered that logistic regression does not work how I thought it did. We all know (except me), that logistic regression looks like this:
$$
Y = \frac{1}{1 + e^{-(ax + by + cz + d)}}
$$
However, this is just linear regression in disguise! Is there a type of regression that takes on this form?
$$
Y = \frac{1... |
I am using mirt and would like to get reliability estimates across a range of ability for a 1-factor scale. Essentially, I would like to extract the data used to make the plot produced by plot(mod, type = 'rxx') (where mod is a unidimensional mirt model).
By looking at this very helpful thread I believe I have what I n... |
I'm running a STLF forecast against a daily rain dataset (8103 tuples). The column i'm trying to forecast is composed of 0's (no rain) and 1's (rain).
Here is the coded i'm running:
train <- df_zero %>%
filter_index(. ~ "2019-12-31")
validation <- df_zero %>%
filter_index("2019-12-31" ~ .)
stlf_model <- stlf(ts(t... |
I do not fully understand lasso regression. I am able to code a LASSO regression model of the form $y = \beta_0 + \beta_1 x_1 + \ldots \beta_p x_p$ with sklearn, but I do not understand the Mathematical intuition behind the model, which I believe is important. In ISLR (Introduction to Statistical Learning in R), it is ... |
I have the following problem. I have individual observations $y_i \in [0,1]$ on the response to an increasing stimulus called $x$.
The stimulus is discretized as $x^1, x^2, \ldots , x^n$. Let's use the index $x^j$ and take $n=6$. Note that each subject responds to the same discretization, i.e. each subject observes the... |
There is a quality control inspector who searches for faults in newly produced items in a series of independent "fixations". If p is the probability that a flaw is detected during any one fixation, apparently an expression can be formulated as follows for the probability that a flaw will be detected by the end of the ... |
In Probabilistic Reasoning For Intelligent Systems by Judea Pearl, section 2.1.1, page 31, it is mentioned that in Bayesian formalism conditional probabilities are not defined in terms of joint distribution like $P(A|B)=\frac{P(A,B)}{P(B)}$.
Rather they are taken as primitives present in our knowledge-base just like $P... |
I'm training a two-layer LSTM with Adam optimizer for time-series data. I encountered several times that there was a "turning point" of the MAE vs. epochs plot. Is this a normal behavior?
|
I reproduced an example I found on Stackexchange, here, and I failed to get the same ICC using the performance::icc package in R. My reproducible example is below. Can someone explain to me why the performance package is giving me a different result. Please note that the performance package is calling insight::get_vari... |
Given differing median values for two populations, what is the probability that a randomly selected person from the higher-median population will have a higher value than someone from the lower-median population? (I think I need to assume the populations are of similar size)
|
When we have a deep neural network, according to how much complicated that neural network is, how we can make sure that in each layer we can calculate the derivatives?( Is that differentiable or not). We may have a combination of multiplications, summation, activation functions and ... but how do we know that is differ... |
Suppose that we have cost function with degree of 3. Based on gradient descent, we may have a derivative of zero in one or two points,but none of them specify the minimum of the cost function in those points. What will happen when we come across this?
|
Assume that I have 10 classes with 100 samples for each class—same # of samples, perfect balanced dataset.
I want to add 3 new classes, and which of the following is the best option for the number of samples for each newly added class?
100, 100, 100
200, 200, 200
1000, 1000, 1000
100, 1000, 1000
I am creating a data ... |
I believe I am looking up wrong keyterms when searching for solutions, so i'd appreciate some help.
initial situation: I want to analyse if specific forest stands are more prone to deer damage using drone data. I have
a) field survey data: Severity of deer damage on a scale from 1 to 8 and
b) drone data: lots of differ... |
I performed a augmented Dickey-Fuller test on a timeseries (that clearly has a trend) and, from the results, it suggests it is stationary (p-value = 0.01). Is this possible?
Augmented Dickey-Fuller Test
data: timeseries_1
Dickey-Fuller = -5.7857, Lag order = 14, p-value = 0.01
alternative hypothesis: stationary
... |
Disclaimer: I considered posting this on mathSE but thought maybe this is more fitting here (no pun intended).
Status Quo
I have a list of data points $\{x_k, y_k\}$ and a set of functions $f_i(x)$ with some coefficents $c_i$. I fitted the following function
$$F(x) = \left|\sum \limits_i^n c_i f_i(x)\right|^2 \tag{1}$$... |
Image a set of test statistics like:-
For the purposes of this question, can we assume that Z and p values couldn't be derived. (I know that p can via a cumulative distribution function).
As I understand it, a p value indicates the likelihood of the null hypothesis being correct within certain bounds. So p = 0.0000000... |
I'm struggling to understand this presentation of covariance. It says:
The variance-covariance matrix (or simply the covariance matrix ) of a random vector $\overline{X}$ is given by:
$$Cov(\overline{X})=E[\overline{X}\overline{X}^T]-E\overline{X}(E\overline{X})^T$$
First of all , what does he/she mean with covarianc... |
I am using the kaggle's stroke dataset trying to predict the stroke target feature, according to multiple predictive features. https://www.kaggle.com/datasets/fedesoriano/stroke-prediction-dataset
The stroke feature has either 1 or 0, so it's great for classification purposes.
I am using logistic regression with the sk... |
This is example data, but structured similar to my data.
Say, I want to perform a test of gender difference in height.
Let's say I am doing a test of height (cm) across gender, with random samples
Random Sample #
Male
Female
r_sam1
150
140
r_sam2
155
145
r_sam3
160
150
r_sam4
165
155
r_sam5
170
160
... |
Is cosine similarity a good metric to measure word embedding similarity? Suppose that we have two vectors of word embedding in same direction but with different length( first one with len=1 and second with len=10). Almost in articles, the cosine similarity has been calculated, but how we can interpret this above mentio... |
The widely used MCMCglmm package for R, which implements Bayesian Markov chain Monte Carlo estimation for generalized linear mixed models, computes a "pMCMC" value
$$
p_{\textrm{MCMC}}(\beta) = 2 \times \min\left( \textrm{Prob}(\beta>0), \textrm{Prob}(\beta<0) \right)
$$
which is a crude analogue of the frequentist 2-t... |
Suppose I have a parameter $\theta$, that I know is positive, and some data $(x_1,x_2,\dots,x_n)$ on noisy realisations of the $\theta$. I then assume a prior with positive support on $\theta$ (lognormal for example). How important is it to assume a positive likelihood on $x|\theta$ as well, or is it reasonable to assu... |
I've been learning statistics for a long time but I still struggle to understand the "philosophical" differences between frequentist and bayesian statistics.
AFAIK, frequentist and bayesian are two interpretations of the concept of probability. Frequentists define it as the long-run frequency of an event after many tri... |
I was creating a linear regression model on a particle collisions dataset. I observed that my model breaks several assumptions in linear regression, and when I tried to fix them, it increased the error. Why might this be? I made use of a train-test split during my experiments and here is my methodology using multiple l... |
I plan to meta-analyze proportion data (i.e. compliance rates in %) from >150 studies. Most of the studies will be single-group designs, but there will also be a few eligible multiple group studies (case-control or intervention-control) providing one effect size for each group. I consider the groups being indepently sa... |
I am doing a linear model using R, looking at the heating efficiency of three infrared lamps. The explanatory variable is the time taken to heat the core temperature of an animal model to 25C. The response variables are lamp types and the distance between the lamp and the animal model.
I only tested the distance at 20c... |
Say I want to compare three methods in a simulation study. Let’s say I want to compare the lasso, the group lasso, and a neural network at selecting relevant variables.
In terms of validation metrics, I could use accuracy, FDR, etc. However, how do I pick the parameters for each approach to allow for fair comparison us... |
I've been learning statistics for a long time but I still struggle to understand the "philosophical" differences between frequentist and bayesian statistics. One of my questions is the following:
Are confidence intervals and hypothesis tests purely frequentist devices? (Since their motivation is to bound our search for... |
I submitted the following table for peer review in a manuscript. The reviewer comments showed that the table confused them. In our study we have a pre- and post-score that we measured as DVs. Our predictors included 2 dummy variables, a "Theme" factor variable that included 5 levels, GEF, XYZ, ABC, DEF, and MNO. We had... |
Let's say we have 1D data $Y = \{ y_i \mid y_i \in \mathbb{R} \}$, and regressors $X = \{ x_i \mid x_i \in \mathbb{R} \}$, and we try doing basis regression.
Suppose we find that we can perfectly describe $Y$ as being linear with respect to two different classes of basis functions: $Y = \Phi_1(X)\beta_1$ and $Y = \Phi_... |
I have a set of data constituted by two columns: $Y$ with non-negative discrete values, depending on a time $t$.
I make the hypothesis that $Y$ is a Poisson distribution, with:
$$\operatorname {E} (Y\mid t )=e^{At + B} + C $$
When $C=0$ this is a well known generalised linear model, but how can find a good fit for data... |
After having read Book Of Why and Causal Inference In Statistics - A Primer, I was reading Causality - all by Judea Pearl.
Yet I found that there were quite some points which I was not understanding. Particularly, Markov and Bayesian networks, axiomatization of probabilistic system using information relevance axioms, e... |
At the core of this question is an ignorance of what a quasiperiodic variable (or collection of variables in a multivariable system) actually is. I don't have a particular data set in mind, but rather I am seeking to expand my repertoire of patterns to look for in future exploratory data analysis of time series.
Wikipe... |
I'm looking for an existing algorithm which carries out the task shown in the title.
My use-case in other words: I have a set of continuous independent variables (X) and a continuous dependent variable (y). I want to find a linear component from X along which y varies the most.
Conceptually, I think I'm looking for som... |
Consider a random variable
\begin{align}
U= a \log (Z+b)-Z
\end{align}
where $a,b>0$ and $Z$ is an exponential random variable.
Question: Can we find the variance of $U$?
Things that I tried
Because of the log, the direct computation doesn't seem possible (at least to me).
Here is what I tried, let
\begin{align}
f(Z)= ... |
I have a dataset with billions of values that either belong to a certain group or not. Let's say for example that I have sports equipment and I'm categorizing as 'tennis' or some other sport. I sample 100 products at random and manually determine whether my model has categorized within the correct category. I find that... |
I am currently using 2 dummy variables:
-A dummy variable 'Crisis' which captures the effects of the Great Recession of 2007–2009 and COVID-19 (and takes a value of 1 for the years 2009 and 2020 and zero otherwise)
-Another dummy variable 'Reporting' which is to account for the changes in new ESG directive in 2014(and ... |
I'm trying to find the probability that in the UK, in a male, female pair picked at random, the female will have the higher annual income.
I have following data from https://www.ons.gov.uk/employmentandlabourmarket/peopleinwork/earningsandworkinghours/articles/understandingthegenderpaygapintheuk/2018-01-17
Year,Men's m... |
I wonder how should I report the results of categorical variables with reference level in linear model?
The response variable of my model is Duration (time taken to reach 25C for an animal model). My explanatory variables are Lamp types (3 lamp types), Distance and etc.
For instance, in the image below. Distance 30 is ... |
Many posts (i.e. here and here) discuss how the Type III sums of squares produced by car::Anova() in R
are incorrect or nonsensical under R's default model parameterization, "contr.treatment", in which the first level of
the categorical variable is set as the reference/intercept and each remaining level is compared to ... |
While my deep learning model is quite robust to randomness coming from train/test data-splits, it is not robust to initial model weights.
How should I go about this?
Also, I'd greatly appreciate it if you direct me to the right materials.
|
I was reading about regression with Gaussian processes and I bumped into kernel functions. These functions can be expressed as inner products in a new feature space $\mathcal{M}$, that is:
$$k(\mathbf{x}, \mathbf{y}) = \langle \phi(\mathbf{x}), \phi(\mathbf{y}) \rangle_{\mathcal{M}}$$
with $\phi$ a feature map from the... |
Suppose $X_1,\ldots,X_n$ are continuous random variables and IID with sample median $m$ for some $n\geq 2$. Is it then true that $1(X_1\geq m),\ldots,1(X_n\geq m)$ are IID?
Here the definition of $1(X_i\geq m)$ is that it is 1 if $X_i\geq m$ and 0 otherwise.
I ask because I often see researchers create these dummy vari... |
Whenever I train a logistic regression model with the statsmodel api, it always feeds back a message similair to this one:
Optimization terminated successfully.
Current function value: 0.613427
Iterations 6
How should I interpret this value? Is it the accuracy?
|
I have data on patients with candidaemia and have analysed a range of predictor variables associated with 30-day in hospital mortality using binary logistic regression in STATA version 14. I can also use SPSS Version 24.
One of the predictor variables is location of this set of patients, i.e. hospital (Hospital A, Ho... |
I was wondering if it would make sense to have the first layer of your NN connected linearly to inputs (see the pic) and weights initialized to be 1.
The idea is to have 'feature importance' by extracting the weights of the first layer after training.
The idea seems to be too easy to be working (and others would implem... |
I have a situation where I have measurements taken from samples of healthy and pathological populations. The pathological populations tend to have much higher measurements, but the distributions are overlapping. It would be reasonable to model the distributions as Guassian.
Then I take a new individual's measurement an... |
I have fitted a logistic regression model with a transformed variable $z$, where $z=x/M$. I want to interpret the $\beta$ coefficients in the original scale (in-terms of x).
I started following calculation. First, I wrote the Odds rations in the transformed scale, as follows:
let $\pi_1=logit(p1)=\beta_0+\beta_1z$ and ... |
I have a time series data (say weather data for each day for one week) that changes at each time step. Along with this, I have some data that is fixed (eg - the latitude and longitude of this place where weather measurements were taken). Is it wise to repeat this fixed data at each time point to train my LSTM family mo... |
Suppose you have:
$n$ data points, i.i.d. $X_i \forall i \in 1,2,3,...n$
$H_0: X_i \sim \mathcal{N}(0,1)$
$H_1: X_i \sim \mathcal{N}(0,4)$
You know the distribution of $X_i$ under both $H_o$ and $H_1$
The problem is to choose $H_0$ or $H_1$ that results in a given False Positive Rate (Type 1 error) under $H_0$
The li... |
Assume that a remailer reorders messages. It has a pool of n-1 messages at all times. When the nth message arrives, one of the n messages is selected at random and forwarded. An attacker fools the server with enough messages to force the n - 1 messages in the original pool to be sent. Assuming that the message to be se... |
I am computing the Frobenius norm of the difference between two covariance matrices,
\begin{align}
|\mathbf{C}-\mathbf{C}'|_F=\sqrt{\sum_{i,j}\left(c_{ij}-c'_{ij}\right)^2}.
\end{align}
Each of these covariance matrices is a sample estimate constructed from a finite number $N_s$ of samples of a multivariate jointly Gau... |
I have tried different packages, functions, libraries etc in R and my results differ, whether it be p values or F values or DF etc. This is especially true for my within variable (hemi)..
between: group (Old adults, younger adults) unbalanced, ~150 young, 100 old
within: brain hemisphere (left vs right)
dv= volume (vol... |
I have the following code for bugs model which I want to use with rjags:
model {
for (i in 1:N_std) {
# binomial likelihood
y[i] ~ dbin(p[i], n[i])
logit(p[i]) <- logit_p[i]
logit_p[i] ~ dnorm(mu, inv_tau2)
}
inv_tau2 <- pow(tau, -2)
tau ~ dnorm(0, prior_prec_tau)I(0,) # HN(scale = 1 / sqrt(prior_prec_tau))
mu ... |
Suppose we have some operational data (Temperature, pressure, output power, etc.) of a steam power plant.
Without accessing the mathematical formulation of the system, is it possible to do optimization?
Let's give you a simple example:
By having the following figure, and also each data of the points, could we optimize ... |
I have a ratio estimator, $\hat{a} = n_1/(n_0+n_1)$, where $n_x$ refers to the frequency of $x$-valued data. Note that, $E(n_0)$ and $E(n_1)$ exists and strictly positive.
Usually, to show an estimator is unbiased, we need to show that $E(\hat{a}) = a$.
However, it can be shown if we do as below
$$
E(\hat{a}) = E(\frac... |
I've been close reading a paper and was mystified when the author mentioned two kernels: The logistic kernel $\frac{1}{e^x + 2 + e^{-x}}$ and the sigmoid kernel $\frac{2}{\pi}\frac{1}{e^x + e^{-x}}$. I'm mystified because the logistic function, also called the sigmoid function, is $\frac{1}{1+e^{-x}}$, which is a diffe... |
I have a large number of time series with different properties, and applied tsCV() function to them based on different models. Now I need to compare the forecast accuracy based on tsCV output. But I cannot use RMSE or other scale-dependent measures because I applied log transformation on these time series, nor MAPE bec... |
I was looking at some examples on how to use Keras for Regression and I came acrossed some tutorials that used X_test and y_test as validation data and then use them again at .predict.
model.fit(x_train,y_train,validation_data=(x_test,y_test),
callbacks [monitor],verbose=2,epochs=1000)
My understanding is th... |
My data sources
Source A gives me a ranking of the top 1.000 largest X (say, companies).
Source B provides a similar ranking, comprising 7.000 X, with some differences to Source A (different values, different companies).
Source C has another list of the 5.000 largest X, again with discrepancies from A and B.
The resu... |
I want to compare three groups with each other and have chosen the Kruskal-Wallis test and then the Dunn's test as post-hoc test.
If I have a data set like this:
df <- data.frame (group = c("Ctrl","Ctrl","Ctrl","Trtm1","Trtm1","Trtm1","Trtm2","Trtm2","Trtm2","Ctrl","Ctrl","Ctrl","Trtm1","Trtm1","Trtm1","Trtm2","Trtm2"... |
Let's pick a random number between 0 and 1 uniformly 1000 times and put the results in an array for example : [0.176,0.765,0.879,0.234,0.152,0.765,0.645,0.897,0.762,0.087...] and sort this sample from smallest to largest.
Then repeat the experience n times and keep the n arrays. Finally make the sum of all the arrays ... |
We know zero initialization is bad:
Pitfall: all zero initialization. Lets start with what we should not do. Note that we do not know what the final value of every weight should be in the trained network, but with proper data normalization it is reasonable to assume that approximately half of the weights will be posit... |
I am using a python package based on judea pearls book of why. I Tried two different models which i have depicted below, these structures would go in the digraph section of the code below. After running the code below for these two different graphical models i get exactly the same estimate. My question is how is this h... |
I am working on a credit scorecard model based on Logistic Regression, with output being the odds of default. There are multiple variables used, all categorical in nature. Even if there are numerical variables, we use binning to convert it to a categorical variable. The final output is later scaled to arrive at a figur... |
A widespread measure of effect of the COVID pandemic is the excess mortality. Two examples of methodologies to calculate are the calculations of the European Union statistics office and the Economist.
Basically, a baseline is calculated, with deaths from 5/10 years prior to the pandemic, so the excess of deaths afterwa... |
I'm analyzing a survey result, which has 50 survey questions in Likert scale of 1-5 and the binary answer of satisfied or not as the target. I'm thinking of applying factor analysis for dimension reduction and use the factors to train a classifier to predict satisfaction. The thing is, the 50 questions are already grou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.