• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:26
CEST 21:26
KST 04:26
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy18ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
$5,000 WardiTV TLMC tournament - Presented by Monster Energy1GSL CK: More events planned pending crowdfunding0Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win0[BSL22] RO32 Group Stage4Weekly Cups (March 23-29): herO takes triple6
StarCraft 2
General
Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win Rongyi Cup S3 - Preview & Info Team Liquid Map Contest #22 - Presented by Monster Energy What mix of new & old maps do you want in the next ladder pool? (SC2)
Tourneys
RSL Season 4 announced for March-April $5,000 WardiTV TLMC tournament - Presented by Monster Energy Sea Duckling Open (Global, Bronze-Diamond) GSL CK: More events planned pending crowdfunding Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power Mutation # 518 Radiation Zone
Brood War
General
so ive been playing broodwar for a week straight. ASL21 General Discussion Pros React To: JaeDong vs Queen [BSL22] RO32 Group Stage Gypsy to Korea
Tourneys
🌍 Weekly Foreign Showmatches [Megathread] Daily Proleagues [ASL21] Ro24 Group F Escore Tournament StarCraft Season 2
Strategy
Muta micro map competition Fighting Spirit mining rates What's the deal with APM & what's its true value Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game General RTS Discussion Thread Nintendo Switch Thread Darkest Dungeon
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
European Politico-economics QA Mega-thread US Politics Mega-thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Loot Boxes—Emotions, And Why…
TrAiDoS
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
ASL S21 English Commentary…
namkraft
Electronics
mantequilla
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1360 users

The Math Thread - Page 24

Forum Index > General Forum
Post a Reply
Prev 1 22 23 24 25 26 32 Next All
Rodya
Profile Joined January 2018
546 Posts
February 20 2019 03:04 GMT
#461
On February 20 2019 10:34 travis wrote:
I have a assigned question to determine the last two digits of 99^14 by using modulus 100
so I know 99 is congruent -1 (mod 100)
which means
99^14 is congruent (-1)^14 (mod 100)
which means the last two digits must be 01 because -1^14 = 1

did I do this correctly?

Hi - yes you did.

You can check this property because if a = bm+c and g = hm+k, then ag = (bm+c)(hm+k) = (hbm+ch+bk)m+ck. Thus ag (mod m) \equiv ck (mod m).

Applying this to your problem, you have 14 99s, and for each one, c = k = -1 (without loss of generality). So you combine the first two, and get that it is equivalent to 1, then you take 99^2 and 99 together. Well 99^2 \equiv 1 (mod 100) so that means that it's remainder must be 1. So now you have c = 1, k= -1. Thus 99^3 \equiv -1 (mod 100). We can use induction to show that what you said is correct.
Banned for saying "zerg players are by far the biggest whiners in sc2 history" despite the fact that this forum is full of such posts about Terrans. Foreigner Elitists in control!
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2019-02-20 19:39:14
February 20 2019 19:26 GMT
#462
Thanks Rodya.

I've got some more review checking to do, this one is probability.. I've always been especially bad at probability, it confuses me pretty badly sometimes.

the question says that a student takes an hour long exam (so x is time, where x is {0,1}), with a probability of finishing within time x = x/2.

It then says that the student is still working after .75 hours, and what is the probability the student will take the entire hour to finish?

edit: I removed the crap I wrote because I realized I must be doing this question wrong... I will come back and fill in what I try doing

edit2:

I think I figured it out. I need P(x=1 | x>=.75)

which = P(x >= .75 and x = 1)/P(x >= .75)

which = P(x = 1)/P(x >= .75)

which are

(1-1/2)/(1-.75/2) = .8

the key was I forgot I need to subtract both values from one because the original probability was the chance of finishing it in that time, not of going past that time. I need to pay more careful attention when I am reading
Mafe
Profile Joined February 2011
Germany5966 Posts
February 20 2019 19:44 GMT
#463
On February 21 2019 04:26 travis wrote:
Thanks Rodya.

I've got some more review checking to do, this one is probability.. I've always been especially bad at probability, it confuses me pretty badly sometimes.

