instruction stringlengths 9 38.7k |
|---|
I repeatedly read that one cannot use an F-test to compare two models that are not nested. Usually I have to nested models
$$
m: y=X\beta+Z\gamma+\epsilon \text{, and } m_r:y=X\beta+u
$$
The test-statistic usually looks something like
$$
F(y)=\frac{RSS_r-RSS}{RSS}\cdot\frac{L}{N-K-L}
$$
where $rRSS$ and $RSS$ is the re... |
When titles, books, and posts refer to probabilistic modeling, coupled with it I usually see the word "Bayesian" near by and all around. If we were to think of this as a ven diagram, are they the same circle? Is Bayesian modeling within probabilistic modeling? What's the compliment of the intersection of Bayesian and p... |
I'm doing a retrospective analysis of some genetic data.
Does there exist a closed formula for statistical power for AMOVA test?
If not, could anyone advise how to compute statistical power for AMOVA test?
Some additional info:
AMOVA - Analysis of MOlecular VAriance. (Do not mistake it with ANOVA!)
Data: 7 population... |
I have the following optimization problem
\begin{equation} \label{logdual}
\begin{array}{ll@{}ll}
\text{minimize}_{\pmb\alpha \in \mathbb{R}^n} & \theta(\pmb\alpha) &\\
\text{subject to} & \pmb\alpha > 0 &\\
\end{array}
\end{equation}
where $\theta(\pmb{\alpha}) = \frac{1}{2\lambda} \sum_{i,j} \alpha_i \alpha_j y_i y_j... |
I ran a screening experiment for six numerical parameters to determine if they influence the response $Y$.
However, one factor, $A$, is confusing me. I visualized its effect on $Y$ and got the following plot:
However, when I plotted the effect of the parameter on $Z = \ln(1+Y)$, I got that its ifluence was quite diff... |
I am doing a linguistics experiment in which participants judge the acceptability of sentences. I intend to analyze the data using a linear mixed-effects model with crossed random effects for subject and item, but I'm not sure how to decide what counts as an "item" in the relevant way.
To give a simplified example, let... |
I am running an lmer function in R as follows, and I notice that the condition variable in the output changes from "condition" to "conditionE". In the data, condition has two values, "E" and "C". Does anyone know why this is happening or how to explain this behavior? What does this mean for the result (Estimate, -0.414... |
Given two samples $X$ and $Y$ where $X$ has $X_1,...,X_n$ independent r.v's with unknown distribution $F$ and $Y$ has $Y_1,...,Y_m$ independent r.v's with unknown distribution $G$, find the expected value and variance of
$$R=\sum_{i=1}^{n+m}iA_i$$
(where $A_i$ is $1$ iff the $i$th smallest value of $X$ and $Y$ belongs... |
I performed a hierarchical multiple regression to study the effect of different variables, above and beyond the apriori selected more important variables. The R script used to perform this regression is listed below.
Data <- read.csv("~/Desktop/data.csv", header=T,quote="")
Data$catVar.f <- factor(HMRdata$catVar)
HRMod... |
What are the traditional distributions for assigning probabilities to model parameters?
For instance, assume that we have a binomial distribution:
$$y \sim Bin(n,\theta)$$
Then we can distribute $\theta$ parameter with a Beta distribution and parameters $\alpha$ and $\beta$ equal to 1.
$$\theta \sim Beta(1,1)$$
I cons... |
I have this matrix:
x <- c(2, 38, 196, 2)
contingency <- matrix(x, nrow = 2, byrow = TRUE)
print(contingency)
[,1] [,2]
[1,] 2 38
[2,] 196 2
And I've carried out this Fisher's Exact Test:
fisher.test(contingency)
which outputs this:
Fisher's Exact Test for Count Data
data: contingency
p-value <... |
I am trying to figure out how to get confidence intervals for odds ratios that were computed based on model fitted values from a logistic regression.
Here's an example with the basic idea:
#Load packages
library(vcd)
library(dplyr)
data(Arthritis)
#Create binary outcome for logistic regression
Arthritis$Y <- ifelse(Ar... |
I'm following a lecture that explains how to calculate item-item similarities using adjusted cosine distance (or Pearson correlation). I tried implementing this and have not gotten the same results.
This reproduces my experiment:
import pandas as pd
df = pd.read_json("./movie-ratings.json")
# This is how the lecture ... |
I want to implement the image captioning example that https://keras.io/getting-started/sequential-model-guide/#examples has , for experimentation.
Instead of using their mentioned convnet, I decided to use resnet50 that i found at https://github.com/fchollet/deep-learning-models .
After some modifications , my code lo... |
In contrast to an a priori approach with a testable hypothesis, what is it called when a study examines data in search of a possible relationship in a more exploratory and unfounded way?
For example, if a researcher tries multiple combinations or variations of data (different lags, intervals, time periods, methods, and... |
I have a dataframe in R with two columns, each row represents a ratio in a year. There're a total of 130 rows. It looks like this:
When plotted out, it's like this:
I am currently using the below code in R to model this time series:
myts <- ts(df_130$sb_ab_ratio,
start = min(df_130$yearID),
en... |
So I am asked to calculate this, but I can't find anything about it on the internet.
This is the question asked:
Find Sd (standard deviation of the differences)
Listed below are ages of actresses and actors at the time that they
won Oscars for categories of Best Actress and Best Actor. This is paired sample data.
Actr... |
I want to construct probability models with the following structure:
$$\Bbb P(Y=1) = f(X_1,...,X_n)$$
where $Y \in \lbrace 0,1\rbrace$ and $\forall i, X_i \in \lbrace 0,1\rbrace$
My data doesn't have a particular distribution that I know of a priori.
At the moment, my sample size is 30 observations. According to what I... |
I'm not sure of the best way to ask this but I'll try:
I'm using negative binomial models to explore habitat relationships with species abundance. I found 4 significant factors in my full model. I then wanted to investigate relationship between abundance and each factor individually- both statistically and by plotting ... |
Is it better to split your dataset into train and test before vectorizing?
Or is it better to do it in reverse and vectorize inputs then perform train test split?
For example I'm trying to use some categorical inputs such as types of animals, should I vectorize them into one hot then split into train/test or split the ... |
I'm using 10-fold cross-validation (CV) with $L1$-penalized Logistic Regression to estimate expected prediction error.
Briefly, each sample is part of the prediction set for exactly one fold, and I use this prediction compared to the ground truth of that sample, over all samples, to estimate the AUC below. I think thi... |
I'm trying to get an intuition as to why degrees of freedom is n - 1 when calculating sample covariance. This is what I found:
1) Start with 2n degrees of freedom from the bivariate data
2) Lose 2 degrees of freedom from calculating the means
3) Lose n-1 degrees of freedom from computing product derivations
In step 3, ... |
I'm just starting out with machine learning. The example I was shown during a mini course I took was the predicting of the sale price of a house given features like:
size of house
number of floors
age of house
number of rooms
Given those features, it's trivial to train an algorithm to minimize some cost function, whi... |
I am fitting a logistic regression model. After variable selection, I am not sure how to check if I need any quadratic term in my model. Is it the same as linear regression to check residual plot?
|
I have a small study I am running to test feasibility. I have three intervention arms and one control. I am curious if one of the interventions is >>> placebo. The three interventions are: 1) Intervention A, 2) Intervention B, 3) Intervention A+B
I am wondering if to justify my sample size, I can run sample size calcul... |
I'm interested in differences in tasks performed per hour worked across a dataset of 50,000 work records (each of a different length of time). Each work observation has 3 variables:
hours - the number of hours worked (again, this is not a standard)
tasks - the number of tasks performed
experience - the cumulative numb... |
I am really struggling to implement this fancy PCA augmentation method described in this paper, here is what I believe I must do (correct me if I am wrong):
1) Create a Matrix where the first column contains all the red pixel data, the 2n column all the green pixel data and the 3rd all the blue pixel data from all the ... |
I use Random Forest for a predictive problem in which the goal is to maximize the F-measure. There are various techniques to compute variable importance in Random Forest but I'm wondering what might be wrong with this simple implementation:
Let's say we have k attributes selected after feature selection. Now we train a... |
I conducted a MANOVA with 3 dependents and 1 independent (with only 2 groups). The MANOVA test shows no significance. But the average value over the 3 dependents are very different for the two groups. I am wondering if this possible? I think normally, if MANOVA shows no significance, the average value of the 3 dependen... |
I'm a bit confused as to what assumptions my data needs to satisfy in order to use Mood's median test. Some resources state that you need the samples to come from population distributions with the same shape, while some sources, including wikipedia and the comments to this question:
What are the exact assumptions of Mo... |
So, I used Pearson's R in one my scholarly research papers, but I'm not sure which of the many historical papers I should cite. What kind of source does the community typical cite? On Wikipedia there are for example 6 papers cited in the introduction.
|
I need to test whether response rate for Test B is larger than response Rate for Test A (i.e. AB Test).
Null Hypothesis: is Response Rate (Test B) <> Response Rate (Test A).
Alternative Hypothesis: Response Rate (Test B) > Response Rate (Test A).
As far as I know a z-test for 2 proportions can be used for this. A c... |
What areas of pure mathematics may give fruitful perspectives with which to develop more theory in the field of deep learning?
(I'm asking about topics at the level of advanced undergraduate and introductory graduate courses.)
|
Consider the following multiple regression model: $$Y=X\beta+Z\delta+U.\tag{1}$$
Here $Y$ is a $n\times 1$ column vector; $X$ a $n\times (k+1)$ matrix; $\beta$ a $(k+1)\times 1$ column vector; $Z$ a $n\times l$ matrix; $\delta$ a $l\times 1$ column vector; and $U$, the error term, a $n\times1$ column vector.
QUESTION... |
I wonder if I am reasoning correctly here? I feel that I might be missing something important.
|
I have a dataset with 15 attributes, 6 are numerical and 9 are categorical. Among the categorical ones, some have about 3 levels, some about 10 levels and 2 of them about 500 levels. I'm training a model for binary classification.
When I convert the categorical attributes to numerical ones (using the so-called dummy co... |
In every example I've seen, there are just two variables in an ADL(p,q) (in relation to cointegration) where p and q are the numbers of lags included for each variable.
What is the correct/standard notation for an Autoregressive Distributed Lag model (ADL) with three variables:
$x_{1_t} =a* x_{1_t-1}+ b * x_{2_t} + c... |
As a warm-up to writing my own elastic net solver, I'm trying to get a fast enough version of ordinary least squares implemented using coordinate descent.
So if $b = Ax$, I want to find $x$ that minimizes
$$
\left\Vert b - Ax \right\Vert^2
$$
If $A_j$ is the $j$th column of $A$ and $A_{-j}$ is $A$ without column $j$, a... |
Can noise estimation in LTE be done using bandpass filter? As per my study in wireless systems to estimate noise power, if pilot sequence is known is done as |y(k)-p(k)h(k)|^2, where p(k) is pilot sequence, h(k) is channel and y(k) is received data at receiver.
But I was going through the code used in my project for LT... |
Information about the data
For this study, I would like to statistically test how the total length of sparrows affects their survival. Consider here one of the characteristics of the sparrows recorded was total length, which is assumed to be normally distributed.
Information regarding the data:
In a group of 21 survi... |
I'm looking for metrics of the degree of grouping/clustering of spatial data. I'm not looking to formally cluster the data i.e. classify points within groupings. But rather an index such as from 0 for a uniform distribution to 1 for a set of spatially coinciding points. All metrics I've seen so far either relate to di... |
Please, check the following problem from the exam:
Could you check the following logic:
H$_{0}$: difference in the ratings = 0
H$_{a}$: difference in the ratings > 0, because human resources manager wants to determine an increase in the ratings
Based on (2) I conclude that it is right-sided test and positive critical... |
I am currently running into a problem with MCMC. I am using it to evaluate different amounts of clusters (n_clusters, in [2,300]) of a graph that is varying in time. I want to achieve a clustering where the aggregate data in time follows most closely a concave (a<0) quadratic function (a*t**2+b*t+c).
So far, I am estim... |
Abstract example. Let's say, I want to compare MLE (Maximum Likelihood Estimation) and LSE (Least Squares Estimation) performance on the small samples for simple linear regression.
My idea: to generate two normally distributed variables x and y with very large number of observations. As far as I know, MLE and LSE are ... |
My question is regarding the minimum sample size needed in a mixed effects approach for analyzing a main effect.
Lets say that a sample is taken of n=8 subjects with k=10 measurements of a continuous variable on each subject. Additionally, each subject is measured at a different point in time (but only one point in ti... |
I'm trying to use Ward's method to calculate linkage for hierarchical agglomerative clustering with the data points below:
$$a=(0,0)$$
$$b=(1,2)$$
$$c=(3,4)$$
$$d=(4,1)$$
$$e=(2,2)$$
According to some software, after joining b and e, the distance between a and {b,e} is 2.88, but ... |
EDITED TO POSE DIFFERENT QUESTIONS THAN DUPLICATE:
this question poses the question:
Can standardized coefficients become greater than |1|? If yes, what
does that mean and should they be excluded from the model? If yes,
why?
The accepted answer can be summarized as:
Standardized coefficients can be greater than ... |
I have 100 doctors each who evaluated 60 patients and labeled them as having disease A which kills, or not having it. 40 of them are university doctors and 60 are community doctors. I have survival data on the patients and have generated 100 survival models (Cox) - on for each doctors binary diagnosis of "has A" versus... |
Is it possible to use Multiple Adaptive Regression Splines for predicting a binary outcome?
|
I would like to conduct on analysis that analyzes whether personality traits predict job search activity and contract type. I have a panel data set of about 15 waves. I wanted to conduct a logistic regression or a random effects model, but while the models work (and the results make sense) I am unsure whether this is t... |
I'm analyzing the relationship between women's BMI status (underweight, normal, overweight) and five predictors ( their wealth, their education, the region where they live, their score of dietary diversity and a variable indicating if they treat the water they drink using a good method). For interpretation purposes, I ... |
We received the following two tables as a result of a logistic regression analysis with by Enter and backward LR methods. The two outputs, Block 0 and 1, are provided below.
Despite attempts to explain it in various ways, we are puzzled as to why only such a small difference is observed between the null model and the ... |
I'm not sure if this is the right place to ask this question, but I didn't know where to ask.
Recently, I went to the IEEE 2016 International Conference on Big Data in Washington DC, but was surprised to find that there is also a different, IEEE International Conference on Data Mining (ICDM) in Barcelona. Is one more h... |
Using the same lambda in lasso regression from glmnet package in R leads to different results.
When I set a default number of lambdas to 100 my minimum lambda is 0.03196 and df=54. When I set it to 200, minimum lambda is the same but I get only 53 df.
It's even more odd when lambda is chosen manually. When lambda is se... |
I have a binary classification problem and am trying to find a way to optimize my machine learning algorithm using a performance metric based on the per-class error rate. If I'm not misinterpreting anything, frequently used measures such as sensitivity and specificity focus on one of the two columns in the confusion ma... |
I would like to know how sample size estimation is affected when the categories are artificial rather than naturally occurring and clearly discrete.
In my scenario I'm using a grid of a certain size (say 1 x 1m) to characterise land cover proportions. Let's say there are two possible categories of land cover A and B a... |
This references to:
Optimized implementations of the Random Forest algorithm
in particular where it says "Random Jungle -- abandoned?"
Background:
I found there is a directed graph version of a random forest - it is otherwise the same as a random forest but the base/weak learner is an acyclic directed graph. (1)
It... |
I have been looking at variational inference, however I came across a problem I have a hard time to understand how to start with it.
Let
$$\mu_n \sim N(\mu', \sigma'^2) \\ \tau_k \sim N(\tau', \lambda'^2)$$
where $\mu', \sigma', \tau', \lambda'$ are given parameters. Now let $$X_n \sim N(\mu_n, \sigma_n^2) \\ Y_k \si... |
Say I measure an outcome variable at two given times (always the same) for 100 people.
For example their weights today and tomorrow, or before and after a treatment.
In order to find if the outcome depends on time I could perform a paired t-test or use a lineal regression model with random effects such as:
$Y = a+b·t+(... |
I would like to use the cv.glmnet() function, in a microarray dataset to perform some kind of "feature selection/variable importance" and prioritize with this way, the selected features with the lasso approach (which coefficients are different than zero). My outcome is a categorical binary outcome (factor, 2 levels). M... |
At 8:30 of this video Andrew Ng mentions that the cost function for stochastic gradient descent (for a single observation) for logistic regression is
$-y_i \log h_w(x_i) - (1 - y_i) \log h_w(1 - x_i) + \frac{\lambda}{2} ||w||^2$
My question (a rather technical one) is about the regularization term. If the cost functi... |
The latest edition of The Lancet has a paper reporting on mortality among children under the age of 5 around the world. It is entitled "Global, regional, and national causes of under-5 mortality in 2000–15: an updated systematic analysis with implications for the Sustainable Development Goals." In the abstract, they re... |
I would like to model heteroscedasticity or better, the standard deviation of the mean as a function of x and retrieve the coefficients that says something about how standard deviation behaves with respect to x.
here is some data:
n <- 1000
x <- runif(n)
y <- 1 - 2*x + x*rnorm(n)
plot(y~x)
r <- lm(y~x)
qplot(x,r$resi... |
I am trying to do some multivariate cluster analysis as follows:
I have a file in which I have the data and I perform the cluster analysis using k-means:
data <- read.csv("data_file")
str(data)
'data.frame': 10 obs. of 3 variables:
$ A : num 2.64 2.01 2.02 1.85 1.94 ...
$ B : num 5.45 5.14 5.16 4.... |
I have a ratio as a response variable (typically in (0,1) ) which is the result of repeated measurement of a population satisfying a criteria over the total population for the time period.
The thing is that those populations might fail to be numerous enough to be confident in the value of the response for some periods... |
I read these two tweets written on 2016-12-15 by Andrew Ng:
Strong desire for global content made China 1st to develop Neural Machine Translation. US lucky to have so much english content
[…]
@ruchitgarg @ylecun Yes, that's what I meant. AFAIK first scalable deployment was BaiduTrans. Earlier rsch by Bengio, many oth... |
In word-embeddings visualization I often see that people perform the following two steps:
Train high-dimensional embeddings on a corpus
Use dimensionality reduction technique (e.g. PCA)
So why not simply set size of the hidden layer to 2, i.e. train word embeddings of size 2 in the first place, hence, eliminating the... |
I just run two mixed-effects logistic regressions. I narrowed down the best models using a stepwise manual backwards method and anova comparisons
The two regressions measure two different kinds of linguistic productivity: morphological (morph_num: 0 or 1) and syntactical (synt_num, 0 or 1).
The main predictor are :
tvl... |
I have, for N_countries countries and for each day during a certain period, a list of purchases from my website and how much each purchase was. I think that money spent as a function of days since the start of this period follows a sigmoid:
$$y \sim \mathcal N\left(\frac{\alpha}{1 + e^{-(\beta\cdot day + \gamma)}} + \d... |
In my training I have 10 months of data and the task is predict for next month top N products for each users. As I see popularity of each product have a significant trend. It means that if we teach a model on the first month prediction for 10 month will contain mistake. How include this effect into model? Now I use xgb... |
I am recently learning causal inference, and asked two questions without any answer. So I decide to ask the question differently from high level.
We know smoking and drinking are correlated, a person smokes are more likely to have drinking problems. However, we do not known which cause which. Suppose I want to figure o... |
I've been looking around out of curiosity if there is a standard method equivalent to OLS that finds the coefficients satisfying the minimum absolute error criteria as opposed to squared error, but haven't found anything for
$$
\min \sum_{i=1}^n ||F(x_i)-y_i||.
$$
I'm not talking about a LASSO (which is a penalty on t... |
I am using Logistic Regression (LR) to obtain Coronary Artery Disease CAD probability equation. The dataset has 16 candidate predictors, all continuous. There are two groups, CAD patient group (70 subjects), and an age-matched control group AMC (~ 70 subjects). Given that the control group is age-matched, I have a feei... |
I know that when estimating and using ordinary least squares, irregular terms have to be iid N(0, σ2 ). Now I want to use non-linear least squares method for estimations. Are there any specific conditions that irregular terms have to fullfill? Or do they have to be still iid N(0, σ2 )?
|
In Deep Residual Learning for Image Recognition, I am trying to understand better the "dotted shortcuts" from Figure 3, where the first convolutional layer in those shortcuts is applied with stride of 2. I understand the linear transformation via 1x1 convolution to handle the increase in dimension, i.e., Eqn.(2). It's ... |
I have a parenting questionnaire with three sub-scales. Within the sub-scales I have item level missing data. It is less than 5% of the data, but I would like to use multiple imputation to correct the missing data. I am using the MICE package in R, and the mice() function. I wanted to ask what method of imputation shou... |
In his (fantastic, fascinating and sure to become a classic) book "Thinking, Fast and Slow", Daniel Kahneman asks the reader the question in the title. I was wondering how people would approach this problem. A similar question with some answers (one of them is mine) can be found here. However, these answers consider a ... |
I have a an ARIMA model which gives a pretty good forecast when compared to actuals. However it occasionally dips to negative values, while the quantity being predicted can never be negative.
Is there a way of forcing the ARIMA model to be positive?
|
Wrote a program to rate 2 hole cards (your hand) against a single random hand.
Your two hole card are combined with a common 5 card board to create the best 5 card hand. You can play the board. Each opponent does the same.
I remove the two cards from the 52 card deck. Run all the 5 card boards. And for each board ... |
I'm working with some categorical data that I want to use for prediction with a machine learning algorithm. Many of my my categorical features have multiple categories that contain very few positive observations.
I've seen approaches that merge categories in scenarios such as this in order to create a category with mor... |
If $Y_1,..., Y_{n}$ are iid N($\mu$, $\sigma^2$) where variance is unknown and $Y_{n+1}$ was observed but one thinks that this has different mean from the n observations.
What kind of test can I use to test whether the new observation $Y_{n+1}$ has different mean from the rest?
Some hint will be appreciated.
|
I'd like to run PCA on some data, and it looks like there are a lot of ways to do it. What is the best way, given this information?
The data is high-dimensional. Min: several thousand, max: around 150 million. Big range! Typically less than 10 million, I would think.
The lower number of samples I can do this with, the... |
I am attempting to write the mathematical model for and also simulate an MA(1) process that has drift (in R).
I have referenced ARIMA (0,1,1) or (0,1,0) - or something else?, Simulation of forecasted values in ARIMA (0,1,1), and Fitting ARIMA with a drift on R. I am aware that the "forecast" package that I am using add... |
I've been looking at how to use neural nets for time-series analysis. The examples I've seen mostly rely on a sliding window to feed the slice of the data into the input layer - which has as many input neurons as there are elements within that window.
Suppose I wanted to feed two "parallel" time-series into the same ne... |
I am working on classifying 30 second samples of music into one of four genres: ["electronic", "hip hop", "jazz", "rock"] and I would appreciate any kind of help.
I have generated my own data set from mp3 files. Within my "dataset" directory, I have arranged 100 songs by genre, putting 25 in subdirectories for each gen... |
I've implement c4.5 and CART, and i want compare them in my implementation of Boosting (AdaBoost). I don't understand how to "connect" weights, that im setting in AdaBoost, to decision tree algorithms.
At the begining i have Data set that i split for trening and testing sets. I set weights for trening set and build tre... |
I have two labelled classes, 500 examples of each, 4500 features for each of them. So the dataframe is 1000X4500.
Is it possible to devise a model which uses all the 4500 features and gives 100% accuracy, and then remove out unimportant features one by one till I get an accuracy of 85% (i.e. moving from a completely ov... |
As we know , we have two kinds of presentation in binary classification , one is 0/1 and the other is -1/1 .
For 0/1 case , we often use "negative logarithmic likelihood"
loss function for it , also known as cross entropy function ,
certainly other options such as "hinge" loss also can also be in
consideration . Here ... |
I'm working on my graduation research; one of the hypotheses I have is that there is a significant variation between male and female employees in their level of performance.
The t-test provided a p-value > 0.05 indicating no difference.
Out of curiosity, I ran the correlation test and again p-value > 0.05.
My questi... |
I tried to train CNN with very closely similar images for classification. Batch Normalization and dropout of 0.25 is used to overcome overfitting. This is the result I found.How can I interpret this result? Overfit, underfit or good fit?
|
I am trying to select an ARIMA model for a time series using out of sample testing (similar to how you would do it for any machine learning algorithm). I divide my data set into a training and test set and for each ARIMA model:
Fit the model to the training set
If the model has a good enough AIC or BIC move to step (3... |
What exact kind of architecture of neural networks do I need for a sequence binary/multiclass classification? The sequences can be of different length and are to be discriminated by a certain occurrence of smaller subsequences in it.
It would be great if you can provide Lasagne/Keras layers setup and their parameters.
... |
I'm trying to use the rejection method (accept/reject) to simulate samples of various dimensions from the distribution with density function of probability
And graphically check whether the sample comes from a population with Beta distribution (1/2, 3).
Here's what I've done:
# 1. Define sample size
nvals <- 5000
#... |
I want to plan a study where I want to correlate change in mean parameters and results of discrete events (a 2x2 contingency table).
For every site of my study I'll have two group of patients, one receiving drug A and one receiving drug B. I'll measure change in mean of parameter C after follow-up and I'll be recording... |
I just read the paper of Engle & Ng (1993) in which they introduced the sign bias test (positive sign bias t., negative sign bias t., joint test). I have a problem understanding what the test statistic is.
Is it $\chi^2$ with 3 DF for the joint and 1 DF for the other tests?
Reference:
Engle, Robert F., and Victor K. N... |
Say that $\mathcal{X}$ is the samples set and $X$ is a r.v. that takes value in it, and $\mathcal{Y}$ is the labels set with $Y$ a r.v. that takes value in it.
Classification problems are easily represented in probability terms. For example, when we wish to classify some sample $x \in \mathcal{X}$ our goal i to find $\... |
I'm trying to learn how to do multiple regression with categorical variables. I have a dataset of credit card balance data that looks as follows:
I then did a regression on all variables (in R):
I understand the concept of dummy variables and always omitting one of them, which R does for you automatically.
I haven't... |
I have a dataset with multiple categories but also with a catch all other category. For example,
Category | Count
A|10
B|12
C|4
Other|5
So in this case I have three categories where I have human classified results, but I also have 5 where the humans were uncertain.
I would like to train a model with only the ... |
I have a doubt about the multiple lieìnear regression I wanna run.
My dataset is of more than 16000 obs about videogames (kaggle one).
The target variable is Global sales,
The regressors are all factors (genre, publisher and platform of videogames).
The other regressor I'd like to use is the variable NA_Sales (tota... |
I would like to learn the parameters for a truncated gaussian like this one.
I'm using this formula for the probability density
$f(x | \mu, \sigma^2) = \exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right) \times \frac{1}{F(\mu, \sigma)}\times \mathbb{1}_{x>0}$
where $F(\mu, \sigma)$ is a function so that the integral of $f$ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.