the question says that a student takes an hour long exam (so x is time, where x is {0,1}), with a probability of finishing in time x = x/2.

It then says that the student is still working after .75 hours, and what is the probability the student will take the entire hour to finish?

I've tried to work it out and I've tried to get some guidance online but I am not making sense of it

What I did is:

P(A) = .75/2
P(B) = 1/2

I think I want P(B|A)

And I think P(B|A) = P(A and B)/P(A)

But that's where I am getting really confused. Isn't P(A and B) = P(B) ?

Which gives

P(B|A) = (1/2)/(.75/2)

which is 1.33333.. which is greater than 1. What am I doing wrong lol

Took me a few minutes to understand. Just to clarify, let me state what I guess the unwritten assumptions are:
You meant to say P(t <= x)=x/2 where t is the time of finishing the the exam for x in [0,1) (instead of {0,1})? And that P( t= 1)= 1/2, because the student is forced to finish the exam once the hour has passed?

If A = "student still working at 0.75 hours" and B= "student takes full hour" then you are indeed looking for P(B|A). However, when calculating the probabilty of A, you are apparently confusing A with its complementary event.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
February 20 2019 19:47 GMT
#464
Yeah, your assumptions are correct, sorry for having you read through that only to find I had edited it afterwards.
Mafe
Profile Joined February 2011
Germany5966 Posts
February 20 2019 20:01 GMT
#465
On February 21 2019 04:47 travis wrote:
Yeah, your assumptions are correct, sorry for having you read through that only to find I had edited it afterwards.

No problem, I have to get back into this stuff anyway, otherwise I wouldnt even have bothered
Rodya
Profile Joined January 2018
546 Posts
February 20 2019 20:18 GMT
#466
You are right but Id mark off a point for your not so right derivation. Note first that f(x) = x/2 is the cdf of the finish-time variable, which I will call y. The pdf of y must be g(x) = 1/2. Probability must sum to 1 so that means the integral of (1/2) over the domain of g should be 1. So that means g ranges from 0 to 2. Thus there is a 50% chance that the exam is not completed within the hour.

Now, p(y=1 |y>=.75) = p(y=1)/p(y>=.75) = (1/2)/(5/8) = 0.8. The calculation is helped by the fact that p(y>=.75) = 1 - p(y< .75) = 1-p(x=.75). You did the right numbers but you got them the wrong way. P(x>=.75) = the integral from .75 to 2 of x/2. That comes out to 23/32.
Banned for saying "zerg players are by far the biggest whiners in sc2 history" despite the fact that this forum is full of such posts about Terrans. Foreigner Elitists in control!
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
February 20 2019 20:31 GMT
#467
I am not understanding your explanation of why you would mark a point off.
Rodya
Profile Joined January 2018
546 Posts
February 20 2019 20:48 GMT
#468
You calculated the wrong thing. P(x=1) is the probability that you finish WITHIN the hour, not ON the hour.
Banned for saying "zerg players are by far the biggest whiners in sc2 history" despite the fact that this forum is full of such posts about Terrans. Foreigner Elitists in control!
phwoar
Profile Joined December 2012
Australia4 Posts
February 20 2019 20:49 GMT
#469
The best way to think about your problem is a hybrid distribution with both continuous and discrete components. Namely you have a continuous probability density on [0,1) and then a discrete probability mass of a half at 1. In terms of the cdf function that would be F(x) = x/2 for x in [0,1) and then a jump at 1 so F(x) = 1 at x=1. It doesn't make any sense to try to extend your sample space to [0,2] in the manner that Rodya is saying.
phwoar
Acrofales
Profile Joined August 2010
Spain18256 Posts
February 20 2019 21:19 GMT
#470
On February 21 2019 05:49 phwoar wrote:
The best way to think about your problem is a hybrid distribution with both continuous and discrete components. Namely you have a continuous probability density on [0,1) and then a discrete probability mass of a half at 1. In terms of the cdf function that would be F(x) = x/2 for x in [0,1) and then a jump at 1 so F(x) = 1 at x=1. It doesn't make any sense to try to extend your sample space to [0,2] in the manner that Rodya is saying.

I agree with Rodya for subtracting the point. And I agree with you that this makes more sense as having a continuous and a discrete component.

Travis, if you don't understand your mistake, try doing the exact same exercise with the cdf F(x) = x/3.

+ Show Spoiler +
You got lucky that 1 hour was the halfway point, and therefore P(x=1) = P(x < 1) = 0.5. With the cdf x/3 this is no longer the case, and you have to use P(x = 1 | x >= 0.75) = P(x = 1) / P(x >= 0.75) = 2/3 / 5/8, which is different from P(x < 1 | x >= 0.75) = 1/3 / 5/8....
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2019-02-21 16:33:33
February 21 2019 15:42 GMT
#471
I see the mistake, thanks!

Now on to something a bit more less common.

I need to know how to differentiate matrices... but this is something we've literally never done, and everything I am reading online is tough to follow, and i am confused to heck.

Starter problem:

compute the derivative of the function f(w) with respect to w_i, where w,x are in R^D and:

f(w) = 1/(1+e^(-w^t*x))

I honestly have no idea what to do. What's got me confused here is "with respect to w_i". I am expecting this problem is actually simpler than the later problems, but I am not sure what it's asking for. It's asking for the derivative of a given element of w ? god i can't wrap my head around this I don't have a strong enough basis in calculus


edit: am I literally just finding the derivative of 1/(1+e^(-x * w_i))?

edit2: or is it the summation of said derivatives?
Rodya
Profile Joined January 2018
546 Posts
Last Edited: 2019-02-21 17:23:50
February 21 2019 17:23 GMT
#472
On February 22 2019 00:42 travis wrote:
I see the mistake, thanks!

Now on to something a bit more less common.

I need to know how to differentiate matrices... but this is something we've literally never done, and everything I am reading online is tough to follow, and i am confused to heck.

Starter problem:

compute the derivative of the function f(w) with respect to w_i, where w,x are in R^D and:

f(w) = 1/(1+e^(-w^t*x))

I honestly have no idea what to do. What's got me confused here is "with respect to w_i". I am expecting this problem is actually simpler than the later problems, but I am not sure what it's asking for. It's asking for the derivative of a given element of w ? god i can't wrap my head around this I don't have a strong enough basis in calculus


edit: am I literally just finding the derivative of 1/(1+e^(-x * w_i))?

edit2: or is it the summation of said derivatives?

The 'derivative' of a linear transformation matrix A is itself.

I'm guessing w^t is the transpose of w? And I suppose the * in w^t * x is the dot product? For future reference, most people would prefer you write w^T not w^t. Allow me to write out the function more explicitly for you.

f(w_1, w_2, ..., w_D) = 1/(1+e^(-(w_1 x_1+w_2 x_2 + ... + w_D x_D)))

Now, the problem wants you to take the partial derivative of this function with respect to w_i. Hope this helps.
Banned for saying "zerg players are by far the biggest whiners in sc2 history" despite the fact that this forum is full of such posts about Terrans. Foreigner Elitists in control!
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2019-02-21 20:01:35
February 21 2019 19:37 GMT
#473
I still don't understand. Up to this point it's pretty much what I thought, but I still don't get what it means to take the partial derivative with respect to w_i

if I do that, how do I even represent the rest of the vector entries in the derivative?

Ah.. hrm.. is the answer:

+ Show Spoiler +


x_i*e^(-w^Tx) / (1+e^(-w^Tx))^2



?
Rodya
Profile Joined January 2018
546 Posts
February 21 2019 20:23 GMT
#474
Yeah that's right.
Banned for saying "zerg players are by far the biggest whiners in sc2 history" despite the fact that this forum is full of such posts about Terrans. Foreigner Elitists in control!
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
February 21 2019 20:34 GMT
#475
okay fantastic. Now is where it gets a lot harder. I will be back soon lol
I really appreciate the help, they really threw us in the deep end here, I think the upcoming questions are typically graduate level stuff and im not even good at math for an undergrad

it's for a deep learning course, if you're curious. the course isn't even really a theory class or anything but I guess it's good for me to get some understanding of this stuff
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
February 21 2019 20:48 GMT
#476
Okay, next, compute the derivative of J(w) with respect to w

J(w) =

1/2(sum from i to m) of: |w^Tx^(i)-y^(i)|

the notation here might seem weird, it does to me at least, they are using ^(i) to represent the ith data point


I believe, the derivative of a sum is the sum of derivatives? I think I read that?
So do I pull out the 1/2 and summation, and do d/dw|w^Tx^(i)-y^(i)|


and then that derivative is equal to x(w^(i)x^(i)-y^(i)) / |w^(i)x^(i)-y^(i)| ?


To be honest, i am really confused by w^T*x^(i). x and w are both vectors here...? what does w^Tx^(i) even mean?
If we have

w^T = [.4, .6] and x^T = [3, 7] and i = 1... then what is w^Tx^(i) saying to do?
Simberto
Profile Blog Joined July 2010
Germany11795 Posts
Last Edited: 2019-02-21 21:11:08
February 21 2019 21:08 GMT
#477
Usually, w^T means the transpose of w.

That means, if w is a column vector, w^T is the row vector with the same numbers

(w1)
w2
w3

becomes (w1, w2, w3)

That means that w^T x is simply the scalar product of w and x. The reason people use this way of writing is that you don't have to specifically define the scalar product which you want to use, and can instead use the normal rules of matrix multiplication. (And it is more generally useable)

https://en.wikipedia.org/wiki/Transpose
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2019-02-21 21:15:51
February 21 2019 21:12 GMT
#478
I understand that, but since x is a vector, it's saying it wants the scalar product of the entire w vector with just entry i of vector x ?

like.. w_1*x_i + w_2*x_i ..... + w_m*x_i ?

like, back to my example:

w^T = [.4, .6] and x^T = [3, 7] and i = 1... then what is w^Tx^(i) saying to do?
Rodya
Profile Joined January 2018
546 Posts
Last Edited: 2019-02-21 21:43:50
February 21 2019 21:41 GMT
#479
Firstly, you are right that the sum of derivatives is equal to the derivative of the sum. One way to remember this is by remembering that the derivative operation is *linear*.

Secondly, w^T*x^(i) basically means the dot product of w and x^(i). They are both vectors, so taking the dot product makes sense. The reason one of them is transposed is so that you can ignore dot products and just do matrix multipication (yes vectors are matrices). For your example we have w^T*x^(i) = 3(0.4) + 7(0.6).

Thirdly, when we talk about the derivative of a function with respect to a vector, we are talking about the gradient of that function. You can google it, but the gradient is just a vector containing all the first order partial derivatives of the function. I would be wrong about this, however, if your book has decided to use the word "derivative" to mean "total derivative".

Fourthly, the derivative that you gave is close to being correct. You are right that the funcitonal form of the derivative of |f(x)| is equal to f'(x)f(x)/|f(x)|, however you need to take into account the third point (so your answer should be a vector). Also, you may want to know that this derivative may not defined at certain points w for which wx^(i)-y^(i) = 0. But wherever the derivative is defined... you will have d|f(x)|/dx = f'(x)f(x)/|f(x)|.

Lastly, a couple other problems with your answer. w^(i) doesn't make sense - only x and y are indexed by i. x^(i) is a vector, not the i'th entry of x. The j'th entry of x^(i) is denoted (x^(i))_j. Also, that x on the far left of your answer should be (x^(i))_j or something, since you are taking a PARTIAL derivative with respect to w_j, not w itself.

I said a lot but hopefully I didn't confuse you, you seem to pretty much get it. The third point I wrote is really the only important one.
Banned for saying "zerg players are by far the biggest whiners in sc2 history" despite the fact that this forum is full of such posts about Terrans. Foreigner Elitists in control!
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2019-02-21 22:49:55
February 21 2019 21:55 GMT
#480
On February 22 2019 06:41 Rodya wrote:
Firstly, you are right that the sum of derivatives is equal to the derivative of the sum. One way to remember this is by remembering that the derivative operation is *linear*.

Secondly, w^T*x^(i) basically means the dot product of w and x^(i). They are both vectors, so taking the dot product makes sense. The reason one of them is transposed is so that you can ignore dot products and just do matrix multipication (yes vectors are matrices). For your example we have w^T*x^(i) = 3(0.4) + 7(0.6).


I said a lot but hopefully I didn't confuse you, you seem to pretty much get it. The third point I wrote is really the only important one.


you definitely aren't making my confusion worse, only better, but this is the part that I don't understand.

is my confusion here just from a lack of understanding of the notation. I am wondering if this is somethign you guys are trying to tell me.


Lastly, a couple other problems with your answer. w^(i) doesn't make sense - only x and y are indexed by i. x^(i) is a vector, not the i'th entry of x. The j'th entry of x^(i) is denoted (x^(i))_j.


to further clarify my confusion, if x^(i) is a vector, then we are saying that x is potentially a > 1 dimensional matrix (so it potentially has more than one vector)? and i is the column we are multiplying w by?

so if that's the case then in this problem, W may or may not have more than one row? but then our output is a vector, not a scalar? (I think you said that)



edit:

to check another problem,
it asks, "find delta_w of f, where f(w) = tanh[w^Tx]"

I am guessing the delta_w of f means "derivative of f with respect to w".

so to answer this I did chain rule
u = w^Tx

d/dw(w^Tx) = x (I looked it up.. I don't know why it's x ... im guessing order of multiplication matters here. not really going to spend the time going into it)

so anyways, answer = x*sech^2[w^Tx]

did i screw this one up or is it really that straightforward?

gonna try doing the last two next, they are clearly the most difficult
Prev 1 22 23 24 25 26 32 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 4h 34m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 496
elazer 150
UpATreeSC 128
ProTech124
BRAT_OK 66
MindelVK 23
JuggernautJason4
StarCraft: Brood War
Calm 2098
Shuttle 464
Larva 270
ggaemo 187
hero 173
Mini 157
Rush 152
Soulkey 121
Dewaltoss 119
sorry 41
[ Show more ]
Terrorterran 14
Sexy 12
910 11
Dota 2
Gorgc6599
420jenkins293
BananaSlamJamma98
Counter-Strike
pashabiceps2121
fl0m1687
Super Smash Bros
Mew2King73
Heroes of the Storm
Liquid`Hasu387
Other Games
summit1g7187
Grubby2519
FrodaN1336
Beastyqt736
B2W.Neo612
C9.Mang0202
ArmadaUGS118
Hui .105
ZombieGrub91
Sick73
Trikslyr51
kaitlyn14
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 22 non-featured ]
StarCraft 2
• HeavenSC 23
• Adnapsc2 18
• Reevou 9
• intothetv
• IndyKCrew
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• blackmanpl 41
• Azhi_Dahaki19
• Michael_bg 5
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• lizZardDota258
League of Legends
• Nemesis3338
Other Games
• imaqtpie1029
• Scarra357
• WagamamaTV218
• Shiphtur207
Upcoming Events
Replay Cast
4h 34m
The PondCast
14h 34m
CranKy Ducklings
1d 4h
WardiTV Team League
1d 15h
Replay Cast
2 days
CranKy Ducklings
2 days
WardiTV Team League
2 days
uThermal 2v2 Circuit
2 days
BSL
2 days
Sparkling Tuna Cup
3 days
[ Show More ]
WardiTV Team League
3 days
OSC
3 days
BSL
3 days
Replay Cast
4 days
Replay Cast
4 days
Wardi Open
4 days
GSL
5 days
Replay Cast
6 days
Kung Fu Cup
6 days
Liquipedia Results

Completed

CSL Elite League 2026
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
StarCraft2 Community Team League 2026 Spring
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026

Upcoming

Escore Tournament S2: W2
IPSL Spring 2026
Escore Tournament S2: W3
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
RSL Revival: Season 5
WardiTV TLMC #16
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.